org mode
This commit is contained in:
@ -99,6 +99,7 @@ cmp.setup({
|
||||
|
||||
sources = {
|
||||
{ name = "nvim_lua" },
|
||||
{ name = 'orgmode' },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "path" },
|
||||
{ name = "vim_vsnip" },
|
||||
|
4
vim/.vim/lua/orgconfig.lua
Normal file
4
vim/.vim/lua/orgconfig.lua
Normal file
@ -0,0 +1,4 @@
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = {'~/org/*'},
|
||||
org_default_notes_file = '~/org/refile.org',
|
||||
})
|
@ -21,6 +21,11 @@ require('packer').startup(function(use)
|
||||
|
||||
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
||||
|
||||
use {
|
||||
'nvim-orgmode/orgmode',
|
||||
config = [[ require('orgconfig') ]]
|
||||
}
|
||||
|
||||
-- Undo tree
|
||||
use {
|
||||
'mbbill/undotree',
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Load custom treesitter grammar for org filetype
|
||||
require('orgmode').setup_ts_grammar()
|
||||
|
||||
require('nvim-treesitter.configs').setup {
|
||||
-- A list of parser names, or "all"
|
||||
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
|
||||
@ -9,13 +12,10 @@ require('nvim-treesitter.configs').setup {
|
||||
highlight = {
|
||||
-- `false` will disable the whole extension
|
||||
enable = true,
|
||||
-- Required for spellcheck, some LaTex highlights and
|
||||
-- code block highlights that do not have ts grammar
|
||||
additional_vim_regex_highlighting = {'org'},
|
||||
|
||||
disable = {"java"},
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user