Skip to content

Commit 733f941

Browse files
committed
chore(lua_ls): clean up
1 parent 0af70eb commit 733f941

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

lua/modules/configs/completion/servers/lua_ls.lua

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,3 @@ return {
2323
},
2424
},
2525
}
26-
27-
--[[
28-
require'lspconfig'.lua_ls.setup {
29-
on_init = function(client)
30-
if client.workspace_folders then
31-
local path = client.workspace_folders[1].name
32-
if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then
33-
return
34-
end
35-
end
36-
37-
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
38-
runtime = {
39-
-- Tell the language server which version of Lua you're using
40-
-- (most likely LuaJIT in the case of Neovim)
41-
version = 'LuaJIT'
42-
},
43-
-- Make the server aware of Neovim runtime files
44-
workspace = {
45-
checkThirdParty = false,
46-
library = {
47-
vim.env.VIMRUNTIME
48-
-- Depending on the usage, you might want to add additional paths here.
49-
-- "${3rd}/luv/library"
50-
-- "${3rd}/busted/library",
51-
}
52-
-- or pull in all of 'runtimepath'. NOTE: this is a lot slower and will cause issues when working on your own configuration (see https://github.com/neovim/nvim-lspconfig/issues/3189)
53-
-- library = vim.api.nvim_get_runtime_file("", true)
54-
}
55-
})
56-
end,
57-
settings = {
58-
Lua = {}
59-
}
60-
}
61-
-- ]]

0 commit comments

Comments
 (0)