diff options
-rw-r--r-- | init.vim | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,6 +59,7 @@ noremap Y y$ augroup InitVim au! autocmd BufRead *.java,*.c,*.cpp,*.cxx TSBufEnable highlight + autocmd TermOpen * startinsert augroup END noremap รบ <cmd>FormatCode<cr> @@ -86,6 +87,9 @@ endif map <leader>nt <cmd>NvimTreeToggle<cr> noremap <leader>nE :<C-u>e <C-r>=expand('%:h')<cr>/ +" Opens a terminal in the directory of the current file. +command! TERM exec "term sh -c 'cd " . expand('%:p:h') . " && exec $SHELL'" + lua << EOF -- CiderLSP vim.opt.completeopt = { "menu", "menuone", "noselect" } |