added keybind for update

This commit is contained in:
Yannick Reiß 2023-08-08 07:49:25 +02:00
parent be78bd1680
commit cb97c6b2ac
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
3 changed files with 30 additions and 7 deletions

View File

@ -26,3 +26,19 @@ always @($1) begin
$2 $2
end$0 end$0
endsnippet 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

View File

@ -13,11 +13,11 @@ if &shortmess =~ 'A'
else else
set shortmess=aoO set shortmess=aoO
endif endif
badd +1 .config/nvim/init.lua badd +86 .config/nvim/viml/legacyconf.vim
argglobal argglobal
%argdel %argdel
$argadd .config/nvim/init.lua $argadd .config/nvim/viml/legacyconf.vim
edit .config/nvim/init.lua edit .config/nvim/viml/legacyconf.vim
argglobal argglobal
setlocal fdm=expr setlocal fdm=expr
setlocal fde=nvim_treesitter#foldexpr() setlocal fde=nvim_treesitter#foldexpr()
@ -27,12 +27,12 @@ setlocal fdl=0
setlocal fml=1 setlocal fml=1
setlocal fdn=20 setlocal fdn=20
setlocal nofen 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 if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l keepjumps exe s:l
normal! zt normal! zt
keepjumps 1 keepjumps 86
normal! 0 normal! 033|
tabnext 1 tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf silent exe 'bwipe ' . s:wipebuf
@ -46,7 +46,6 @@ if filereadable(s:sx)
endif endif
let &g:so = s:so_save | let &g:siso = s:siso_save let &g:so = s:so_save | let &g:siso = s:siso_save
set hlsearch set hlsearch
nohlsearch
doautoall SessionLoadPost doautoall SessionLoadPost
unlet SessionLoad unlet SessionLoad
" vim: set ft=vim : " vim: set ft=vim :

View File

@ -76,3 +76,11 @@ endif
autocmd FileType vhdl setlocal omnifunc=lsp#complete autocmd FileType vhdl setlocal omnifunc=lsp#complete
nnoremap <silent> <C-0> <Cmd>BufferNext<CR> nnoremap <silent> <C-0> <Cmd>BufferNext<CR>
" update function and call
function Update_Sys()
PackerSync
TSUpdate
endfunction
nnoremap <M-u> :call Update_Sys()<CR>