vimrc: add dhall support (syntax+lsp)

This commit is contained in:
leo 2023-04-26 14:34:13 +02:00
parent b083ce65d4
commit e1813e16c5
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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