mason lsp
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
require("nvchad.configs.lspconfig").defaults()
|
require("nvchad.configs.lspconfig").defaults()
|
||||||
|
|
||||||
local servers = { "phpactor" }
|
-- local servers = { "phpactor" }
|
||||||
vim.lsp.enable(servers)
|
-- vim.lsp.enable(servers)
|
||||||
|
|
||||||
-- read :h vim.lsp.config for changing options of lsp servers
|
-- read :h vim.lsp.config for changing options of lsp servers
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"williamboman/mason.nvim"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
dependencies = {
|
||||||
|
"mason-org/mason.nvim",
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"phpactor",
|
"phpactor",
|
||||||
|
"lua_ls",
|
||||||
|
"nil_ls"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user