summaryrefslogtreecommitdiff
path: root/lua/ben
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-09-26 16:42:27 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-09-26 16:42:27 -0400
commit5e79444043c2e458e5d914677ce41ac8c94bc86e (patch)
tree2c7ec118244e6ef8f1b255c98844c4a121747067 /lua/ben
parentad1098a0110e0d5a3e303b67157e0910c85cea87 (diff)
Lazy load vim tables and org-bullets
Diffstat (limited to 'lua/ben')
-rw-r--r--lua/ben/plugins/org-bullets.lua25
-rw-r--r--lua/ben/plugins/orgmode.lua24
-rw-r--r--lua/ben/plugins/table-mode.lua4
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" },
+}