Try configuring language servers
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
-- event = 'BufWritePre', -- uncomment for format on save
|
||||
opts = require "configs.conform",
|
||||
},
|
||||
|
||||
{
|
||||
"charludo/projectmgr.nvim",
|
||||
lazy = false, -- Required for proper functionality
|
||||
},
|
||||
|
||||
-- These are some examples, uncomment them if you want to see them work!
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
@@ -19,33 +12,9 @@ return {
|
||||
},
|
||||
|
||||
{
|
||||
"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,
|
||||
"stevearc/conform.nvim",
|
||||
event = "BufWritePre",
|
||||
opts = require "configs.conform",
|
||||
},
|
||||
|
||||
-- Supermaven
|
||||
|
Reference in New Issue
Block a user