From 140198e9dab6e37b9c1092ae34b4075358bc0c11 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sun, 30 Mar 2025 20:46:52 +0200 Subject: [PATCH] Removes unused plugins --- .../nvim/config/lua/plugins/harpoon.lua | 36 ------------- .../nvim/config/lua/plugins/orgmode.lua | 54 ------------------- .../nvim/config/lua/plugins/which-key.lua | 12 ----- 3 files changed, 102 deletions(-) delete mode 100644 home/modules/nvim/config/lua/plugins/harpoon.lua delete mode 100644 home/modules/nvim/config/lua/plugins/orgmode.lua diff --git a/home/modules/nvim/config/lua/plugins/harpoon.lua b/home/modules/nvim/config/lua/plugins/harpoon.lua deleted file mode 100644 index 6e6c7e8..0000000 --- a/home/modules/nvim/config/lua/plugins/harpoon.lua +++ /dev/null @@ -1,36 +0,0 @@ -return { - "ThePrimeagen/harpoon", - branch = "harpoon2", - dependencies = { "nvim-lua/plenary.nvim" }, - config = function() - local harpoon = require("harpoon") - - harpoon:setup() - - -- Keybindings - vim.keymap.set("n", "hs", function() - harpoon.ui:toggle_quick_menu(harpoon:list()) - end) - vim.keymap.set("n", "ha", function() - harpoon:list():add() - end) - vim.keymap.set("n", "hy", function() - harpoon:list():select(1) - end) - vim.keymap.set("n", "hu", function() - harpoon:list():select(2) - end) - vim.keymap.set("n", "hi", function() - harpoon:list():select(3) - end) - vim.keymap.set("n", "ho", function() - harpoon:list():select(4) - end) - vim.keymap.set("n", "hp", function() - harpoon:list():prev() - end) - vim.keymap.set("n", "hn", function() - harpoon:list():next() - end) - end, -} diff --git a/home/modules/nvim/config/lua/plugins/orgmode.lua b/home/modules/nvim/config/lua/plugins/orgmode.lua deleted file mode 100644 index 0790e15..0000000 --- a/home/modules/nvim/config/lua/plugins/orgmode.lua +++ /dev/null @@ -1,54 +0,0 @@ -return { - "nvim-orgmode/orgmode", - dependencies = { - "akinsho/org-bullets.nvim", - }, - event = "VeryLazy", - ft = { "org" }, - config = function() - require("orgmode").setup({ - org_agenda_files = "~/orgnzr/**/*", - org_default_notes_file = "~/orgnzr/inbox.org", - org_todo_keywords = { "PROJECT(p)", "TODO(t)", "NEXT(n)", "|", "DONE(d)" }, - win_split_mode = "auto", - org_startup_indented = true, - org_indent_mode_turns_off_org_adapt_indentation = true, - org_hide_leading_stars = true, - org_blank_before_new_entry = { heading = false, plain_list_item = false }, - org_startup_folded = "content", - org_ellipsis = "  ", - org_capture_templates = { - t = { description = "(t)odo", template = "* TODO %?\n" }, - a = { description = "Todo (a)t line", template = "* TODO %?\nat: %a" }, - l = { description = "(l)ink", template = "* %x%?" }, - j = { - description = "(j)ournal entry", - template = "\n** %?", - datetree = { - tree_type = "custom", - tree = { - { - format = "%Y-%m-%d", - pattern = "^(%d%d%d%d)-(%d%d)-(%d%d)$", - order = { 1 }, - }, - }, - }, - target = "~/orgnzr/journal.org", - }, - }, - }) - - require("org-bullets").setup() - - vim.api.nvim_create_autocmd("FileType", { - pattern = "org", - callback = function() - vim.keymap.set("i", "", 'lua require("orgmode").action("org_mappings.meta_return")', { - silent = true, - buffer = true, - }) - end, - }) - end, -} diff --git a/home/modules/nvim/config/lua/plugins/which-key.lua b/home/modules/nvim/config/lua/plugins/which-key.lua index bf15ebd..882f4d7 100644 --- a/home/modules/nvim/config/lua/plugins/which-key.lua +++ b/home/modules/nvim/config/lua/plugins/which-key.lua @@ -98,18 +98,6 @@ return { mode = "n", }, { "o", group = "org", mode = "n" }, - { - "oi", - ":vsplit ~/orgnzr/inbox.org | wincmd l", - desc = "Open inbox to the side", - mode = "n", - }, - { - "oj", - ":vsplit ~/orgnzr/journal.org | wincmd l", - desc = "Open journal to the side", - mode = "n", - }, { "t", group = "diagnostics (lsp)", mode = "n" }, { "td",