|
|
@ -3,16 +3,16 @@ return { |
|
|
|
event = { "BufReadPre", "BufNewFile" }, |
|
|
|
dependencies = { |
|
|
|
{ "saghen/blink.cmp" }, |
|
|
|
{ "antosha417/nvim-lsp-file-operations", config = true }, |
|
|
|
{ "williamboman/mason.nvim", config = true }, |
|
|
|
{ "williamboman/mason-lspconfig.nvim" }, |
|
|
|
{ "WhoIsSethDaniel/mason-tool-installer.nvim" }, |
|
|
|
{ "j-hui/fidget.nvim", opts = {} }, |
|
|
|
{ "folke/neodev.nvim", opts = {} }, |
|
|
|
{ 'dmmulroy/ts-error-translator.nvim', opts = {} }, |
|
|
|
{ "antosha417/nvim-lsp-file-operations", config = true }, |
|
|
|
{ "williamboman/mason.nvim", config = true }, |
|
|
|
{ "williamboman/mason-lspconfig.nvim" }, |
|
|
|
{ "WhoIsSethDaniel/mason-tool-installer.nvim" }, |
|
|
|
{ "j-hui/fidget.nvim", opts = {} }, |
|
|
|
{ "folke/neodev.nvim", opts = {} }, |
|
|
|
{ 'dmmulroy/ts-error-translator.nvim', opts = {} }, |
|
|
|
{ 'mawkler/refjump.nvim', opts = {}, event = 'LspAttach', }, |
|
|
|
}, |
|
|
|
config = function() |
|
|
|
local lspconfig = require("lspconfig") |
|
|
|
local utils = require("lsp.utils") |
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("LspAttach", { |
|
|
@ -43,7 +43,7 @@ return { |
|
|
|
}, |
|
|
|
signs = true, |
|
|
|
underline = true, |
|
|
|
update_in_insert = false, |
|
|
|
update_in_insert = true, |
|
|
|
severity_sort = true, |
|
|
|
}) |
|
|
|
|
|
|
@ -69,10 +69,16 @@ return { |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
-- Setup all servers |
|
|
|
-- Setup all servers using the new vim.lsp.config and vim.lsp.enable APIs |
|
|
|
for server_name, server in pairs(servers) do |
|
|
|
-- Merge capabilities |
|
|
|
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {}) |
|
|
|
lspconfig[server_name].setup(server) |
|
|
|
|
|
|
|
-- Use vim.lsp.config to define/customize the server configuration |
|
|
|
vim.lsp.config(server_name, server) |
|
|
|
|
|
|
|
-- Use vim.lsp.enable to activate the server for its filetypes |
|
|
|
vim.lsp.enable(server_name) |
|
|
|
end |
|
|
|
end, |
|
|
|
} |