Add vim to globals, add settings for preloading files

This commit is contained in:
Martin Larsson 2025-01-19 19:13:18 +00:00
parent 5067747fc5
commit d9091a23ae

View file

@ -11,6 +11,12 @@ return {
"selene.yml", "selene.yml",
".git" ".git"
}, },
settings = {
Lua = {
maxPreload = 100000,
preloadFileSize = 10000,
},
},
on_init = function(client) on_init = function(client)
local path = vim.tbl_get(client, "workspace_folders", 1, "name") local path = vim.tbl_get(client, "workspace_folders", 1, "name")
if not path then if not path then
@ -23,6 +29,9 @@ return {
runtime = { runtime = {
version = "LuaJIT" version = "LuaJIT"
}, },
diagnostics = {
globals = { "vim" },
},
-- Make the server aware of Neovim runtime files -- Make the server aware of Neovim runtime files
workspace = { workspace = {
checkThirdParty = false, checkThirdParty = false,