Skip to content

Commit

Permalink
nvim: enable completions for commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed Apr 25, 2024
1 parent 1e1b834 commit e56c6a6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions nvim/.config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Plug 'airblade/vim-gitgutter'
Plug 'APZelos/blamer.nvim'

" GitHub
" Plug 'github/copilot.vim'
Plug 'github/copilot.vim'

Plug 'roxma/nvim-yarp'
Plug 'ncm2/ncm2'
Expand Down Expand Up @@ -124,6 +124,12 @@ else
endif

let g:deoplete#enable_at_startup = 1
let g:copilot_filetypes = {
\ 'yaml': 1,
\ 'gitcommit': 1,
\ 'gitrebase': 1,
\ 'markdown': 1,
\ }

call plug#end()

Expand Down Expand Up @@ -313,6 +319,11 @@ let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1

let g:filetype_defaults = {
\ 'yaml': 1,
\ 'markdown': 1,
\ }

nmap <C-Bslash> :NERDComToggleComment<CR>
vmap <C-Bslash> :NERDComToggleComment<CR>gv
Expand All @@ -328,7 +339,7 @@ set relativenumber
set wildmenu

" Shell trix to load env
set shellcmdflag=-ic
set shellcmdflag=-c

" Search matching options
set ignorecase
Expand All @@ -355,10 +366,11 @@ set backspace=indent,eol,start
set whichwrap+=<,>,[,]

" Indents
set tabstop=8
set softtabstop=0
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
set shiftwidth=4
set smarttab
set shiftround
set autoindent
Expand Down

0 comments on commit e56c6a6

Please sign in to comment.