LSP for interingo language
Build the code with
go build .
Add build file to default local bin path
ln -s /path/to/build/file/interingo-lsp ~/.local/bin
# ^^^^^^^^^^^^^^^^^^^ change to your machine path
export PATH="$PATH:~/.local/bin"
Add this to Neovim after/plugin/iig.lua
file
vim.filetype.add({ extension = { iig = 'interingo', }, })
local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')
local function custom_root_dir(filename, bufnr)
return vim.fn.getcwd()
end
configs.interingo = {
default_config = {
cmd = { 'interingo-lsp' },
filetypes = { 'interingo' },
-- root_dir = lspconfig.util.root_pattern('.git', 'deluge'),
root_dir = custom_root_dir,
settings = {}
}
}
lspconfig.interingo.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = { "interingo" },
})