mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(vim): add configuration for vim-commentary
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
6
nvim/plugin-config/vim-commentary.vim
Normal file
6
nvim/plugin-config/vim-commentary.vim
Normal 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-->
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user