neovim: Added goyo and tmux pane renaming

This commit is contained in:
fleaz 2023-07-20 15:00:10 +02:00
parent 5f39770bbd
commit bc4e8d8c73

View file

@ -55,6 +55,8 @@
cmp-nvim-lsp cmp-nvim-lsp
cmp-buffer cmp-buffer
vim-terraform
goyo-vim
]; ];
extraConfig = '' extraConfig = ''
set nocompatible set nocompatible
@ -136,6 +138,15 @@
" neoformat " neoformat
let g:neoformat_python_black = { 'args': ['-l 120'] } let g:neoformat_python_black = { 'args': ['-l 120'] }
<<<<<<< HEAD
=======
" Set name of tmux pane
autocmd BufReadPost,FileReadPost,BufNewFile,BufEnter * call system("tmux rename-window 'vim " . expand("%:t") . "'")
autocmd VimLeave * call system("tmux rename-window 'tmux'")
" Enter goyo mode
nmap <Leader>gy :Goyo 50%x100%<CR>
>>>>>>> c3f5e69 (neovim: Added goyo and tmux pane renaming)
lua << EOF lua << EOF
require("bufferline").setup{} require("bufferline").setup{}