This commit is contained in:
ldraney 2024-03-24 13:36:25 -06:00
parent dbba54cfd8
commit 6380f390ea
26 changed files with 2704 additions and 0 deletions

23
nvim-old/config/netrw.vim Normal file
View file

@ -0,0 +1,23 @@
"give syntax highlighting to sh files with zsh syntax highlighting
au BufRead,BufNewFile *.sh setfiletype zsh
" current directory to match netrw browsing
let g:netrw_keepdir= 0
"ends up going to the same directory but doesn't open a file
"function! OpenInTmuxPane()
"" Get the full path of the current file
""let l:filepath = netrw#LocalBrowseCheck("")
""echo l:filepath
"let l:filepath = expand('%:p')
"" Prepare the tmux command
"let l:tmux_command = "tmux split-window -h 'nvim " . l:filepath . "'"
"" Call the command
"call system(l:tmux_command)
"endfunction