fix offset encoding

This commit is contained in:
Christian Nieves
2024-05-02 18:19:56 +00:00
parent 28070c2640
commit 822daa2ff0
5 changed files with 38 additions and 27 deletions

View File

@ -2,6 +2,15 @@ return {
{
"vxpm/ferris.nvim",
ft = "rust",
config = function()
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.offsetEncoding = { "utf-16" }
require("lspconfig").rust_analyzer.setup({
-- offset_encoding = "utf-8",
-- capabilities,
settings = { ["rust-analyzer"] = {} },
})
end,
},
{