Compare commits

...

2 commits

Author SHA1 Message Date
pull[bot]
f57de72142
Merge pull request #300 from dmitmel/master
[pull] master from dmitmel:master
2021-06-28 10:21:58 +00:00
Dmytro Meleshko
701638fde3 [nvim] FINALLY add a plugin for RISC-V assembly 2021-06-28 13:12:45 +03:00
3 changed files with 10 additions and 1 deletions

View file

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

View file

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

View file

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