feat(nvim): add orgmode nvim

This commit is contained in:
Price Hiller 2023-09-24 10:33:12 -05:00
parent 5ffedb1ba2
commit e46e1f513a
No known key found for this signature in database
5 changed files with 48 additions and 4 deletions

View File

@ -30,6 +30,11 @@ return {
["yaml.ansible"] = {
"[-]",
},
org = {
"-",
list_patterns.digit,
list_patterns.ascii
},
markdown = {
list_patterns.unordered,
list_patterns.digit,

View File

@ -328,6 +328,7 @@ return {
})
cmp.setup.filetype("toml", { sources = standard_sources({ { name = "crates" } }) })
cmp.setup.filetype("org", { sources = standard_sources({ { name = "orgmode", priority = 99 } }) })
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline("/", {

View File

@ -8,9 +8,9 @@ return {
{ "nvim-treesitter/nvim-treesitter" },
},
keys = {
{ "<leader>o", desc = "> Neorg" },
{ "<leader>oj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
{ "<leader>ot", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" },
{ "<leader>N", desc = "> Neorg" },
{ "<leader>Nj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
{ "<leader>Nt", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" },
},
config = function()
require("neorg").setup({

View File

@ -0,0 +1,38 @@
return {
{
"nvim-orgmode/orgmode",
dependencies = {
{ "nvim-treesitter/nvim-treesitter" },
{
"akinsho/org-bullets.nvim",
opts = {
concealcursor = true,
symbols = {
headlines = {
"󰀘",
"",
"󰺕",
"",
"󰬪",
"󱆭",
}
}
}
}
},
ft = { "org" },
keys = {
{ "<leader>o", desc = "> Org"}
},
config = function()
-- Load treesitter grammar for org
require("orgmode").setup_ts_grammar()
-- Setup orgmode
require("orgmode").setup({
org_agenda_files = "~/orgfiles/**/*",
org_default_notes_file = "~/orgfiles/refile.org",
})
end,
}
}

View File

@ -143,7 +143,7 @@ return {
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
additional_vim_regex_highlighting = { "org" },
disable = function(_, buf)
local disabled_filetypes = {
"tex",