update: hypr&neovim improvements, yazi plugins, waybar tweaking before bigger update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
function number_switch(harpoon)
|
||||
for i = 1, 9, 1 do
|
||||
for i = 1, 10, 1 do
|
||||
vim.keymap.set("n", "<leader>" .. i, function()
|
||||
harpoon:list():select(i)
|
||||
end)
|
||||
@@ -15,18 +15,24 @@ return {
|
||||
|
||||
opts = {
|
||||
settings = {
|
||||
save_on_toggle = false,
|
||||
tabline = false,
|
||||
save_on_toggle = true,
|
||||
save_on_change = true,
|
||||
excluded_filetypes = { "harpoon" },
|
||||
excluded_filetypes = {
|
||||
"harpoon",
|
||||
"neo-tree",
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
border = "rounded",
|
||||
width = vim.api.nvim_win_get_width(0) - 4,
|
||||
},
|
||||
},
|
||||
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
harpoon:setup()
|
||||
-- vim.g.harpoon_log_level = "fatal",
|
||||
config = function(_, opts)
|
||||
local harpoon = require("harpoon")
|
||||
harpoon:setup(opts)
|
||||
|
||||
local harpoon_extensions = require("harpoon.extensions")
|
||||
harpoon:extend(harpoon_extensions.builtins.highlight_current_file())
|
||||
@@ -34,6 +40,9 @@ return {
|
||||
vim.keymap.set("n", "<leader>h", function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>a", function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>H", function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
@@ -43,14 +52,14 @@ return {
|
||||
vim.keymap.set("n", "<leader>L", function()
|
||||
harpoon:list():clear()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<M-h>", function()
|
||||
|
||||
vim.keymap.set("n", "<S-h>", function()
|
||||
harpoon:list():prev()
|
||||
end)
|
||||
vim.keymap.set("n", "<M-l>", function()
|
||||
vim.keymap.set("n", "<S-l>", function()
|
||||
harpoon:list():next()
|
||||
end)
|
||||
|
||||
number_switch(harpoon)
|
||||
-- number_switch(harpoon)
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user