Add LSP config with Mason
This commit is contained in:
parent
4e92ae02c1
commit
031269e521
1 changed files with 15 additions and 0 deletions
15
nvim/lua/plugins/lsp.lua
Normal file
15
nvim/lua/plugins/lsp.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
require("mason-lspconfig").setup({
|
||||||
|
ensure_installed = { "rust_analyzer", "lua_ls", "pyright", "ts_ls" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue