diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index fed36bf..bd7070f 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -5,6 +5,13 @@ nnoremap s :TagbarToggle " Remove Highlight nnoremap :let @/="" +" Always show the signcolumn +if has("patch-8.1.1564") + " Recently vim can merge signcolumn and number column into one + set signcolumn=number +else + set signcolumn=yes +endif " Required for operations modifying multiple buffers like rename. " Used by coc.nvim @@ -20,6 +27,9 @@ autocmd CursorHold * silent call CocActionAsync('highlight') " C-Space triggers autocompletion inoremap coc#refresh() +" coc.nvim quick fix +nmap qf (coc-fix-current) + " Use tab for trigger completion with characters ahead and navigate. " Used by coc.nvim inoremap @@ -84,6 +94,9 @@ nnoremap c :CocList commands " Plugged Plugins call plug#begin(stdpath('data') . '/plugged') +" Activity Tracking +Plug 'ActivityWatch/aw-watcher-vim' + " One Dark Theme Plug 'joshdick/onedark.vim' @@ -123,6 +136,9 @@ Plug 'ryanoasis/vim-devicons' " Better Rust Synatax Highlighting Plug 'arzg/vim-rust-syntax-ext' +" Auto-close brackets +Plug 'jiangmiao/auto-pairs' + call plug#end() " Autosave with rust-fmt (Rust Only) diff --git a/paoda.zsh b/paoda.zsh index 7bad516..1c8b779 100644 --- a/paoda.zsh +++ b/paoda.zsh @@ -2,9 +2,6 @@ # Make ZSH behave like vim bindkey -v -# Re-enable reverse-i-search -# bindkey '^R' history-incremental-search-backward - # Aliases alias yay="yay --aur" alias ls="exa" @@ -23,16 +20,6 @@ dotfile() { fi } - -# alias dotfile='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME ' - - -### Environment Variable Exports - -# Rust -export CARGO_HOME=~/.local/share/cargo -export RUSTUP_HOME=~/.config/rustup - # Re-enable reverse-i-search bindkey '^R' history-incremental-search-backward