ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.25k stars 110 forks source link

Updated and Minified lua lsp config according to docs #8

Closed shubham-cpp closed 2 years ago

shubham-cpp commented 2 years ago

In neovim we have jit library which can help us in determining OS type

Since you've placed lua-language-server in standard neovim config path we can use vim.fn.stdpath

Also updated the config according to nvim-lspconfig lua server docs

The only caveat is that I don't have MacOS, but I did test your setup with these changes on Ubuntu vm and Everything worked fine

shubham-cpp commented 2 years ago

Tested on

NVIM v0.6.0-dev+604-g725cbe7d4
Build type: Release
Ubuntu 21.10
shubham-cpp commented 2 years ago

Since you've changed lua sumneko setup, I'll close this

ecosse3 commented 2 years ago

Yes, I tested sumneko-lua server from LspInstaller and it works fine. Thank you anyway for your contribution 😌