diff --git a/configs.vim b/configs.vim index 850ce5e8..c420220f 100644 --- a/configs.vim +++ b/configs.vim @@ -202,9 +202,14 @@ set lazyredraw set modeline " debian unsets this set exrc secure + if has('nvim-0.3.2') || has("patch-8.1.0360") set diffopt+=algorithm:histogram,indent-heuristic endif +if has('nvim-0.9') + " NOTE: this makes `dp` finer-grained than needed + set diffopt+=linematch:60 +endif endif augroup BasicSetup | au! @@ -454,10 +459,10 @@ augroup END " }}} " ColorScheme {{{ +silent! set termguicolors if !exists('g:colors_name') colorscheme taiga endif -silent! set termguicolors command! Bg if &background ==# 'dark' | set background=light | else | set background=dark | endif " }}} @@ -1453,6 +1458,7 @@ nnoremap U :UndotreeToggle let g:sentencer_filetypes = [] let g:sentencer_textwidth = 79 " formatexpr doesn't work like built-in gq for textwidth=0 let g:sentencer_ignore = ['\us :Unpdfgv:Sentencer " vim-mark let g:mwMaxMatchPriority = -2 diff --git a/notes.md b/notes.md index 7a18709a..ad28d0f2 100644 --- a/notes.md +++ b/notes.md @@ -63,6 +63,7 @@ The root cause was lazy-loading ultisnip at InsertEnter. Removed the hack. * https://github.com/lervag/vimtex/issues/1937 * `debug-mode`? * how to make `Gdiffsplit`, `G blame` do `--follow`? + * * Textobj plugins can be lazy-loaded with manual `s:lod_map` * search without confirming search, window-local search, jump with `/_CTRL-G`, ... * refreshing clipboard `call setenv('DISPLAY', '...')`: The new value can be obtained by launching another shell.. how to automate? Note: `call serverlist()` seems to work @@ -429,7 +430,13 @@ LuaSnip * Taking some actions (e.g. visual selection) adds `Normal` highlight. * If `winfixheight` (e.g. preview, quickfix), making it vertical (e.g. `L`) and then horizontal back makes it occupy almost entire screen. * Detect this on `WinScrolled` (new feature)? - * NOTE: `WinScrolled` fired when entering preview window for the first time + ```vim + au WinScrolled * if &previewwindow && (winnr('j') != winnr() || winnr('k') != winnr()) + \| noautocmd exe 'normal! z' . &previewheight . "\" + \| noautocmd vertical wincmd = + \|endif + ``` + Bug? `WinScrolled` is fired when entering preview window for the first time. * For preview window, apply `previewheight`? Note: `:pedit` doesn't accept `{height}`, unlike `:copen`. * NeoVim terminal slows down the UI if too much stuff is printed. * `api-buffer-updates` is too fine-grained (triggered for each `b:changedtick` update). It's meant to be fine-grained, but it's too fine-grained for most use cases. @@ -573,6 +580,7 @@ LuaSnip ## wishlist * timeout for built-in multi-char commands so that it doesn't interfere with user mappings * character classes (like emacs); word ≠ identifier +* smarter folding # stuff @@ -602,6 +610,7 @@ LuaSnip * https://github.com/gfanto/fzf-lsp.nvim * https://github.com/j-hui/fidget.nvim * https://git.sr.ht/%7Ewhynothugo/lsp_lines.nvim + * https://github.com/ii14/lsp-command/ * https://github.com/RRethy/nvim-treesitter-textsubjects https://github.com/vigoux/architext.nvim https://github.com/abecodes/tabout.nvim @@ -626,6 +635,7 @@ LuaSnip * `require'fzf-lua'.setup` takes 5 ms. Fixed? https://github.com/ibhagwan/fzf-lua/issues/511 * https://github.com/stevearc/dressing.nvim * https://github.com/lifepillar/vim-zeef + * https://github.com/mfussenegger/nvim-qwahl * https://github.com/jbyuki/instant.nvim https://github.com/jbyuki/nabla.nvim https://github.com/jbyuki/venn.nvim diff --git a/plugin/git.vim b/plugin/git.vim index 2583c550..276adb8c 100644 --- a/plugin/git.vim +++ b/plugin/git.vim @@ -48,10 +48,10 @@ function! GLStart(mods, args) abort syn match GLDecorate '\v\([^)]+\)' containedin=GL contained syn match GLAuthor '\v\[[^][]*\]$' - hi! link GLHash Identifier - hi! link GLDate Number - hi! link GLDecorate Label - hi! link GLAuthor String + hi def link GLHash Identifier + hi def link GLDate Number + hi def link GLDecorate Label + hi def link GLAuthor String call GLRun(args)