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",
|
||||
".git"
|
||||
},
|
||||
settings = {
|
||||
Lua = {
|
||||
maxPreload = 100000,
|
||||
preloadFileSize = 10000,
|
||||
},
|
||||
},
|
||||
on_init = function(client)
|
||||
local path = vim.tbl_get(client, "workspace_folders", 1, "name")
|
||||
if not path then
|
||||
|
|
@ -23,6 +29,9 @@ return {
|
|||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
-- Make the server aware of Neovim runtime files
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue