From 2e089a3744df46e41e538689d37c9b2e53f2eae4 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Sun, 13 Jul 2025 17:58:43 -0500 Subject: Add which-key --- nvim/ginit.vim | 4 ++++ nvim/init.vim | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nvim/ginit.vim b/nvim/ginit.vim index 3bf891f..f50fdd6 100644 --- a/nvim/ginit.vim +++ b/nvim/ginit.vim @@ -9,6 +9,10 @@ if exists("g:fvim_loaded") || exists("g:nvy") FVimCustomTitleBar v:true endif +if exists("g:nvy") + set guifont=LiterationMono\ Nerd\ Font\ Mono:h18 +endif + if exists("g:neovide") set guifont=LiterationMono\ Nerd\ Font\ Mono:h18 set linespace=-4 diff --git a/nvim/init.vim b/nvim/init.vim index f3a6021..e6931ca 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -65,6 +65,9 @@ Plug 'deoplete-plugins/deoplete-lsp' Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/vim-vsnip' +" keymap help +Plug 'folke/which-key.nvim' + " Python Plug 'raimon49/requirements.txt.vim' @@ -118,6 +121,7 @@ Plug 'https://github.com/gbprod/nord.nvim' Plug 'ghifarit53/tokyonight-vim' Plug 'scottmckendry/cyberdream.nvim' Plug 'nyoom-engineering/oxocarbon.nvim' +Plug 'rebelot/kanagawa.nvim' "Icons, requires a nerd font Plug 'ryanoasis/vim-devicons' @@ -132,7 +136,7 @@ Plug 'hashivim/vim-terraform' call plug#end() set background=dark -let colorschemes = ['OceanicNext', 'afterglow', 'alduin', 'nord', 'edge', 'desert', 'despacio', 'onedark', 'evening', 'everforest', 'habamax', 'iceberg', 'oxocarbon', 'lunaperche', 'molokai', 'moon', 'mythos', 'cyberdream', 'orange-moon', 'pink-moon', 'quantum', 'retrobox', 'sceaduhelm', 'slate', 'sorbet', 'toast', 'tokyonight', 'vadelma', 'yellow-moon', 'zaibatsu'] +let colorschemes = ['OceanicNext', 'afterglow', 'alduin', 'nord', 'edge', 'desert', 'despacio', 'onedark', 'evening', 'everforest', 'habamax', 'iceberg', 'oxocarbon', 'lunaperche', 'molokai', 'moon', 'mythos', 'cyberdream', 'orange-moon', 'pink-moon', 'quantum', 'retrobox', 'sceaduhelm', 'kanagawa', 'sorbet', 'toast', 'tokyonight', 'vadelma', 'yellow-moon', 'zaibatsu'] "Randomly select a colorscheme based on current directory. Each project gets "it's own color- usually. @@ -172,7 +176,8 @@ let g:lua_complete_keywords=0 "au BufReadPost *.spec set syntax=lua "au BufReadPost *.etlua set syntax=html "Overwrite xolox:ftplugin's "Help" with shift-k -"au BufReadPost *.lua nunmap K +au BufReadPost *.lua unmap K +"au BufReadPost *.lua eval b:undo_ftplugin "au BufReadPost *.lua let g:lua_complete_omni=1 " GLSL au BufReadPost *.vs,*.fs set ft=glsl @@ -210,6 +215,8 @@ let mapleader=";" noremap c :call fzf#run(fzf#wrap({'sink': 'Git checkout', 'left':'20%', 'source': 'git branch \| tr -d " "' })) noremap a :call fzf#run(fzf#wrap({'sink': 'git checkout', 'left':'50%', 'source': 'ag --nogroup --column --color --', 'preview-window':'up','preview':expand(':p:h:h:h').'/bin/preview.sh'})) +" which-key, helps finding keybinds +noremap w lua require("which-key").show({}) "Fuzzy sbt function! s:VTerm(command) -- cgit v1.2.3-70-g09d2