nvim
This commit is contained in:
38
nvim/lua/zinn/plugins/mason-lsp.lua
Normal file
38
nvim/lua/zinn/plugins/mason-lsp.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
config = function()
|
||||
require("mason").setup({
|
||||
ui = {
|
||||
border = "rounded", -- Nice UI borders
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"neovim/nvim-lspconfig",
|
||||
},
|
||||
config = function()
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
-- "ts_ls", -- Typescript
|
||||
-- "html", -- HTML
|
||||
-- "cssls", -- CSS
|
||||
-- "gopls", -- Go
|
||||
-- "clangd", -- C++/C
|
||||
-- "lua_ls", -- Lua
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig", -- Core LSP config
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user