From 5dfd8b8c37f1b62af45a45803038216a38a676b7 Mon Sep 17 00:00:00 2001 From: Alex Pickering Date: Thu, 15 May 2025 16:50:52 -0500 Subject: Change alt+ commands to use meta key, whatever it may be. --- nvim/init.vim | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'nvim') diff --git a/nvim/init.vim b/nvim/init.vim index f4208f2..c5c2ad0 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -25,6 +25,9 @@ set cmdheight=2 if has('win32') source $VIMRUNTIME/mswin.vim endif +if has('mac') + let g:neovide_input_macos_option_key_is_meta = 'only_left' +endif let g:python3_host_prog='python3' call plug#begin('~/.vim/plugged') @@ -193,7 +196,7 @@ let NERDTreeMapJumpFirstChild='y' "Fuzzy file search let g:fzf_layout = { 'window': {'width': 0.9, 'height': 0.6} } -noremap :call fzf#run(fzf#wrap({'sink': 'tabe', 'left': '20%', 'source': 'git ls-files'})) +noremap :call fzf#run(fzf#wrap({'sink': 'tabe', 'left': '20%', 'source': 'git ls-files'})) noremap :call fzf#run(fzf#wrap({'sink': 'vsplit', 'left': '50%', 'source': 'git ls-files'})) "Set leader @@ -236,15 +239,15 @@ vnoremap H 5h vnoremap L 5l "Navigate splits -tnoremap h -tnoremap j -tnoremap k -tnoremap l +tnoremap h +tnoremap j +tnoremap k +tnoremap l -nnoremap h -nnoremap j -nnoremap k -nnoremap l +nnoremap h +nnoremap j +nnoremap k +nnoremap l "Resize splits "noremap :vertical resize -5 @@ -296,7 +299,7 @@ noremap :vsplit:terminal noremap :Ag "Restart vim (alt+1) -noremap :source $MYVIMRC \| :PlugInstall +noremap :source $MYVIMRC \| :PlugInstall filetype plugin indent on syntax enable @@ -440,3 +443,8 @@ lua << EOF restart_on_save = false, } EOF + +" Acrisure + +" Sqlfluf leader+sql +"nnoremap sql :let cfile=expand('%'):vsplit:terminalisqlfluff -- cgit v1.2.3-70-g09d2