vimrc: add dhall support (syntax+lsp)
This commit is contained in:
parent
b083ce65d4
commit
e1813e16c5
12
.vim/vimrc
12
.vim/vimrc
@ -119,6 +119,7 @@ Plug 'https://git.sr.ht/~sircmpwn/hare.vim', { 'for': 'hare' }
|
|||||||
Plug 'ziglang/zig.vim', { 'for': 'zig' }
|
Plug 'ziglang/zig.vim', { 'for': 'zig' }
|
||||||
Plug 'ollykel/v-vim', { 'for': 'v' }
|
Plug 'ollykel/v-vim', { 'for': 'v' }
|
||||||
Plug 'bfrg/vim-cpp-modern', { 'for': ['cpp', 'cmake'] }
|
Plug 'bfrg/vim-cpp-modern', { 'for': ['cpp', 'cmake'] }
|
||||||
|
Plug 'vmchale/dhall-vim', { 'for': 'dhall' }
|
||||||
Plug 'isobit/vim-caddyfile', { 'for': 'caddyfile' }
|
Plug 'isobit/vim-caddyfile', { 'for': 'caddyfile' }
|
||||||
Plug 'chikamichi/mediawiki.vim', { 'for': 'wiki' }
|
Plug 'chikamichi/mediawiki.vim', { 'for': 'wiki' }
|
||||||
Plug 's3rvac/vim-syntax-redminewiki', { 'for': 'redminewiki' }
|
Plug 's3rvac/vim-syntax-redminewiki', { 'for': 'redminewiki' }
|
||||||
@ -1032,6 +1033,17 @@ if executable('terraform-ls')
|
|||||||
\ })
|
\ })
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
" this has some untold deps (on archlinux): haskell-some haskell-lsp1.4 haskell-lsp-types1.4
|
||||||
|
if executable('dhall-lsp-server')
|
||||||
|
augroup lsp_dhall
|
||||||
|
autocmd!
|
||||||
|
au User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'dhall-lsp-server',
|
||||||
|
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'dhall-lsp-server']},
|
||||||
|
\ 'allowlist': ['dhall'],
|
||||||
|
\ })
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
if executable('pyls')
|
if executable('pyls')
|
||||||
" pip install python-language-server
|
" pip install python-language-server
|
||||||
augroup lsp_py
|
augroup lsp_py
|
||||||
|
Loading…
Reference in New Issue
Block a user