feat(nvim): add orgmode nvim
This commit is contained in:
parent
5ffedb1ba2
commit
e46e1f513a
@ -30,6 +30,11 @@ return {
|
||||
["yaml.ansible"] = {
|
||||
"[-]",
|
||||
},
|
||||
org = {
|
||||
"-",
|
||||
list_patterns.digit,
|
||||
list_patterns.ascii
|
||||
},
|
||||
markdown = {
|
||||
list_patterns.unordered,
|
||||
list_patterns.digit,
|
||||
|
@ -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("/", {
|
||||
|
@ -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({
|
||||
|
38
dots/.config/nvim/lua/plugins/configs/org-mode.lua
Normal file
38
dots/.config/nvim/lua/plugins/configs/org-mode.lua
Normal 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,
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user