diff --git a/.config/nvim/lua/fileformats.lua b/.config/nvim/lua/fileformats.lua index 364dbcf..54d8470 100644 --- a/.config/nvim/lua/fileformats.lua +++ b/.config/nvim/lua/fileformats.lua @@ -4,6 +4,15 @@ packer.use { 'https://github.com/nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update({ with_sync = true }) + end, + config = function() + require'nvim-treesitter.configs'.setup { + highlight = { + enable = true, + additional_vim_regex_highlighting = {'org'} + }, + ensure_installed = {'org'}, + } end } @@ -14,12 +23,6 @@ packer.use { config = function() require('orgmode').setup{} require('orgmode').setup_ts_grammar() - require'nvim-treesitter.configs'.setup { - highlight = { - enable = true, - additional_vim_regex_highlighting = {'org'} - }, - ensure_installed = {'org'}, - } - end + end, + ft = 'org' }