Skip to content

asiryk/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim configuration

preview

TODO

  • Add syntax correction and underline for comments or identifier names (either builtin or plugin)

Highlight Group TODO

  • Change GitSigns highlight groups to match vim diff (existing groups).
  • Change indent blankline highlight equal to visual mode highlight.
  • Investigate the reason why nvim cmp highlights is corrupted after switching color schemes

Requirements

  • Neovim
  • A C compiler in your path and libstdc++ installed (gcc, g++) for TreeSitter

Removing

To completely remove any footprints of the config:

rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim

Git Workflow requirements

  • Hunk features:

    • Stage/Unstage current hunk
    • Jump to current/prev hunk
    • Diff hunk under the cursor Gitsigns is sorted this out.
  • Able to see diff for staged/unstaged. Also for comparing branches like master to current branch: to see what I'm going to merge to master. The Diffview plugin allows to do that. DiffviewOpen; DiffviewOpen master..HEAD

  • Search through the log history. Telescope git_commits

  • Commit & push within the neovim Fugitive: Git commit; Git push

  • Being able to see the history for a line. It is a common that current line gets overridden by prettier, or other stuff. It's nice to see more recent changes for this line.

    Currently only regular git diff (no Diffview)

    vim.cmd('Git log -L' .. vim.fn.line('.') .. ',' .. vim.fn.line('.') .. ':' .. vim.fn.expand('%'))
    

Useful things I want to remember

Fix very long lines

Set a width, and split very long lines with the ones that fit into specified width

:set textwidth=90
:g/^/normal gq$

Spell check

:set spell spelllang=uk,en

zg - add custom word to dictionary zug - remove custom word from dictionary