It's recommended to use a plugin manager to install the jac-vim plugin, Here is how to do with some popular plugin managers.
Using vim-plug
Add a new plugin entry to your .vimrc (or init.vim on neovim):
Plug 'Jaseci-Labs/jac-vim'Run vim and update the bundles with:
:PlugInstallUsing vundle
Add a new plugin entry to your .vimrc (or init.vim on neovim):
Plugin 'Jaseci-Labs/jac-vim'Run vim and update the bundles with:
:PluginInstall!-- Configure Jac LSP separately (not managed by Mason) │
local lspconfig = require('lspconfig') │
local configs = require('lspconfig.configs') │
│
if not configs.jac_ls then │
configs.jac_ls = { │
default_config = { │
cmd = { 'jac', 'lsp' }, │
filetypes = { 'jac' }, │
root_dir = lspconfig.util.root_pattern('.git', vim.fn.getcwd()), │
single_file_support = true, │
}, │
} │
end │
│
lspconfig.jac_ls.setup { │
capabilities = capabilities, │
} │