Skip to content

Commit b6b30b9

Browse files
committed
NeoVim config improvements
* Removed auto-pairs plugin - it only causes difficulties * Fixed OSC52 yank - no more crashing on "y" key press * Added abbreviation for binding.pry that I use a lot Also yet another attempt to fix OSC52 In mosh-tmux environment. Unfortunately mosh project is abandoned, so there is no chance mobile-shell/mosh#1054 will be merged. And those workarounds actually never work.
1 parent 4c8445c commit b6b30b9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

home/.config/nvim/init.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ endif
66

77
autocmd StdinReadPre * let s:std_in=1
88
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'cd' argv()[0] | endif
9-
autocmd TextYankPost * silent! if v:event.operator ==# 'y' | call YankOSC52(join(v:event["regcontents"],"\n")) | endif
9+
" autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '+' | execute 'OSCYankReg +' | endif
10+
autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '' | execute 'OSCYankReg "' | endif
11+
" autocmd TextYankPost * silent! if v:event.operator ==# 'y' | call YankOSC52(join(v:event["regcontents"],"\n")) | endif
1012
autocmd CursorHold * lua vim.lsp.diagnostic.show_line_diagnostics()
1113
autocmd User LspDiagnosticsChanged call lightline#update()
1214
augroup highlight_yank
1315
autocmd!
1416
autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000)
1517
augroup END
1618
autocmd FileType text,markdown,mail,gitcommit setlocal spell spelllang=en_us
19+
autocmd FileType ruby iabbrev <buffer> pry binding.pry
1720
" }}}
1821

1922
" Plugins {{{
@@ -31,7 +34,6 @@ Plug 'junegunn/fzf', { 'dir': '~/.config/fzf', 'do': { -> fzf#install() } }
3134
Plug 'junegunn/fzf.vim'
3235
Plug 'scrooloose/nerdcommenter'
3336
Plug 'janko/vim-test'
34-
Plug 'tmsvg/pear-tree'
3537
Plug 'ojroques/vim-oscyank'
3638
Plug 'hrsh7th/nvim-compe'
3739
call plug#end()

home/.tmux.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ set -sg display-time 2000
99
set -sg escape-time 0
1010
set -sg focus-events on
1111
set -g default-terminal "screen-256color"
12-
set -ga terminal-overrides ',screen-256color:Tc'
12+
set -ag terminal-overrides ",screen-256color:colors=256:Tc"
13+
set -ag terminal-overrides ",screen-256color:Ms=\\E]52;c;%p2%s\\7"
1314
# set -ga terminal-overrides ",xterm-256color*:Tc:kend=\E[F:khome=\E[H:smkx=\E=:rmkx=\E>"
1415
set -wg xterm-keys on
1516
set -g visual-activity off

0 commit comments

Comments
 (0)