summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/plugins
diff options
context:
space:
mode:
authorTom Li Dobnik <tomlidobnik1@gmail.com>2025-08-09 18:08:51 +0200
committerTom Li Dobnik <tomlidobnik1@gmail.com>2025-08-09 18:08:51 +0200
commit2dab9e093cced83b8a2ae3c477052594f70e9a4d (patch)
treeaa5e06a4ed8d0643219f301cc412bd6beb5fd31a /.config/nvim/lua/config/plugins
parentda2418238c5c3aa9280a13be13ef43975345e1fe (diff)
cleanup
Diffstat (limited to '.config/nvim/lua/config/plugins')
-rw-r--r--.config/nvim/lua/config/plugins/flash.lua1
-rw-r--r--.config/nvim/lua/config/plugins/harpoon.lua49
-rw-r--r--.config/nvim/lua/config/plugins/obsidian.lua42
-rw-r--r--.config/nvim/lua/config/plugins/ufo.lua28
-rw-r--r--.config/nvim/lua/config/plugins/utils.lua13
-rw-r--r--.config/nvim/lua/config/plugins/which-key.lua2
6 files changed, 1 insertions, 134 deletions
diff --git a/.config/nvim/lua/config/plugins/flash.lua b/.config/nvim/lua/config/plugins/flash.lua
index d4de4ee..feec135 100644
--- a/.config/nvim/lua/config/plugins/flash.lua
+++ b/.config/nvim/lua/config/plugins/flash.lua
@@ -12,6 +12,7 @@ return {
-- stylua: ignore
keys = {
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
+ { "R", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
},
}
diff --git a/.config/nvim/lua/config/plugins/harpoon.lua b/.config/nvim/lua/config/plugins/harpoon.lua
deleted file mode 100644
index 25168cc..0000000
--- a/.config/nvim/lua/config/plugins/harpoon.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-return {
- "https://github.com/theprimeagen/harpoon",
- branch = "harpoon2",
- event = "VeryLazy",
- config = function()
- local harpoon = require("harpoon")
- harpoon.setup({
- settings = {
- save_on_toggle = true,
- sync_on_ui_close = true,
- key = function()
- return vim.fn.getcwd()
- end,
- },
- })
- harpoon:setup()
-
- local list = harpoon:list("default")
- local wk = require("which-key")
-
- wk.add({
- mode = { "n" },
- {
- "<leader>a",
- function()
- list:add()
- end,
- hidden = true,
- },
- {
- "<leader><leader>",
- function()
- harpoon.ui:toggle_quick_menu(list)
- end,
- hidden = true,
- },
- })
- for i = 1, 6 do
- wk.add({
- "<leader>" .. i,
- function()
- list:select(i)
- end,
- hidden = true,
- mode = "n",
- })
- end
- end,
-}
diff --git a/.config/nvim/lua/config/plugins/obsidian.lua b/.config/nvim/lua/config/plugins/obsidian.lua
deleted file mode 100644
index 64992fc..0000000
--- a/.config/nvim/lua/config/plugins/obsidian.lua
+++ /dev/null
@@ -1,42 +0,0 @@
-return {
- "epwalsh/obsidian.nvim",
- event = "VeryLazy",
- version = "*",
- dependencies = {
- "nvim-lua/plenary.nvim",
- "ibhagwan/fzf-lua",
- },
- opts = {
- ui = { enable = false },
- daily_notes = {
- date_format = "%Y-%m-%d",
- alias_format = "%B %-d, %Y",
- default_tags = { "daily" },
- template = nil,
- folder = "daily",
- },
- dir = "$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/",
- mappings = {},
- follow_url_func = function(url)
- -- Open the URL in the default web browser.
- -- if URL contains @ it should be replaced with %40
- vim.fn.jobstart({ "open", url }) -- Mac OS
- end,
- note_id_func = function(title)
- -- Create note IDs in a Zettelkasten format with a timestamp and a suffix.
- -- In this case a note with the title 'My new note' will be given an ID that looks
- -- like '1657296016-my-new-note', and therefore the file name '1657296016-my-new-note.md'
- local suffix = ""
- if title ~= nil then
- -- If title is given, transform it into valid file name.
- suffix = title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower()
- else
- -- If title is nil, just add 4 random uppercase letters to the suffix.
- for _ = 1, 4 do
- suffix = suffix .. string.char(math.random(65, 90))
- end
- end
- return tostring(os.time()) .. "-" .. suffix
- end,
- },
-}
diff --git a/.config/nvim/lua/config/plugins/ufo.lua b/.config/nvim/lua/config/plugins/ufo.lua
deleted file mode 100644
index 21380b8..0000000
--- a/.config/nvim/lua/config/plugins/ufo.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-return {
- -- {
- -- event = "VeryLazy",
- -- "kevinhwang91/nvim-ufo",
- -- dependencies = {
- -- "kevinhwang91/promise-async",
- -- },
- -- config = function()
- -- require("ufo").setup({
- -- -- treesitter not required
- -- -- ufo uses the same query files for folding (queries/<lang>/folds.scm)
- -- -- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()`-
- -- provider_selector = function(_, _, _)
- -- return { "treesitter", "indent" }
- -- end,
- -- open_fold_hl_timeout = 0, -- Disable highlight timeout after opening
- -- })
- --
- -- vim.o.foldenable = true
- -- vim.o.foldcolumn = "0" -- '0' is not bad
- -- vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
- -- vim.o.foldlevelstart = 99
- --
- -- vim.keymap.set("n", "zR", require("ufo").openAllFolds)
- -- vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
- -- end,
- -- },
-}
diff --git a/.config/nvim/lua/config/plugins/utils.lua b/.config/nvim/lua/config/plugins/utils.lua
index fd57680..273de1a 100644
--- a/.config/nvim/lua/config/plugins/utils.lua
+++ b/.config/nvim/lua/config/plugins/utils.lua
@@ -32,19 +32,6 @@ return {
vim.g.undotree_WindowLayout = 3
end,
},
- { -- for diagnostics
- event = "VeryLazy",
- "folke/trouble.nvim",
- opts = {},
- cmd = "Trouble",
- keys = {
- {
- "<leader>h",
- "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
- desc = "Buffer Diagnostics (Trouble)",
- },
- },
- },
{ -- for colored brackets and divs
"HiPhish/rainbow-delimiters.nvim",
event = "VeryLazy",
diff --git a/.config/nvim/lua/config/plugins/which-key.lua b/.config/nvim/lua/config/plugins/which-key.lua
index 47098fb..9e97f9f 100644
--- a/.config/nvim/lua/config/plugins/which-key.lua
+++ b/.config/nvim/lua/config/plugins/which-key.lua
@@ -17,13 +17,11 @@ return {
{ "<leader>d", group = "Document" },
{ "<leader>g", group = "Git" },
{ "<leader>m", group = "Marks" },
- { "<leader>o", group = "Obsidian" },
{ "<leader>r", group = "Rename" },
{ "<leader>s", group = "Search" },
{ "<leader>t", group = "Toggle" },
{ "<leader>w", group = "Workspace" },
{ "<leader>l", group = "LSP" },
- { "<leader>x", group = "Trouble" },
},
},
}