Add some language servers
This commit is contained in:
@@ -18,7 +18,37 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
-- Supermaven
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
-- Installer for language servers
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"lua_ls", -- Lua
|
||||
"gopls", -- Go
|
||||
"tsserver", -- JavaScript/TypeScript
|
||||
},
|
||||
})
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
-- Lua Language Server
|
||||
lspconfig.lua_ls.setup {}
|
||||
|
||||
-- Go Language Server
|
||||
lspconfig.gopls.setup {}
|
||||
|
||||
-- JavaScript/TypeScript Language Server
|
||||
lspconfig.tsserver.setup {}
|
||||
end,
|
||||
},
|
||||
|
||||
-- Supermaven
|
||||
{
|
||||
"supermaven-inc/supermaven-nvim",
|
||||
lazy = false,
|
||||
|
Reference in New Issue
Block a user