summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-07-05 17:42:49 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-07-05 17:42:49 +0200
commit822dbb5796060800d3ee515046f6026e2a8d9dc3 (patch)
treed64c277ebb70bc2068e362bddb272f5d5a7e2613
parentaeedf3840d8dc70a278b2971342fb13872e0c360 (diff)
Fix capabilities offset encoding
-rw-r--r--.config/nvim/lua/lsp_conf.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp_conf.lua b/.config/nvim/lua/lsp_conf.lua
index 291aaf3..a64839e 100644
--- a/.config/nvim/lua/lsp_conf.lua
+++ b/.config/nvim/lua/lsp_conf.lua
@@ -57,9 +57,11 @@ end
local servers = { 'pyright', 'rust_analyzer', 'tsserver', 'clangd' }
+local capabilities = vim.lsp.protocol.make_client_capabilities()
+capabilities.offsetEncoding = { "utf-16" }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
- capabilities = coq.lsp_ensure_capabilities(),
+ capabilities = capabilities,
on_attach = common_on_attach,
flags = {
debounce_text_changes = 150,