Ask Your Question
1

Is it not possible to utilize the lua LSP in neovim?

asked 2023-05-25 16:30:58 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-25 16:42:02 +0000

david gravatar image

Yes, it is possible to utilize the lua LSP in neovim. Neovim has built-in support for LSP, including the ability to use external LSP servers such as the lua LSP. To use the lua LSP in neovim, you can install the lua-language-server using your package manager or clone the repository, and then add the server to your neovim configuration. Here is an example configuration:

" Language server setup
if executable('lua-language-server') == 1
  au User lsp_setup call lsp#register_server({
        \ 'name': 'lua',
        \ 'cmd': {server_info->['lua-language-server']},
        \ 'whitelist': ['lua'],
        \ })
endif

This configuration will register the lua-language-server as a server for the lua language and add it to the neovim LSP registry.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-25 16:30:58 +0000

Seen: 13 times

Last updated: May 25 '23