added keybind for update
This commit is contained in:
parent
be78bd1680
commit
cb97c6b2ac
|
@ -26,3 +26,19 @@ always @($1) begin
|
|||
$2
|
||||
end$0
|
||||
endsnippet
|
||||
|
||||
snippet ,byte "set bus to size of a byte" A
|
||||
[7:0]$0
|
||||
endsnippet
|
||||
|
||||
snippet ,half "set bus to size of half word" A
|
||||
[15:0]$0
|
||||
endsnippet
|
||||
|
||||
snippet ,word "set bus to size of a word" A
|
||||
[31:0]$0
|
||||
endsnippet
|
||||
|
||||
snippet ,double "set bus to size of a double word" A
|
||||
[63:0]$0
|
||||
endsnippet
|
||||
|
|
|
@ -13,11 +13,11 @@ if &shortmess =~ 'A'
|
|||
else
|
||||
set shortmess=aoO
|
||||
endif
|
||||
badd +1 .config/nvim/init.lua
|
||||
badd +86 .config/nvim/viml/legacyconf.vim
|
||||
argglobal
|
||||
%argdel
|
||||
$argadd .config/nvim/init.lua
|
||||
edit .config/nvim/init.lua
|
||||
$argadd .config/nvim/viml/legacyconf.vim
|
||||
edit .config/nvim/viml/legacyconf.vim
|
||||
argglobal
|
||||
setlocal fdm=expr
|
||||
setlocal fde=nvim_treesitter#foldexpr()
|
||||
|
@ -27,12 +27,12 @@ setlocal fdl=0
|
|||
setlocal fml=1
|
||||
setlocal fdn=20
|
||||
setlocal nofen
|
||||
let s:l = 1 - ((0 * winheight(0) + 23) / 47)
|
||||
let s:l = 86 - ((51 * winheight(0) + 26) / 52)
|
||||
if s:l < 1 | let s:l = 1 | endif
|
||||
keepjumps exe s:l
|
||||
normal! zt
|
||||
keepjumps 1
|
||||
normal! 0
|
||||
keepjumps 86
|
||||
normal! 033|
|
||||
tabnext 1
|
||||
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
|
||||
silent exe 'bwipe ' . s:wipebuf
|
||||
|
@ -46,7 +46,6 @@ if filereadable(s:sx)
|
|||
endif
|
||||
let &g:so = s:so_save | let &g:siso = s:siso_save
|
||||
set hlsearch
|
||||
nohlsearch
|
||||
doautoall SessionLoadPost
|
||||
unlet SessionLoad
|
||||
" vim: set ft=vim :
|
||||
|
|
|
@ -76,3 +76,11 @@ endif
|
|||
autocmd FileType vhdl setlocal omnifunc=lsp#complete
|
||||
|
||||
nnoremap <silent> <C-0> <Cmd>BufferNext<CR>
|
||||
|
||||
" update function and call
|
||||
function Update_Sys()
|
||||
PackerSync
|
||||
TSUpdate
|
||||
endfunction
|
||||
|
||||
nnoremap <M-u> :call Update_Sys()<CR>
|
||||
|
|
Loading…
Reference in New Issue