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

44 lines
1.3 KiB
Lua
Raw Normal View History

require('my/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,
2022-08-13 01:34:38 +02:00
additional_vim_regex_highlighting = { 'org' }
2022-08-10 21:53:02 +02:00
},
ensure_installed = {
'org', 'css', 'comment', 'json', 'json5',
'cpp', 'c', 'lua', 'bash', 'javascript' ,'cmake', 'make',
},
2022-08-10 21:53:02 +02:00
}
end
}
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()
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
}
)
end
2022-08-08 11:07:10 +02:00
}