init.lua/lua/plugins/lsp/init.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
return {
"neovim/nvim-lspconfig",
event = "BufRead",
dependencies = {
"b0o/schemastore.nvim",
{
"j-hui/fidget.nvim",
config = true,
dependencies = { "nvim-lspconfig" },
},
{
"folke/lazydev.nvim",
ft = "lua",
cmd = "LazyDev",
dependencies = { "nvim-lspconfig", "Bilal2453/luvit-meta" },
opts = {
library = {
{ path = "luvit-meta/library", words = { "vim%.uv" } },
{ path = "mini.test", words = { "MiniTest" } },
"lazy.nvim",
"gopher.nvim",
"neogit",
},
},
},
{
"nvimtools/none-ls.nvim",
dependencies = { "nvim-lspconfig" },
config = function()
require "plugins.lsp.null-ls"
end,
},
{
"RRethy/vim-illuminate",
dependencies = { "nvim-lspconfig" },
opts = {
providers = { "lsp", "treesitter" },
filetypes_denylist = {
"NvimTree",
"packer",
"NeogitStatus",
"TelescopePrompt",
},
},
config = function(_, opts)
require("illuminate").configure(opts)
end,
},
},
config = function()
for name, conf in pairs(require "plugins.lsp.servers") do
require "plugins.lsp.attach"
require("lspconfig")[name].setup(vim.tbl_extend("force", {
flags = { debounce_text_changes = 150 },
capabilities = require("cmp_nvim_lsp").default_capabilities(),
}, conf))
end
end,
}
|