~dvko/dotfiles

6332d5be7b4b632ac6e234432cea51fc2b55a6c9 — Danny van Kooten 4 months ago f2c67f4
add plugin for twig support & match html tags
1 files changed, 15 insertions(+), 14 deletions(-)

M .config/nvim/init.vim
M .config/nvim/init.vim => .config/nvim/init.vim +15 -14
@@ 1,14 1,18 @@
set nocompatible              " be iMproved, required
filetype off                  " required

filetype plugin indent on    " required

" List of installed plugins (using vim-plug)
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'gpanders/editorconfig.nvim' 
Plug 'nvim-tree/nvim-tree.lua'
Plug 'akinsho/bufferline.nvim', { 'tag': 'v3.*' }
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
Plug 'nelsyeung/twig.vim'
Plug 'leafOfTree/vim-matchtag'
call plug#end()
set nocompatible              " be iMproved, required
filetype off                  " required

filetype plugin indent on    " required

" enable syntax highlighting
syntax on


@@ 67,16 71,8 @@ set backupskip=/tmp/*,/private/tmp/*
" store swap files in /tmp instead of wd
set directory=/tmp

" enable closetag in these files
let g:closetag_filenames = '*.html,*.php'

" use a project specific tag file first
set tags=./.tags;,~/.vimtags

" Use ag (silver searcher) instead of Ack
if executable('ag')
    let g:ackprg = 'ag --vimgrep'
endif
" Set color scheme
colorscheme tokyonight-moon

" Some servers have issues with backup files, see #649.
set nobackup


@@ 239,6 235,7 @@ nnoremap <silent><nowait> <space>p  :<C-u>CocListResume<CR>
" Enable terminal colors (required for bufferline & nvim-tree)
set termguicolors

" Init bufferline
lua << EOF
require("bufferline").setup{
    options = {


@@ 262,3 259,7 @@ vim.g.loaded_netrwPlugin = 1

require("nvim-tree").setup()
EOF 

" Enable matchtags on certain files
let g:vim_matchtag_enable_by_default = 1
let g:vim_matchtag_files = '*.html,*.xml,*.js,*.jsx,*.twig'