Skip to content

Commit

Permalink
fix: Intergation nvim-jdtls and lsp-zero.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalDevil committed Oct 29, 2023
1 parent ccf226f commit 05b122c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lua/devil/lsp/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ lsp.on_attach(function(_, bufnr)
lsp.default_keymaps({ buffer = bufnr })
end)

lsp_zero.set_server_config({
capabilities = {
textDocument = {
foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
},
},
},
})

local function arr_extend(origin_arr, added_arr)
for i = #added_arr, 1, -1 do
origin_arr[#origin_arr + 1] = added_arr[i]
Expand Down Expand Up @@ -49,7 +60,8 @@ mason.setup({
mason_lspconfig.setup({
ensure_installed = {},
handlers = {
lsp_zero.default_setup(),
lsp_zero.default_setup,
jdtls = lsp_zero.noop,
},
})

Expand Down

0 comments on commit 05b122c

Please sign in to comment.