This commit is contained in:
Christian Nieves
2022-12-01 01:11:51 +00:00
parent 3dfc991b0e
commit d3035d8dee
5 changed files with 17 additions and 6 deletions

View File

@ -99,6 +99,7 @@ cmp.setup({
sources = {
{ name = "nvim_lua" },
{ name = 'orgmode' },
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "vim_vsnip" },

View File

@ -0,0 +1,4 @@
require('orgmode').setup({
org_agenda_files = {'~/org/*'},
org_default_notes_file = '~/org/refile.org',
})

View File

@ -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',

View File

@ -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,
},
}

View File

@ -8,6 +8,7 @@ set rtp+=~/.vim/after
set directory=/tmp
set undodir=/tmp
set nobackup
set formatoptions+=j
set nowritebackup
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")