馃 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 996 B view raw
1return { 2 on_init = function(client) 3 if client.workspace_folders then 4 local path = client.workspace_folders[1].name 5 if 6 path ~= vim.fn.stdpath("config") 7 and (vim.uv.fs_stat(path .. "/.luarc.json") or vim.uv.fs_stat(path .. "/.luarc.jsonc")) 8 then 9 return 10 end 11 end 12 client.config.settings.Lua = vim.tbl_deep_extend("force", client.config.settings.Lua, { 13 workspace = { 14 checkThirdParty = false, 15 library = { 16 vim.env.VIMRUNTIME, 17 -- Depending on the usage, you might want to add additional paths here. 18 -- "${3rd}/luv/library" 19 }, 20 }, 21 }) 22 end, 23 settings = { 24 Lua = { 25 runtime = { 26 version = "LuaJIT", 27 path = { 28 "lua/?.lua", 29 "lua/?/init.lua", 30 }, 31 }, 32 diagnostics = { 33 globals = { "vim", "package", "table" }, 34 }, 35 hint = { 36 enable = true, 37 arrayIndex = "Disable", 38 }, 39 }, 40 }, 41}