Skip to content

Commit

Permalink
Simplify capabilities for lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Sep 7, 2024
1 parent d94e63e commit a9295a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions neovim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,6 @@ local servers = {
cmd = { "lemminx" },
},
}
local capabilities = vim.tbl_deep_extend("force", vim.lsp.protocol.make_client_capabilities(), {
offsetEncoding = { "utf-16" },
})

for _, server in pairs(servers) do
if vim.fn.executable(server.cmd[1]) == 1 then
Expand All @@ -913,7 +910,7 @@ for _, server in pairs(servers) do
name = server.name,
cmd = server.cmd,
on_attach = function(_, _) end,
capabilities = capabilities,
capabilities = vim.lsp.protocol.make_client_capabilities(),
settings = server.settings or vim.empty_dict(),
init_options = server.init_options and server.init_options(args.file) or vim.empty_dict(),
root_dir = root_dir(args.file),
Expand Down

0 comments on commit a9295a5

Please sign in to comment.