Add vim to globals, add settings for preloading files
This commit is contained in:
parent
5067747fc5
commit
d9091a23ae
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue