chore(vim): add configuration for vim-commentary

This commit is contained in:
Stefan Imhoff
2021-12-23 19:20:40 +01:00
parent 8ec3567276
commit dbfc5174e6
4 changed files with 12 additions and 1 deletions

View File

@@ -104,3 +104,5 @@ autocmd BufNewFile,BufRead *.json set filetype=json
autocmd BufNewFile,BufRead *.pcss set filetype=css syntax=scss
autocmd BufNewFile,BufRead *.postcss set filetype=css syntax=scss
autocmd BufNewFile,BufRead *.rss set filetype=xml
autocmd BufEnter *.{js,jsx,ts,tsx} :syntax sync fromstart
autocmd BufLeave *.{js,jsx,ts,tsx} :syntax sync clear

View File

@@ -29,5 +29,6 @@ source ~/.config/nvim/plugin-config/treesitter.lua
source ~/.config/nvim/plugin-config/trouble.lua
source ~/.config/nvim/plugin-config/ultisnips.vim
source ~/.config/nvim/plugin-config/vim-easymotion.vim
source ~/.config/nvim/plugin-config/vim-commentary.vim
source ~/.config/nvim/plugin-config/vimux.vim
source ~/.config/nvim/plugin-config/web-devicons.lua

View File

@@ -0,0 +1,6 @@
" commentary.vim
" https://github.com/tpope/vim-commentary
autocmd FileType apache setlocal commentstring=#\ %s
autocmd FileType gspec setlocal commentstring=#\ %s
autocmd FileType eruby setlocal commentstring=<!--%s-->

View File

@@ -72,12 +72,14 @@ Plug 'yamatsum/nvim-cursorline'
" Syntax Highlighting
Plug 'JoosepAlviste/nvim-ts-context-commentstring'
Plug 'editorconfig/editorconfig-vim'
Plug 'jparise/vim-graphql'
Plug 'jxnblk/vim-mdx-js'
Plug 'mattn/emmet-vim'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'peitalin/vim-jsx-typescript'
Plug 'sheerun/vim-polyglot'
Plug 'styled-components/vim-styled-components'
Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'