Here is how I start the server:
-- LSP
vim.lsp.start({
name = 'lua-language-server',
cmd = { 'lua-language-server' },
root_dir = vim.fs.dirname(vim.fs.find({'.git', '.vim', 'nvim'}, { upward = true })[1])
})
This is fine. So now I load a lua
file in vim, and one that takes advantage of the vim
global object that nvim
loads somewhere into the lua engine.
My linter doesn't have this library loaded, so it complains about the unset global. My lua code is able to run fine despite these linter warnings, of course.
How can I fix this? How can I straighten out the difference between my TRUE project root (effectively somewhere in nvim
?) and my expressed one.
Idk if this helps:
:!lua-language-server --version
3.6.22
hs
objects when I open a file up in~/.hammerspoon
. I love that I can easily code up this power in myftplugin
file, but DANG I'm struggling