aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,