Skip to content

Commit

Permalink
lua_ls was using ~50GB of memory
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Mar 1, 2024
1 parent 0869e44 commit 7e6d7e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions nvim/lua/conf/lspconfig/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ lspconfig.eslint.setup({
})
end,
})
lspconfig.lua_ls.setup {
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = { 'hs', 'vim' },
},
workspace = {
checkThirdParty = false,
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
},
},
}
-- lspconfig.lua_ls.setup {
-- settings = {
-- Lua = {
-- runtime = {
-- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
-- version = 'LuaJIT',
-- },
-- diagnostics = {
-- -- Get the language server to recognize the `vim` global
-- globals = { 'hs', 'vim' },
-- },
-- workspace = {
-- checkThirdParty = false,
-- -- Make the server aware of Neovim runtime files
-- library = vim.api.nvim_get_runtime_file("", true),
-- },
-- -- Do not send telemetry data containing a randomized but unique identifier
-- telemetry = {
-- enable = false,
-- },
-- },
-- },
-- }
lspconfig.tsserver.setup {}
lspconfig.yamlls.setup {}

Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/conf/mason/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require("mason-lspconfig").setup {
"eslint",
"golangci_lint_ls",
"gopls",
"lua_ls",
-- "lua_ls",
"perlnavigator",
"rust_analyzer",
"tsserver",
Expand Down

0 comments on commit 7e6d7e0

Please sign in to comment.