neovim: fix encoding issue with nixd

This commit is contained in:
Donovan Glover 2024-10-15 16:47:31 -04:00
parent bbfd32df5b
commit f2b703d7d9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -158,6 +158,11 @@
end end
} }
lspconfig.nixd.setup {
capabilities = capabilities,
offset_encoding = 'utf-8'
}
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float) vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next) vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
@ -203,7 +208,6 @@
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
local servers = { local servers = {
'nixd',
'rust_analyzer', 'rust_analyzer',
'markdown_oxide', 'markdown_oxide',
'html', 'html',