org mode
This commit is contained in:
@ -99,6 +99,7 @@ cmp.setup({
|
|||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lua" },
|
{ name = "nvim_lua" },
|
||||||
|
{ name = 'orgmode' },
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "vim_vsnip" },
|
{ 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-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
||||||
|
|
||||||
|
use {
|
||||||
|
'nvim-orgmode/orgmode',
|
||||||
|
config = [[ require('orgconfig') ]]
|
||||||
|
}
|
||||||
|
|
||||||
-- Undo tree
|
-- Undo tree
|
||||||
use {
|
use {
|
||||||
'mbbill/undotree',
|
'mbbill/undotree',
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- Load custom treesitter grammar for org filetype
|
||||||
|
require('orgmode').setup_ts_grammar()
|
||||||
|
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- A list of parser names, or "all"
|
-- A list of parser names, or "all"
|
||||||
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
|
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
|
||||||
@ -9,13 +12,10 @@ require('nvim-treesitter.configs').setup {
|
|||||||
highlight = {
|
highlight = {
|
||||||
-- `false` will disable the whole extension
|
-- `false` will disable the whole extension
|
||||||
enable = true,
|
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"},
|
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,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ set rtp+=~/.vim/after
|
|||||||
set directory=/tmp
|
set directory=/tmp
|
||||||
set undodir=/tmp
|
set undodir=/tmp
|
||||||
set nobackup
|
set nobackup
|
||||||
|
set formatoptions+=j
|
||||||
set nowritebackup
|
set nowritebackup
|
||||||
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user