diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2022-01-30 12:52:15 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2022-01-30 13:41:46 -0600 |
commit | ecc77878606913b0819171740c1d3e125736e4f6 (patch) | |
tree | f2fb73929ab865b870ae21261309bd1e684a9090 /nvim | |
parent | 5fdc951dc6ce6069f28c1fbfb6d10f64733099df (diff) |
nvim: change how plugin configuration gets invoked
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/init.vim | 1 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins.lua | 3 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/treesitter_config.lua (renamed from nvim/.config/nvim/lua/treesitter.lua) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index b630ad8..a741db2 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -1,5 +1,4 @@ lua require('plugins') -lua require('treesitter') set nocompatible " disable compatibility to old-time vi set showmatch " show matching brackets. diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 6da88ad..818b1d2 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -21,7 +21,8 @@ return require('packer').startup(function() -- Tree Sitter use { 'nvim-treesitter/nvim-treesitter', - run = ':TSUpdate' + run = ':TSUpdate', + config = function() require('treesitter_config') end } end) diff --git a/nvim/.config/nvim/lua/treesitter.lua b/nvim/.config/nvim/lua/treesitter_config.lua index 8e4d4a8..8e4d4a8 100644 --- a/nvim/.config/nvim/lua/treesitter.lua +++ b/nvim/.config/nvim/lua/treesitter_config.lua |