Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj committed Nov 12, 2022
1 parent 48722ed commit 91e4bd4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
8 changes: 7 additions & 1 deletion configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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
" }}}

Expand Down Expand Up @@ -1453,6 +1458,7 @@ nnoremap U :UndotreeToggle<CR>
let g:sentencer_filetypes = []
let g:sentencer_textwidth = 79 " formatexpr doesn't work like built-in gq for textwidth=0
let g:sentencer_ignore = ['\<i.e', '\<e.g', '\<vs', '\<Dr', '\<Mr', '\<Mrs', '\<Ms', '\<et al', '\<fig']
xnoremap <leader>us :Unpdf<CR>gv:Sentencer<CR>
" vim-mark
let g:mwMaxMatchPriority = -2
Expand Down
12 changes: 11 additions & 1 deletion notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`?
* <https://github.com/tpope/vim-fugitive/issues/2070>
* 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
Expand Down Expand Up @@ -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. `<C-w>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 . "\<CR>"
\| 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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions plugin/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 91e4bd4

Please sign in to comment.