diff --git a/UltiSnips/verilog.snippets b/UltiSnips/verilog.snippets index 764bd78..677fd39 100644 --- a/UltiSnips/verilog.snippets +++ b/UltiSnips/verilog.snippets @@ -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 diff --git a/lastSession.vi b/lastSession.vi index 0aab68c..870e7f9 100644 --- a/lastSession.vi +++ b/lastSession.vi @@ -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 : diff --git a/viml/legacyconf.vim b/viml/legacyconf.vim index af73408..4d8e518 100644 --- a/viml/legacyconf.vim +++ b/viml/legacyconf.vim @@ -76,3 +76,11 @@ endif autocmd FileType vhdl setlocal omnifunc=lsp#complete nnoremap BufferNext + +" update function and call +function Update_Sys() + PackerSync + TSUpdate +endfunction + +nnoremap :call Update_Sys()