[nvim] FINALLY add a plugin for RISC-V assembly

This commit is contained in:
Dmytro Meleshko 2021-06-28 13:07:26 +03:00
parent 95cf74e454
commit 701638fde3
3 changed files with 10 additions and 1 deletions

View file

@ -419,3 +419,9 @@
hi! link zshFunction Function
hi! link zshVariable Variable
" }}}
" Assembly {{{
hi! def link riscvRegister Variable
hi! def link riscvCSRegister Special
hi! def link riscvLabel Function
" }}}

View file

@ -58,6 +58,7 @@
Plug 'sheerun/vim-polyglot'
Plug 'chikamichi/mediawiki.vim'
Plug 'ron-rs/ron.vim'
Plug 'kylelaker/riscv.vim'
if g:vim_ide
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'dag/vim2hs'

View file

@ -272,9 +272,11 @@ set commentstring=//%s
" Make an alias for the comment text object
omap <silent> gc ac
let g:tcomment#ignore_comment_def = ['asm']
let g:tcomment#commentstring_c = '// %s'
call tcomment#type#Define('asm', '# %s')
call tcomment#type#Define('riscv', '# %s')
" }}}