my-nvim-config/laptop/plugin/lsp_config.lua

21 lines
422 B
Lua

local lspconfig = require('lspconfig')
lspconfig.pyright.setup {}
lspconfig.lua_ls.setup({
settings = {
Lua = {
telemetry = { enable = false },
},
}
})
lspconfig.rust_analyzer.setup {
-- Server-specific settings. See `:help lspconfig-setup`
settings = {
['rust-analyzer'] = {
check = {
command = "clippy",
}
},
},
}