Manage folds
This commit is contained in:
parent
ef8f52e152
commit
d377f3432a
@ -49,6 +49,8 @@ for _,o in ipairs(set_true) do
|
|||||||
vim.o[o] = true
|
vim.o[o] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- folds
|
||||||
|
vim.g.ip_skipfold=true
|
||||||
|
|
||||||
-- window management
|
-- window management
|
||||||
vim.o.tw = 80
|
vim.o.tw = 80
|
||||||
|
@ -30,3 +30,9 @@ vim.api.nvim_set_keymap("n", "<Leader>y", '"+y', {noremap = true, silent = true}
|
|||||||
vim.api.nvim_set_keymap("v", "<Leader>y", '"+y', {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("v", "<Leader>y", '"+y', {noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>pp", '"+p', {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("n", "<Leader>pp", '"+p', {noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("v", "<Leader>pp", '"+p', {noremap = true, silent = true})
|
vim.api.nvim_set_keymap("v", "<Leader>pp", '"+p', {noremap = true, silent = true})
|
||||||
|
|
||||||
|
-- z0…z9 to open folds to a certain level
|
||||||
|
|
||||||
|
for i=0,9 do
|
||||||
|
vim.api.nvim_set_keymap('n', 'z' .. i , ':set fdl=' .. i .. '<CR>', {noremap = true, silent = false})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user