diff --git a/lua/config/lspconfig.lua b/lua/config/lspconfig.lua index 1f6bd60..2220020 100644 --- a/lua/config/lspconfig.lua +++ b/lua/config/lspconfig.lua @@ -66,6 +66,14 @@ M.server_settings = { -- library = vim.api.nvim_get_runtime_file("", true) -- }, } + }, + + rust_analyzer = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy" + } + } } } @@ -148,4 +156,3 @@ if packer_plugins['nvim-lsp-installer'] and packer_plugins['nvim-lsp-installer'] end return M - diff --git a/lua/options.lua b/lua/options.lua index 42a2b69..9812d8f 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -100,4 +100,3 @@ opt('softtabstop', tab_size, buffer) -- Place splits below and to the right by default opt('splitbelow', true) opt('splitright', true) -