parent
c3c0b45e6e
commit
d1aade11b5
|
@ -167,6 +167,11 @@ return {
|
||||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
|
||||||
end, '[T]oggle Inlay [H]ints')
|
end, '[T]oggle Inlay [H]ints')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if client and client_supports_method(client, 'textDocument/foldingRange', event.buf) then
|
||||||
|
-- local win = vim.api.nvim_get_current_win()
|
||||||
|
-- vim.wo[win][0].foldexpr = 'v:lua.vim.lsp.foldexpr()'
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,15 @@ return { -- Highlight, edit, and navigate code
|
||||||
-- indent = { enable = true, disable = { 'ruby' } },
|
-- indent = { enable = true, disable = { 'ruby' } },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
-- fold method to be function / treesitter
|
||||||
|
-- vim.o.foldmethod = 'expr'
|
||||||
|
-- Default to treesitter folding
|
||||||
|
-- vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
|
-- vim.o.foldenable = false
|
||||||
|
vim.opt.foldnestmax = 4
|
||||||
|
vim.opt.foldlevel = 99
|
||||||
|
vim.opt.foldlevelstart = 1
|
||||||
|
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
|
|
||||||
-- Prefer git instead of curl in order to improve connectivity in some environments
|
-- Prefer git instead of curl in order to improve connectivity in some environments
|
||||||
|
|
Loading…
Reference in New Issue