Move neovim config and prepare orgmode
This commit is contained in:
20
home/neovim/init.lua
Normal file
20
home/neovim/init.lua
Normal file
@ -0,0 +1,20 @@
|
||||
-- init.lua
|
||||
|
||||
-- Load custom tree-sitter grammar for org filetype
|
||||
require('orgmode').setup_ts_grammar()
|
||||
|
||||
-- Tree-sitter configuration
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- If TS highlights are not enabled at all, or disabled via `disable` prop, highlighting will fallback to default Vim syntax highlighting
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {'org'}, -- Remove this to use TS highlighter for some of the highlights (Experimental)
|
||||
additional_vim_regex_highlighting = {'org'}, -- Required since TS highlighter doesn't support all syntax features (conceal)
|
||||
},
|
||||
ensure_installed = {'org'}, -- Or run :TSUpdate org
|
||||
}
|
||||
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = {'~/Nextcloud/org/*'},
|
||||
org_default_notes_file = '~/Nextcloud/org/refile.org',
|
||||
})
|
Reference in New Issue
Block a user