diff --git a/lua/autocmd.lua b/lua/autocmd.lua index 7b7e511..6358daf 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -18,8 +18,7 @@ end local autoCommands = { -- other autocommands open_folds = { - { "BufAdd", "*", "normal zx" }, - { "BufEnter,BufModifiedSet", "*", "normal zR" }, + { "FileReadPost", "*.md", "normal zx" }, }, } diff --git a/lua/basic.lua b/lua/basic.lua index 0958179..1ca3588 100644 --- a/lua/basic.lua +++ b/lua/basic.lua @@ -29,6 +29,8 @@ M.load_default_options = function() -- foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding foldmethod = "expr", foldexpr = "nvim_treesitter#foldexpr()", + foldenable = true, + foldlevel = 99, title = true, -- set the title of window to the value of the titlestring -- opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to -- undodir = undodir, -- set an undo directory diff --git a/lua/plugin-config/jaq.lua b/lua/plugin-config/jaq.lua index 4ea954b..1da931b 100644 --- a/lua/plugin-config/jaq.lua +++ b/lua/plugin-config/jaq.lua @@ -9,11 +9,11 @@ require("jaq-nvim").setup({ -- Uses shell commands external = { markdown = "glow %", - python = "python %", + python = "python3 %", go = "go run %", sh = "sh %", - c = "cd $dir && gcc $file -o $fileBase -g && $dir/$fileBase", - cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $dir/$fileBase", + c = "cd $dir && gcc $file -o $fileBase -g && $fileBase", + cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $fileBase", }, },