From 20bc33046c2af9e1311e4546aa3267327ef6ba6f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 4 Nov 2021 00:18:03 +0000 Subject: [PATCH] nvim: group vim.cmd commands --- nvim/.config/nvim/lua/opdavies/init.lua | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/nvim/.config/nvim/lua/opdavies/init.lua b/nvim/.config/nvim/lua/opdavies/init.lua index 4a0f55c..2f62d7e 100644 --- a/nvim/.config/nvim/lua/opdavies/init.lua +++ b/nvim/.config/nvim/lua/opdavies/init.lua @@ -1,18 +1,20 @@ vim.g.mapleader = ' ' -vim.cmd 'autocmd BufRead,BufNewFile *.test set filetype=php' -vim.cmd 'autocmd FileType gitcommit highlight ColorColumn ctermbg=8' -vim.cmd 'autocmd FileType gitcommit setlocal colorcolumn=50,72' -vim.cmd 'autocmd FileType gitcommit setlocal spell' -vim.cmd 'autocmd FileType gitcommit setlocal textwidth=72' +vim.cmd[[ + syntax on -vim.cmd 'filetype indent on' -vim.cmd 'filetype on' -vim.cmd 'filetype plugin on' + filetype indent on + filetype on + filetype plugin on -vim.cmd 'highlight Comment cterm=italic gui=italic' + autocmd BufRead,BufNewFile *.test set filetype=php + autocmd FileType gitcommit highlight ColorColumn ctermbg=8 + autocmd FileType gitcommit setlocal colorcolumn=50,72 + autocmd FileType gitcommit setlocal spell + autocmd FileType gitcommit setlocal textwidth=72 -vim.cmd 'syntax on' + highlight Comment cterm=italic gui=italic +]] vim.o.autoindent = true vim.o.breakindent = true