mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
fixed lspconfig setup
This commit is contained in:
@@ -7,7 +7,6 @@ return {
|
|||||||
"folke/neodev.nvim"
|
"folke/neodev.nvim"
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
local whichKey = require("which-key")
|
local whichKey = require("which-key")
|
||||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||||
@@ -73,7 +72,7 @@ return {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, languageServerName in pairs(languageServers) do
|
for _, languageServerName in pairs(languageServers) do
|
||||||
lspconfig[languageServerName].setup({
|
vim.lsp.config(languageServerName, {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach
|
on_attach = on_attach
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user