Switch to neovim, update skhd, iterm, yabai
This commit is contained in:
36
.config/nvim/coc.vim
Normal file
36
.config/nvim/coc.vim
Normal file
@@ -0,0 +1,36 @@
|
||||
" COC Edits
|
||||
" Use tab for trigger completion with characters ahead and navigate.
|
||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||
" other plugin before putting this into your config.
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
" Use <c-space> to trigger completion.
|
||||
if has('nvim')
|
||||
inoremap <silent><expr> <c-space> coc#refresh()
|
||||
else
|
||||
inoremap <silent><expr> <c-@> coc#refresh()
|
||||
endif
|
||||
|
||||
|
||||
" Make <CR> auto-select the first completion item and notify coc.nvim to
|
||||
" format on enter, <cr> could be remapped by other vim plugin
|
||||
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||
|
||||
" Use `[g` and `]g` to navigate diagnostics
|
||||
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
|
||||
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||
|
||||
set runtimepath^=/home/xyvs/.vim/plugged/coc.nvim
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
7
.config/nvim/init.vim
Normal file
7
.config/nvim/init.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath=&runtimepath
|
||||
|
||||
source ~/.vim/vimrc
|
||||
source ~/.config/nvim/coc.vim
|
||||
|
||||
lua require('telescope').load_extension('coc')
|
||||
@@ -9,7 +9,7 @@ alt - tab : yabai -m display --focus next || yabai -m display --focus first
|
||||
cmd - o : yabai -m space --create && \
|
||||
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
|
||||
yabai -m space --focus "${index}"
|
||||
cmd - p : yabai -m space --destroy
|
||||
# cmd - p : yabai -m space --destroy # Doesn't work
|
||||
|
||||
# switch spaces
|
||||
cmd - 1 : yabai -m space --focus 1
|
||||
@@ -59,7 +59,7 @@ cmd + shift - 4 : yabai -m window --space 4
|
||||
cmd + shift - 5 : yabai -m window --space 5
|
||||
|
||||
# toggle full screen windows
|
||||
cmd - f : yabai -m window --toggle zoom-fullscreen
|
||||
cmd - s : yabai -m window --toggle zoom-fullscreen
|
||||
|
||||
# toogle floating windows
|
||||
cmd - d : yabai -m window --toggle float
|
||||
|
||||
@@ -4,16 +4,6 @@
|
||||
<dict>
|
||||
<key>AlternateMouseScroll</key>
|
||||
<true/>
|
||||
<key>AppleAntiAliasingThreshold</key>
|
||||
<integer>1</integer>
|
||||
<key>ApplePressAndHoldEnabled</key>
|
||||
<false/>
|
||||
<key>AppleScrollAnimationEnabled</key>
|
||||
<integer>0</integer>
|
||||
<key>AppleSmoothFixedFontsSizeThreshold</key>
|
||||
<integer>1</integer>
|
||||
<key>AppleWindowTabbingMode</key>
|
||||
<string>manual</string>
|
||||
<key>BadgeRightMargin</key>
|
||||
<integer>10</integer>
|
||||
<key>BadgeTopMargin</key>
|
||||
@@ -721,13 +711,13 @@
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.066666670143604279</real>
|
||||
<real>0.029576778411865234</real>
|
||||
<key>Color Space</key>
|
||||
<string>sRGB</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.066666670143604279</real>
|
||||
<real>0.029576778411865234</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.066666670143604279</real>
|
||||
<real>0.029576778411865234</real>
|
||||
</dict>
|
||||
<key>Background Image Location</key>
|
||||
<string></string>
|
||||
@@ -1296,6 +1286,8 @@
|
||||
<integer>30</integer>
|
||||
<key>VisualIndicatorForEsc</key>
|
||||
<false/>
|
||||
<key>findMode_iTerm</key>
|
||||
<integer>0</integer>
|
||||
<key>kCPKSelectionViewPreferredModeKey</key>
|
||||
<integer>0</integer>
|
||||
<key>kCPKSelectionViewShowHSBTextFieldsKey</key>
|
||||
|
||||
@@ -58,5 +58,7 @@ yabai -m rule --add app="^Hyperkey$" manage=off
|
||||
yabai -m rule --add app="^Finder$" manage=off
|
||||
yabai -m rule --add app="^IINA$" manage=off
|
||||
yabai -m rule --add app="^mpv$" manage=off
|
||||
yabai -m rule --add app="^LastPass$" manage=off
|
||||
yabai -m rule --add app="^Calendar$" manage=off
|
||||
|
||||
echo "yabai configuration loaded.."
|
||||
|
||||
Reference in New Issue
Block a user