lua lspconfig: include luv lib types #2960

This commit is contained in:
siduck 2024-08-10 16:02:51 +05:30
parent c40c5116c4
commit 8df1aa9a4d

View File

@ -57,7 +57,7 @@ M.capabilities.textDocument.completion.completionItem = {
M.defaults = function() M.defaults = function()
dofile(vim.g.base46_cache .. "lsp") dofile(vim.g.base46_cache .. "lsp")
require ("nvchad.lsp").diagnostic_config() require("nvchad.lsp").diagnostic_config()
require("lspconfig").lua_ls.setup { require("lspconfig").lua_ls.setup {
on_attach = M.on_attach, on_attach = M.on_attach,
@ -75,6 +75,7 @@ M.defaults = function()
vim.fn.expand "$VIMRUNTIME/lua/vim/lsp", vim.fn.expand "$VIMRUNTIME/lua/vim/lsp",
vim.fn.stdpath "data" .. "/lazy/ui/nvchad_types", vim.fn.stdpath "data" .. "/lazy/ui/nvchad_types",
vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy", vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy",
"${3rd}/luv/library",
}, },
maxPreload = 100000, maxPreload = 100000,
preloadFileSize = 10000, preloadFileSize = 10000,