stable java
This commit is contained in:
parent
44570ee8a7
commit
c1bde2c691
5 changed files with 301 additions and 98 deletions
|
|
@ -8,10 +8,8 @@ vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
|
|||
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
|
||||
|
||||
vim.keymap.set('n', 'zK', function()
|
||||
local winid = require('ufo').peekFoldedLinesUnderCursor()
|
||||
local winid = ufo.peekFoldedLinesUnderCursor()
|
||||
if not winid then
|
||||
-- choose one of coc.nvim and nvim lsp
|
||||
-- vim.fn.CocActionAsync 'definitionHover' -- coc.nvim
|
||||
vim.lsp.buf.hover()
|
||||
end
|
||||
end)
|
||||
|
|
@ -22,15 +20,6 @@ capabilities.textDocument.foldingRange = {
|
|||
lineFoldingOnly = true,
|
||||
}
|
||||
|
||||
-- local language_servers = require('lspconfig').util.available_servers() -- or list servers manually like {'gopls', 'clangd'}
|
||||
-- print(language_servers)
|
||||
-- for _, ls in ipairs(language_servers) do
|
||||
-- require('lspconfig')[ls].setup {
|
||||
-- capabilities = capabilities,
|
||||
-- -- you can add other fields for setting up lsp server in this table
|
||||
-- }
|
||||
-- end
|
||||
|
||||
require('ufo').setup {
|
||||
provider_selector = function(bufnr, filetype, buftype)
|
||||
return { 'lsp', 'indent' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue