From 9e49595f5da3ba1c4c1d8482f8eb47fd8c143073 Mon Sep 17 00:00:00 2001 From: Devon Tingley Date: Sat, 16 Apr 2022 07:14:01 -0400 Subject: [PATCH] Add more nvim shortcuts --- dotfiles/fish/fish_variables | 3 ++- dotfiles/nvim/init.vim | 18 +++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/dotfiles/fish/fish_variables b/dotfiles/fish/fish_variables index 456f549..f74bfdb 100644 --- a/dotfiles/fish/fish_variables +++ b/dotfiles/fish/fish_variables @@ -1,6 +1,6 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 -SETUVAR __fish_initialized:3100 +SETUVAR __fish_initialized:3400 SETUVAR fish_color_autosuggestion:585858 SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_command:a1b56c @@ -29,4 +29,5 @@ SETUVAR fish_pager_color_completion:normal SETUVAR fish_pager_color_description:B3A06D\x1eyellow SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr SETUVAR fish_user_paths:/home/digyx/\x2ecargo/bin diff --git a/dotfiles/nvim/init.vim b/dotfiles/nvim/init.vim index 3f74e8b..ae77615 100644 --- a/dotfiles/nvim/init.vim +++ b/dotfiles/nvim/init.vim @@ -15,9 +15,9 @@ set splitright set scrolloff=10 tnoremap -command TMK w | call system("latexmk -pdf && latexmk -c") -command SHH set nonu norelativenumber scl=no -command NOSHH set nu relativenumber scl=auto +command TMK w | call system("latexmk -pdf " . expand("%")) | call system("latexmk -c") +command Shh set nonu norelativenumber scl=no +command NoShh set nu relativenumber scl=auto inoremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" @@ -41,10 +41,14 @@ let g:coc_global_extensions = [ nnoremap (coc-hover) :call CocActionAsync('definitionHover') " GoTo code navigation. -nmap gd (coc-definition) -nmap gt (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) +nmap gd (coc-definition) +nmap gt (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + +" Diagnostic navigation +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) " Misc coc-commands nmap r (coc-rename)