From 65b8206953854ba7a309d44ee222ecb953ae39c8 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 3 Nov 2024 02:25:19 +0100 Subject: updat --- config/openbox/cortile-arm64 | Bin 8585216 -> 8978584 bytes config/openbox/cortile-x86 | Bin 9052160 -> 9367704 bytes vimrc | 59 ++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 56 insertions(+), 3 deletions(-) diff --git a/config/openbox/cortile-arm64 b/config/openbox/cortile-arm64 index 4087f3b..a917558 100755 Binary files a/config/openbox/cortile-arm64 and b/config/openbox/cortile-arm64 differ diff --git a/config/openbox/cortile-x86 b/config/openbox/cortile-x86 index 3eff881..92dce76 100755 Binary files a/config/openbox/cortile-x86 and b/config/openbox/cortile-x86 differ diff --git a/vimrc b/vimrc index eca2c08..26ab150 100644 --- a/vimrc +++ b/vimrc @@ -3,6 +3,7 @@ let g:vsnip_snippet_dir = '~/.config/nvim/snippets' " fuck zig niggers let g:polyglot_disabled = ['autoindent'] + lua <= 0 + return + endif + let l:cur_line = line('.') + let l:last_line = line('$') + + if !has_key(s:signs, 0) + execute 'sign define RelNum0 text=0 texthl=LineNr' + let s:signs[0] = 1 + endif + + for l:lnum in range(1, l:last_line) + if l:lnum != l:cur_line + let l:distance = abs(l:cur_line - l:lnum) + if l:distance > 0 && l:distance <= 9 + if !has_key(s:signs, l:distance) + execute 'sign define RelNum' . l:distance . ' text=' . l:distance . ' texthl=LineNr' + let s:signs[l:distance] = 1 + endif + execute 'sign place ' . l:lnum . ' line=' . l:lnum . + \' name=RelNum' . l:distance . + \' group=RelativeLineNumbers buffer=' . bufnr('') + endif + endif + endfor +endfunction + +augroup RelativeSignNumbers + autocmd! + autocmd BufEnter,WinEnter,CursorMoved,CursorMovedI * call s:UpdateSignColumn() +augroup END + +command! EnableRelativeSignNumbers call s:UpdateSignColumn() +command! DisableRelativeSignNumbers execute 'sign unplace * group=RelativeLineNumbers' let g:lightline.component_raw = {'buffers': 1} let g:lightline#bufferline#clickable = 1 let g:lightline#bufferline#show_number = 2 @@ -592,6 +644,7 @@ hi def link @lsp.type.keywordLiteral.zig Special hi def link @lsp.type.string.zig NONE hi @type.builtin.cpp guifg=#ea5ce2 hi SpecialChar ctermfg=9 guifg=#e4600e +hi SignColumn guibg=#000000 let g:vim_json_conceal=0 let g:markdown_syntax_conceal=0 @@ -602,7 +655,7 @@ let NERDTreeQuitOnOpen=1 autocmd BufNewFile,BufRead *.zig set shiftwidth=2 autocmd BufNewFile,BufRead *.modelfile set ft=gotmpl -aunmenu PopUp.How-to\ disable\ mouse aunmenu PopUp.Inspect aunmenu PopUp.-1- -aunmenu PopUp.-2- +aunmenu PopUp.How-to\ disable\ mouse +anoremenu PopUp.Inspect Inspect -- cgit v1.2.3