Skip to content

Commit

Permalink
term stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Dec 6, 2023
1 parent 1e36825 commit 8dbf49b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .config/nvim/lua/plugins/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ endfunction
" Autocmd
function! s:ftplugin_fugitive() abort
resize 20
nnoremap <buffer> <silent> <leader>t :vert term<cr>
nnoremap <buffer> <silent> cc :Git commit --quiet<CR>
nnoremap <buffer> <silent> gl :Gl<CR>
nnoremap <buffer> <silent> gp :Gp<CR>
Expand Down
7 changes: 7 additions & 0 deletions .config/nvim/lua/user/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ autocmd({ 'FileType' }, {
end, { buffer = true })
end,
})
-- autocmd for terminal buffers
local term_au = augroup 'MosheTerm'
autocmd({ 'TermOpen' }, {
group = term_au,
pattern = '*',
command = 'startinsert',
})

-- custom settings
local CustomSettingsGroup = augroup 'CustomSettingsGroup'
Expand Down

0 comments on commit 8dbf49b

Please sign in to comment.