Replies: 1 comment
-
I believe in this case you can ignore The function Edit: you'll also need to add an extra source for local lsp = require('lsp-zero')
lsp.preset('recommended')
-- Setup lua server for neovim
require('lspconfig').sumneko_lua.setup(
lsp.build_options('sumneko_lua', lsp.defaults.nvim_workspace())
)
-- Add neovim api source to nvim-cmp
local cmp_sources = lsp.defaults.cmp_sources()
table.insert(cmp_sources, {name = 'nvim_lua'})
require('cmp').setup.filetype('lua', {sources = cmp_sources})
lsp.setup() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My machine is 32bit, so the
:LspInstall
command always fails, I manually compiled sumneko LUA and added it to the path, I just want to make the lspinstall aware of this. Would it be difficult?The log is this:
Probably the plugin already has this feature but I know very little of lua!
How would it be if I wanted only the sumneko lua manually installed?
Thanks for your great job!
Beta Was this translation helpful? Give feedback.
All reactions