dotfiles/README.rst

2.5 KiB

Baco's Dotfiles

These are my dot files.

Submodules

Take into account that this project has submodules. When cloning do it as: :

$ git clone --recurse-submodules --remote-submodules https://gitlab.com/baco/dotconf.git

Some Neovim/Vim specifics

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

Periodically update submodules with the following git command, or if cloned without the --recurse-submodules --remote-submodules git-clone flags: :

$ git submodule update --remote --init

Fonts with icon glyphs

If there are some glyphs on Neovim/Vim that appear to be missing or broken, you may need to patch your own 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 from popular IDEs to give some familiar look.

Easy fix

Choose some other symbols available in you coding font of preference and set them in nvim/lua/lspkind_defaults.lua and in vim/coc-settings.json. Or just delete all settings of symbol_map and completionItemKindLabels within those files, respectively, and let the plugin choose the defaults.

Not so easy fix: Patch your own font with codeicons glyphs

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$ wget --content-disposition "https://microsoft.github.io/vscode-codicons/dist/codicon.ttf" -P ./src/glyphs/
./nerd-fonts$ ls -u ../Iosevka/v3.2.2/ttf-unhinted/iosevka-curly-slab-{regular,bold,italic,bolditalic,extended{,bold,italic,bolditalic}}.ttf |
              while read file
              do
                  python3 ./font-patcher -c -out ~/.local/share/fonts/"Iosevka Nerd Font"/ -ext otf --custom codicon.ttf $file
              done

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