Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[query] sumneko setup #64

Open
rodhash opened this issue Sep 24, 2022 · 0 comments
Open

[query] sumneko setup #64

rodhash opened this issue Sep 24, 2022 · 0 comments

Comments

@rodhash
Copy link
Contributor

rodhash commented Sep 24, 2022

Hey Chris

Your setup is awesome! I just moved from nvim-lsp-installer to mason and I noticed something .. I'm unsure whether if this is expected or not but..

Whenever I enable this block, the initial load of lua files uses bunch of cpu, and disabling it lua server still works but without high cpu usage ..

Is this expected?

if server == "sumneko_lua" then
local l_status_ok, lua_dev = pcall(require, "lua-dev")
if not l_status_ok then
return
end
-- local sumneko_opts = require "user.lsp.settings.sumneko_lua"
-- opts = vim.tbl_deep_extend("force", sumneko_opts, opts)
-- opts = vim.tbl_deep_extend("force", require("lua-dev").setup(), opts)
local luadev = lua_dev.setup {
-- -- add any options here, or leave empty to use the default settings
-- lspconfig = opts,
lspconfig = {
on_attach = opts.on_attach,
capabilities = opts.capabilities,
-- -- settings = opts.settings,
},
}
lspconfig.sumneko_lua.setup(luadev)
goto continue
end

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant