2022-08-11 16:22:36 +02:00
|
|
|
require('my/plugins')
|
2022-08-08 13:02:04 +02:00
|
|
|
|
2022-08-10 21:23:23 +02:00
|
|
|
packer.use {
|
|
|
|
'https://github.com/nvim-treesitter/nvim-treesitter',
|
|
|
|
run = function()
|
|
|
|
require('nvim-treesitter.install').update({ with_sync = true })
|
2022-08-10 21:53:02 +02:00
|
|
|
end,
|
|
|
|
config = function()
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = {'org'}
|
|
|
|
},
|
|
|
|
ensure_installed = {'org'},
|
|
|
|
}
|
2022-08-11 15:13:29 +02:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
-- org
|
|
|
|
packer.use {
|
|
|
|
'https://github.com/nvim-orgmode/orgmode',
|
|
|
|
requires = 'https://github.com/nvim-treesitter/nvim-treesitter',
|
|
|
|
config = function()
|
|
|
|
require('orgmode').setup{}
|
|
|
|
require('orgmode').setup_ts_grammar()
|
2022-08-11 01:06:29 +02:00
|
|
|
|
|
|
|
vim.api.nvim_create_augroup('config_fileformats', { clear = true })
|
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
{ 'BufEnter' },
|
|
|
|
{
|
|
|
|
group = 'config_fileformats',
|
|
|
|
pattern = { '*.org' },
|
|
|
|
callback = function()
|
|
|
|
-- allow to hide stuff, like links
|
|
|
|
vim.opt_local.conceallevel = 2
|
|
|
|
vim.opt_local.concealcursor = 'nc'
|
|
|
|
end
|
|
|
|
}
|
|
|
|
)
|
2022-08-12 15:21:43 +02:00
|
|
|
end
|
2022-08-08 11:07:10 +02:00
|
|
|
}
|