complete jaq plugin and code fold
This commit is contained in:
parent
bb51b61c79
commit
cfcf4c2ff0
@ -18,8 +18,7 @@ end
|
|||||||
local autoCommands = {
|
local autoCommands = {
|
||||||
-- other autocommands
|
-- other autocommands
|
||||||
open_folds = {
|
open_folds = {
|
||||||
{ "BufAdd", "*", "normal zx" },
|
{ "FileReadPost", "*.md", "normal zx" },
|
||||||
{ "BufEnter,BufModifiedSet", "*", "normal zR" },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ M.load_default_options = function()
|
|||||||
-- foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
|
-- foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
|
||||||
foldmethod = "expr",
|
foldmethod = "expr",
|
||||||
foldexpr = "nvim_treesitter#foldexpr()",
|
foldexpr = "nvim_treesitter#foldexpr()",
|
||||||
|
foldenable = true,
|
||||||
|
foldlevel = 99,
|
||||||
title = true, -- set the title of window to the value of the titlestring
|
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
|
-- opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to
|
||||||
-- undodir = undodir, -- set an undo directory
|
-- undodir = undodir, -- set an undo directory
|
||||||
|
@ -9,11 +9,11 @@ require("jaq-nvim").setup({
|
|||||||
-- Uses shell commands
|
-- Uses shell commands
|
||||||
external = {
|
external = {
|
||||||
markdown = "glow %",
|
markdown = "glow %",
|
||||||
python = "python %",
|
python = "python3 %",
|
||||||
go = "go run %",
|
go = "go run %",
|
||||||
sh = "sh %",
|
sh = "sh %",
|
||||||
c = "cd $dir && gcc $file -o $fileBase -g && $dir/$fileBase",
|
c = "cd $dir && gcc $file -o $fileBase -g && $fileBase",
|
||||||
cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $dir/$fileBase",
|
cpp = "cd $dir && g++ $file -o $fileBase -g -w -std=c++11 && $fileBase",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user