From 938d54a50f8e7e53667f4bbf6efe0e5bc310cd02 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 30 Aug 2021 18:13:25 +0200 Subject: vim: make augroup util a global --- .vim/lua/plugins.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.vim/lua/plugins.lua') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 9560d98..6f7be9b 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -117,7 +117,7 @@ return require('packer').startup({function() vim.fn.sign_define('LightBulbSign', {text="⚐", texthl="LightBulbVirtualText"}) - require('utils').augroup2 { + augroup { lightbulb = { {'CursorHold', '*', "lua require('nvim-lightbulb').update_lightbulb()"} } @@ -167,6 +167,10 @@ return require('packer').startup({function() }, }, } + + augroup { + treesitter = {{ 'FileType', '*', [[ set foldmethod=expr foldexpr=nvim_treesitter#foldexpr() ]] }} + } end} -- }}} use {'hrsh7th/nvim-compe', -- {{{ @@ -309,7 +313,7 @@ return require('packer').startup({function() use {'editorconfig/editorconfig-vim', -- {{{ config = function() - require('utils').augroup2 { + augroup { editorconfig = { { 'FileType', 'gitcommit', 'let b:EditorConfig_disable = 1' }, } @@ -491,7 +495,7 @@ return require('packer').startup({function() use {'mhinz/vim-startify', -- {{{ config = function() - require('utils').augroup2 { + augroup { startify = {{ 'FileType', 'startify', [[ IndentBlanklineDisable ]] }} } end} -- }}} -- cgit 1.4.1