I was able to get my jai lsp running with this code
-- for some reason this works
vim.api.nvim_create_autocmd('BufWritePre', {
desc = 'launch jai lsp',
callback = function (opts)
if vim.bo[opts.buf].filetype == 'jai' then
vim.lsp.start({
name = "jai",
cmd = { "jails" },
root_dir = vim.fn.getcwd(), -- Use PWD as project root dir.
})
end
end,
})
my checkhealth:
vim.lsp: require("vim.lsp.health").check()
- LSP log level : WARN
- Log path: C:\Users\USER\AppData\Local\nvim-data\lsp.log
- Log size: 3 KB
vim.lsp: Active Clients ~
- jai (id=1, root_dir=C:\Users\USER\Desktop\JRenderer)
when I go into a jai file it still only recognizes buffer suggestions, how would I remedy this?