nvim folding
This commit is contained in:
parent
6777c7a02d
commit
7a62a3686e
3
home/user/.config/nvim/after/ftplugin/cpp.lua
Normal file
3
home/user/.config/nvim/after/ftplugin/cpp.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
local opt = vim.opt_local
|
||||||
|
|
||||||
|
opt.foldmethod = "indent"
|
||||||
@ -15,7 +15,7 @@ opt.clipboard:append { 'unnamedplus' }
|
|||||||
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true } -- disable startup message
|
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true } -- disable startup message
|
||||||
|
|
||||||
opt.cmdheight = 1
|
opt.cmdheight = 1
|
||||||
vim.wo.signcolumn = "yes:2"
|
vim.wo.signcolumn = "yes:1"
|
||||||
|
|
||||||
opt.shell = 'zsh'
|
opt.shell = 'zsh'
|
||||||
|
|
||||||
@ -138,3 +138,5 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
|
|||||||
vim.cmd('silent! loadview 1')
|
vim.cmd('silent! loadview 1')
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.opt.foldcolumn = "1"
|
||||||
Loading…
x
Reference in New Issue
Block a user