dotfiles/.config/nvim/lua/fileformats.lua

43 lines
1.2 KiB
Lua
Raw Normal View History

require('plugins')
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'},
}
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-10 21:23:23 +02:00
end
}
2022-08-08 11:07:10 +02:00
-- org
2022-08-08 20:27:58 +02:00
packer.use {
2022-08-08 13:57:38 +02:00
'https://github.com/nvim-orgmode/orgmode',
requires = 'https://github.com/nvim-treesitter/nvim-treesitter',
2022-08-08 13:57:38 +02:00
config = function()
require('orgmode').setup{}
require('orgmode').setup_ts_grammar()
2022-08-10 21:53:02 +02:00
end,
ft = 'org'
2022-08-08 11:07:10 +02:00
}