diff options
| author | Robert Günzler <r@gnzler.io> | 2021-08-30 18:13:25 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-08-31 12:41:18 +0200 |
| commit | 938d54a50f8e7e53667f4bbf6efe0e5bc310cd02 (patch) | |
| tree | 5c45e93d98f64961efa4fa7165afee0ef6129466 /.vim/lua/plugins.lua | |
| parent | ce4ae6e233aca6942821502121ebab3b651404cb (diff) | |
vim: make augroup util a global
Diffstat (limited to '')
| -rw-r--r-- | .vim/lua/plugins.lua | 10 |
1 files changed, 7 insertions, 3 deletions
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} -- }}} |