diff --git a/lua/custom/plugins/md.lua b/lua/custom/plugins/md.lua index e7d12e4..52ec9ea 100644 --- a/lua/custom/plugins/md.lua +++ b/lua/custom/plugins/md.lua @@ -3,5 +3,7 @@ return { cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, ft = { "markdown" }, build = function() vim.fn["mkdp#util#install"]() end, + config = function() + vim.g.mkdp_browser = '/usr/bin/qutebrowser' + end } - diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index 52a4fc2..274cf8b 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -35,8 +35,6 @@ keymap.set("n", "x", "!chmod +x %", { silent = true, desc = "ch keymap.set("n", "cm", "make", { desc = "run make command" }) keymap.set("n", "cc", "!gcc -o %< % && %< ", { desc = "compile current file and execute it" }) -keymap.set("t", "", [[]], { desc = "exit insert mode on builtin terminal" }) - keymap.set("n", "Sv", "v", { desc = "create split vertically" }) keymap.set("n", "Sh", "s", { desc = "create split horizontally" }) keymap.set("n", "Se", "=", { desc = "even out buffers" }) diff --git a/lua/jabuxas/set.lua b/lua/jabuxas/set.lua index bd34b87..bde4dd3 100644 --- a/lua/jabuxas/set.lua +++ b/lua/jabuxas/set.lua @@ -36,12 +36,6 @@ autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolu -- disable bar any% -- vim.opt.laststatus = 0 -autocmd("Filetype", { - pattern = "norg", - callback = function() - vim.opt.wrap = true - end -}) autocmd("Filetype", { pattern = "*", @@ -50,6 +44,16 @@ autocmd("Filetype", { end }) +autocmd("Filetype", { + pattern = "markdown", + callback = function() + vim.opt.wrap = true + vim.o.formatoptions = "l" + vim.o.breakindent = true + vim.o.lbr = true + end +}) + vim.g.mapleader = " " -- Case insensitive searching UNLESS /C or capital in search