aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-03-04 10:27:21 +0300
committereug-vs <eugene@eug-vs.xyz>2023-03-04 10:27:21 +0300
commit8bc3ed9c3927443afe38c42d0283a5e1becd0e46 (patch)
treedff7bfd89c8c1b74b3f0d20daaa63a57f4946728
parentf8f6cec4e5fa6027c9e3b401a00dbaf0f036eeeb (diff)
downloaddotfiles-8bc3ed9c3927443afe38c42d0283a5e1becd0e46.tar.gz
chore(nvim): update lsp servers
-rw-r--r--nvim/.config/nvim/lua/lsp-config.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/lsp-config.lua b/nvim/.config/nvim/lua/lsp-config.lua
index 01ae261..c08490b 100644
--- a/nvim/.config/nvim/lua/lsp-config.lua
+++ b/nvim/.config/nvim/lua/lsp-config.lua
@@ -84,6 +84,16 @@ nvim_lsp.rust_analyzer.setup{
on_attach = on_attach,
flags = flags,
capabilities = capabilities,
+ settings = {
+ ['rust-analyzer'] = {
+ checkOnSave = {
+ allFeatures = true,
+ overrideCommand = {
+ 'cargo', 'clippy', '--workspace', '--message-format=json',
+ '--all-targets', '--all-features'}
+ }
+ }
+ }
}
-- Python
@@ -113,7 +123,7 @@ local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua")
-nvim_lsp.sumneko_lua.setup {
+nvim_lsp.lua_ls.setup {
on_attach = on_attach,
flags = flags,
capabilities = capabilities,