mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] FINALLY add a plugin for RISC-V assembly
This commit is contained in:
parent
95cf74e454
commit
701638fde3
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
" }}}
|
||||||
|
|
|
@ -58,6 +58,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'
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue