nvim/lua/plugins/lspconfig.lua

29 lines
577 B
Lua
Raw Normal View History

2024-02-21 04:09:18 +00:00
return {
"neovim/nvim-lspconfig",
2025-01-17 05:37:33 +00:00
dependencies = { "saghen/blink.cmp" },
2024-02-21 04:09:18 +00:00
init = function()
2025-01-17 05:37:33 +00:00
local capabilities = require("blink.cmp").get_lsp_capabilities()
local lspconfig = require("lspconfig")
2023-12-12 12:16:58 +00:00
2025-01-17 05:37:33 +00:00
lspconfig.lua_ls.setup({
2024-02-21 04:09:18 +00:00
capabilities = capabilities,
})
2025-01-17 05:37:33 +00:00
lspconfig.pyright.setup({
2024-07-28 15:47:20 +00:00
capabilities = capabilities,
})
2025-01-17 05:37:33 +00:00
lspconfig.nil_ls.setup({
2024-02-21 04:09:18 +00:00
capabilities = capabilities,
})
2024-08-30 20:48:49 +00:00
2025-01-17 05:37:33 +00:00
lspconfig.gopls.setup({
2024-08-30 20:48:49 +00:00
capabilities = capabilities,
})
2024-11-16 15:23:04 +00:00
2025-01-17 05:37:33 +00:00
lspconfig.ts_ls.setup({
2024-11-16 15:23:04 +00:00
capabilities = capabilities,
})
2024-02-21 04:09:18 +00:00
end,
}