Skip to content

Commit

Permalink
feat/plugin: add new plugin nvim-orgmode
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>

Former-commit-id: ae85b64 [formerly ae85b64 [formerly 6e47dcc]]
Former-commit-id: b13c91c
Former-commit-id: 235042c
  • Loading branch information
Avimitin committed Jan 21, 2022
1 parent 1644a82 commit 45c979c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions lua/config/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ cmp.setup({
{name = 'buffer'},
{name = 'path'},
{name = 'rg'},
{name = 'orgmode'},
},
experimental = {
ghost_text = true
Expand Down
15 changes: 13 additions & 2 deletions lua/config/treesitter.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.org = {
install_info = {
url = 'https://github.com/milisims/tree-sitter-org',
revision = 'f110024d539e676f25b72b7c80b0fd43c34264ef',
files = {'src/parser.c', 'src/scanner.cc'},
},
filetype = 'org',
}

require'nvim-treesitter.configs'.setup {
ensure_installed = {
"cpp", "toml",
"rust", "go",
"json", "lua",
"comment"
"comment", "org",
},
highlight = {
enable = true
enable = true,
additional_vim_regex_highlighting = {'org'},
}
}
3 changes: 3 additions & 0 deletions lua/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ opt.formatoptions = 'qj'

opt.hidden = true

opt.conceallevel = 2
opt.concealcursor = 'nc'

-- Changed home directory here
local backup_dir = vim.fn.stdpath("cache") .. "/backup"
local backup_stat = pcall(os.execute, "mkdir -p " .. backup_dir)
Expand Down
10 changes: 10 additions & 0 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,16 @@ return require('packer').startup(function(use)
'dstein64/vim-startuptime',
cmd = "StartupTime"
}

use {
'nvim-orgmode/orgmode',
config = function()
require('orgmode').setup {
org_agenda_files = {'~/Documents/orgfiles/**/*'},
org_default_notes_file = '~/Documents/orgfiles/notebook.org',
}
end
}
end)

-- vim: foldmethod=marker

0 comments on commit 45c979c

Please sign in to comment.