folding completed
This commit is contained in:
parent
7a730dc9d6
commit
f5937893cc
|
@ -11,7 +11,7 @@ vim.keymap.set('n', 'zK', function()
|
||||||
local winid = require('ufo').peekFoldedLinesUnderCursor()
|
local winid = require('ufo').peekFoldedLinesUnderCursor()
|
||||||
if not winid then
|
if not winid then
|
||||||
-- choose one of coc.nvim and nvim lsp
|
-- choose one of coc.nvim and nvim lsp
|
||||||
vim.fn.CocActionAsync 'definitionHover' -- coc.nvim
|
-- vim.fn.CocActionAsync 'definitionHover' -- coc.nvim
|
||||||
vim.lsp.buf.hover()
|
vim.lsp.buf.hover()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -21,13 +21,15 @@ capabilities.textDocument.foldingRange = {
|
||||||
dynamicRegistration = false,
|
dynamicRegistration = false,
|
||||||
lineFoldingOnly = true,
|
lineFoldingOnly = true,
|
||||||
}
|
}
|
||||||
local language_servers = require('lspconfig').util.available_servers() -- or list servers manually like {'gopls', 'clangd'}
|
|
||||||
for _, ls in ipairs(language_servers) do
|
-- local language_servers = require('lspconfig').util.available_servers() -- or list servers manually like {'gopls', 'clangd'}
|
||||||
require('lspconfig')[ls].setup {
|
-- print(language_servers)
|
||||||
capabilities = capabilities,
|
-- for _, ls in ipairs(language_servers) do
|
||||||
-- you can add other fields for setting up lsp server in this table
|
-- require('lspconfig')[ls].setup {
|
||||||
}
|
-- capabilities = capabilities,
|
||||||
end
|
-- -- you can add other fields for setting up lsp server in this table
|
||||||
|
-- }
|
||||||
|
-- end
|
||||||
|
|
||||||
require('ufo').setup {
|
require('ufo').setup {
|
||||||
provider_selector = function(bufnr, filetype, buftype)
|
provider_selector = function(bufnr, filetype, buftype)
|
||||||
|
|
Loading…
Reference in New Issue