dotfiles/nvim
Dionisio E Alonso 82697ea146 feat: Migrate autocmd in on_attach to pure Lua call
Migrated, following TeeJ_Dv's advice, the auto-command creation to a Lua
function.  As this auto-command only cares for the on_attach Lua scope,
it seems correct to have this one defined as a Lua function instead of
the legacy Vimscript.
2022-08-07 23:46:46 -03:00
..
after/queries/python fix: Change keyword class grouping in treesiter 2022-07-20 12:58:33 -03:00
lua feat: Disable some redundant checks for LSP 2022-05-19 11:25:34 -03:00
pack Add Treesitter to Neovim packages 2022-01-07 16:07:53 -03:00
README.rst feat: Move Neovim/Vim specific docs to their own README 2022-08-07 18:25:34 -03:00
coc-settings.json Use VSCode icons on Neovim/Vim for item kind 2021-03-14 19:23:21 -03:00
defaults.vim Copy new Vim default to Neovim's config 2020-07-16 10:19:16 -03:00
ginit.vim fix: Migrate transparent configuration to new version 2022-08-05 12:40:14 -03:00
init.vim fix: Migrate transparent configuration to new version 2022-08-05 12:40:14 -03:00
lsp_client_settings.vim feat: Migrate autocmd in on_attach to pure Lua call 2022-08-07 23:46:46 -03:00

README.rst

Tuning up Neovim/Vim

For using Vim with coc.nvim plugin, you need to install Node+npm. One way of doing that is: :

$ curl -sL install-node.now.sh/lts | bash -s -- --prefix ~/.local

Fonts with icon glyphs

Some glyphs (icons) on Neovim/Vim might appear to be missing or broken!!! You may need to use a patched font with the NerdFonts project.

Neovim/Vim config here has some automatic code completion. Instead of using words or letters for representing the different kind of completion items, this config uses nice icons like popular IDEs to give some familiar look.

Easy fix

Choose your favourite programming font (already patched) from NerdFonts, install it on your system and set it as your terminal profile font.

(Alternatively)

You may prefer not to have symbols at all. In that case, you have to:

  1. In nvim/lsp_client_settings.vim file comment-out/delete:
    • the entry line formatting = {format = cmp_format}
    • the 4 diagnostics lines starting with: sign define DiagnosticSign
  2. In vim/coc-settings.json delete the entry suggest.completionItemKindLabels.

Not so easy fix: Patch your own font

Install FontForge, for instance, on a Debian-based distro you can install this: :

$ sudo apt install python3-fontforge

Clone NerdFonts repository and inside that directory run the following commands (This example assumes you are patching Iosevka font, but you can patch one of your choice): :

./nerd-fonts$ ls -u ~/.local/share/fonts/Iosevka/v15.6.2/ttf-unhinted/iosevka-curly-slab-{regular,bold,italic,bolditalic,extended{,bold,italic,bolditalic}}.ttf |
                  while read file
                  do
                      fontforge -script ./font-patcher -c -out=$HOME/.local/share/fonts/"Iosevka Nerd Font"/ -ext=otf $file
                  done

For other uses of the font-patcher tool you can read the official documentation.

~ Made with ❤️ and 🧉 ~