Skip to content

jaseci-labs/jac-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim Plugin for Jaclang

Jaclang Programming Language: Unique and Powerful programming language that runs on top of Python

Installation

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:

:PlugInstall

Using 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!

TO Support LSP:

-- 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,                                                                           │
}                                                                                                        │

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •