diff options
-rw-r--r-- | .config/nvim/lua/lsp_conf.lua | 4 |
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, |