diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-03-04 10:27:21 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-03-04 10:27:21 +0300 |
commit | 8bc3ed9c3927443afe38c42d0283a5e1becd0e46 (patch) | |
tree | dff7bfd89c8c1b74b3f0d20daaa63a57f4946728 | |
parent | f8f6cec4e5fa6027c9e3b401a00dbaf0f036eeeb (diff) | |
download | dotfiles-8bc3ed9c3927443afe38c42d0283a5e1becd0e46.tar.gz |
chore(nvim): update lsp servers
-rw-r--r-- | nvim/.config/nvim/lua/lsp-config.lua | 12 |
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, |