Skip to content

Angluca/valk.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim plugin for Valk language

https://github.com/valk-lang/valk

Install

Install using Plug

" set $VALK_ROOT to vimrc or .zshrc, can use this plugin tags dict
" au FileType valk let $VALK_ROOT = ~/path/to/valk

Plug 'angluca/valk.vim'

LSP setup

安装 lsp using Plug

Plug 'yegappan/lsp'

Then add this to your .vimrc

setl omnifunc=LspOmniFunc
au filetype valk call LspAddServer([#{
            \    name: 'valk',
            \    filetype: ['valk'],
            \    path: 'valk',
            \    args: ['lsp','run']
            \  }])

quickly compile and run use :make -r