Skip to content

Commit

Permalink
neovim: Allow auto comments sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Dec 25, 2024
1 parent 3719c00 commit 7468e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotfiles/nvim/.config/nvim/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ augroup filetypedetect

autocmd BufNewFile,BufRead *.rb setl foldmethod=indent

" disable auto insert of comment leader
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" disable auto insert of comment leader when pressing o or O
autocmd FileType * setlocal formatoptions-=o

augroup END

0 comments on commit 7468e15

Please sign in to comment.