1
0
mirror of https://gitlab.com/baco/dotconf.git synced 2024-06-15 04:36:36 +00:00
dotfiles/nvim
Dionisio E Alonso d89dbf5458 feat(LSP): Final part of the refactor. Explicit call of LSPs
Now that code looks cleaner and there are less things going around, made
the different LSPs servers setups explicit.  With this change there is a
clear picture of which LSP requires extra/custom options and which
don't.
2024-01-04 17:01:58 -03:00
..
after/queries/python fix: Change keyword class grouping in treesiter 2022-07-20 12:58:33 -03:00
lua feat(nvim-cmp): Delete setting for completeopt 2024-01-04 09:40:24 -03:00
pack feat(submodules): Bump versions in (Neo)vim's plugins 2023-04-07 19:47:33 -03:00
coc-settings.json fix: Deleting deprecated configuration from CoC 2022-08-08 17:02:41 -03:00
defaults.vim Copy new Vim default to Neovim's config 2020-07-16 10:19:16 -03:00
ginit.vim feat(Iosevka): Bumped version to 26.1.0 2023-08-16 14:49:56 -03:00
init.vim feat(neovim): Group all vim-airline settings together 2023-04-09 17:17:13 -03:00
lsp_client_settings.vim feat(LSP): Final part of the refactor. Explicit call of LSPs 2024-01-04 17:01:58 -03:00
nvim_treesitter.vim feat(Neovim): Minor refactor in TreeSitter settings file 2023-09-20 08:38:01 -03:00
README.rst feat: Update Neovim's README 2022-11-03 19:09:38 -03:00

Tuning up Neovim/Vim

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.

Optional: (some requirements)

For using Vim with coc.nvim plugin, or even some of the Neovim's native LSP servers, you need to install Node+npm. You can provide that on your system or, if you don't have administrative permissions, follow CoC's wiki instructions for requirements: :

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

~ Made with ❤️ and 🧉 ~