diff options
-rw-r--r-- | lua/ben/plugins/org-bullets.lua | 25 | ||||
-rw-r--r-- | lua/ben/plugins/orgmode.lua | 24 | ||||
-rw-r--r-- | lua/ben/plugins/table-mode.lua | 4 |
3 files changed, 30 insertions, 23 deletions
diff --git a/lua/ben/plugins/org-bullets.lua b/lua/ben/plugins/org-bullets.lua new file mode 100644 index 0000000..2cac205 --- /dev/null +++ b/lua/ben/plugins/org-bullets.lua @@ -0,0 +1,25 @@ +return { + "akinsho/org-bullets.nvim", + dependencies = { + { + "nvim-orgmode/orgmode", + dependencies = "nvim-treesitter/nvim-treesitter", + }, + }, + -- Only load org-bullets while in actual org files + ft = { "org" }, + config = function() + require("org-bullets").setup({ + symbols = { + concealcursor = false, + list = "", + headlines = { "◉", "○", "", "" }, + checkboxes = { + half = { "", "OrgTSCheckboxHalfChecked" }, + done = { "", "OrgTSCheckboxDone" }, + todo = { "", "OrgTSCheckboxTODO" }, + }, + }, + }) + end, +} diff --git a/lua/ben/plugins/orgmode.lua b/lua/ben/plugins/orgmode.lua index 8a0c023..6b74944 100644 --- a/lua/ben/plugins/orgmode.lua +++ b/lua/ben/plugins/orgmode.lua @@ -1,28 +1,6 @@ return { "nvim-orgmode/orgmode", - dependencies = { - { "nvim-treesitter/nvim-treesitter", lazy = true }, - { "dhruvasagar/vim-table-mode", lazy = true }, - { - "akinsho/org-bullets.nvim", - enable = false, - lazy = true, - config = function() - require("org-bullets").setup({ - symbols = { - concealcursor = false, - list = "", - headlines = { "◉", "○", "", "" }, - checkboxes = { - half = { "", "OrgTSCheckboxHalfChecked" }, - done = { "", "OrgTSCheckboxDone" }, - todo = { "", "OrgTSCheckboxTODO" }, - }, - }, - }) - end, - }, - }, + dependencies = "nvim-treesitter/nvim-treesitter", event = "VeryLazy", config = function() -- Load treesitter grammar for org diff --git a/lua/ben/plugins/table-mode.lua b/lua/ben/plugins/table-mode.lua new file mode 100644 index 0000000..838d813 --- /dev/null +++ b/lua/ben/plugins/table-mode.lua @@ -0,0 +1,4 @@ +return { + "dhruvasagar/vim-table-mode", + ft = { "org", "markdown", "text" }, +} |