Public Access
fold options/hotkeys
This commit is contained in:
@@ -12,6 +12,14 @@ o.winborder = "single"
|
||||
o.termguicolors = true
|
||||
o.autoread = true
|
||||
|
||||
-- Folding: native treesitter folds (function/class/block-aware), no plugin needed.
|
||||
-- `foldmethod=diff` (used automatically in :diffthis / fugitive / diffview windows)
|
||||
-- takes over on its own and isn't affected by this.
|
||||
o.foldmethod = "expr"
|
||||
o.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
o.foldlevel = 99 -- start with everything open
|
||||
o.foldlevelstart = 99
|
||||
|
||||
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
|
||||
command = "if mode() != 'c' | checktime | endif",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user