Skip to content
/ dotfiles Public

Dotfiles for various utilities (vim and what not)

Notifications You must be signed in to change notification settings

gfszr/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Contain all dotfiles and submodules required for my Vim setup, along with some ZSH configuration, tmux and what not.

Note: Works out of the box on macOS, but should be fairly easy to port to any linux distro, with the following changes:

  • tmux-spotify doesn't work on linux. It can be replaced though.
  • Change the apple icon to tux :)

It looks like this:

Demo

Using coc.nvim's autocompletion together with borders for floating windows:

Demo2

Demo3

Using nvim-dap and nvim-dap-ui to create a nice debug session:

Demo4

Customizing vim-airline defaults to include coc_current_function and diagnostics information in case there is:

Demo5

Installation

I've attached a very simple script setup.sh that removes prior configurations and creates symbolic links to the correct directories in this repo.

The setup script does not install dependencies, so make sure to install prior dependencies, otherwise some features may not work.

For iTerm2 colors, I've attached colors.itermcolors. Import it in iTerm2 preferences.

Requirements

  • neovim >= 0.6.0, with neovim python support (pip3 install neovim).
  • tmux >= 3.2, for tmux floating popups, used both in .vimrc and tmux.conf.
  • zsh with oh-my-zsh installation. Check ohmyzsh for reference.
  • fzf - for support using FZF integration with vim.
  • lazygit for a good git TUI through vim and tmux.
  • yarn and node, in order for coc.nvim to work. Run yarn install in nvim/pack/man/start/coc.nvim after installation, other than using a precompiled release branch.

For extra configurations and useful installations, please refer to the recommendations section.

Recommendations

Although not required and not attached, I use:

  • delta - for nicer git diffs. Make sure to cnofigure your .gitconfig with diffing using delta. I use the following in my .gitconfig:
[core]
    pager = delta

[interactive]
    diffFilter = delta --color-only

[delta]
    navigate = true  # use n and N to move between diff sections
    side-by-side = true
    line-numbers = true
    paging = always

[merge]
    conflictstyle = diff3

[diff]
    colorMoved = default

  • bat - nicer replacement for cat. FZF integration in vim shows file previews with bat.
  • Use :CocInstall to install coc.nvim plugins! I use coc-jedi, coc-go, coc-clangd
  • If you wish, you can install vista.vim, useful for symbol searching.

Patched fonts

I used nerd-fonts to patch Monaco with many nice glyphs. I also recommend Consolas.

Thanks

Almost all is based on amazing plugins and themes with no/small modifications. For easy upgrades in the future, plugins are referenced as submodules. I've made modifications to the following:

  • The tmux theme I am using is the amazing maglev by caigondim, with only small modifications.

About

Dotfiles for various utilities (vim and what not)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published