Compare commits
2 commits
29574b6e36
...
26fafff8e2
| Author | SHA1 | Date | |
|---|---|---|---|
| 26fafff8e2 | |||
| d2fbfc551e |
3 changed files with 53 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ require("lazy").setup({
|
|||
},
|
||||
|
||||
install = { colorscheme = { "catppuccin" } },
|
||||
checker = { enabled = true },
|
||||
-- checker = { enabled = true },
|
||||
})
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,30 @@ return {
|
|||
},
|
||||
lazy = false,
|
||||
cmd = "Grapple",
|
||||
config = function()
|
||||
-- Open graple window when open without arguments
|
||||
local g = vim.api.nvim_create_augroup('Grapple-User', { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd('StdinReadPre', {
|
||||
group = g,
|
||||
callback = function()
|
||||
vim.g.read_from_stdin = 1
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('UIEnter', {
|
||||
group = g,
|
||||
callback = function()
|
||||
if
|
||||
vim.fn.argc() == 0
|
||||
and vim.api.nvim_buf_get_name(0) == ''
|
||||
and vim.g.read_from_stdin == nil
|
||||
then
|
||||
require("grapple").toggle_tags()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader><leader>a", "<cmd>Grapple toggle<cr>", desc = "Toggle bookmark for current file" },
|
||||
{ "<leader><leader>D", "<cmd>Grapple reset<cr>", desc = "Delete all bookmarks" },
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
local icons = require("aleidk.constants").icons
|
||||
|
||||
return {
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
render = "compact",
|
||||
fps = "60",
|
||||
timeout = 2000,
|
||||
stages = "slide",
|
||||
icons = {
|
||||
DEBUG = "",
|
||||
TRACE = "✎",
|
||||
ERROR = icons.diagnostics.Error,
|
||||
INFO = icons.diagnostics.Info,
|
||||
WARN = icons.diagnostics.Warn,
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
-- better imputs
|
||||
"stevearc/dressing.nvim",
|
||||
|
|
@ -16,6 +34,7 @@ return {
|
|||
"MunifTanjim/nui.nvim",
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
---@type NoiceConfig
|
||||
opts = {
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
|
|
@ -40,6 +59,7 @@ return {
|
|||
view = "mini_left"
|
||||
}
|
||||
},
|
||||
---@type NoiceRouteConfig[]
|
||||
routes = {
|
||||
{
|
||||
-- Don't show these messages
|
||||
|
|
@ -53,13 +73,18 @@ return {
|
|||
{
|
||||
event = "msg_show",
|
||||
kind = "",
|
||||
find = "written",
|
||||
find = "written", -- file saved msg
|
||||
},
|
||||
{
|
||||
event = "msg_show",
|
||||
kind = "",
|
||||
find = "yazi.nvim",
|
||||
},
|
||||
{
|
||||
event = "msg_show",
|
||||
kind = "",
|
||||
find = "%d+ (more|fewer) lines", -- undo/redo msg
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
@ -68,7 +93,7 @@ return {
|
|||
event = "notify",
|
||||
min_height = 15
|
||||
},
|
||||
view = 'popup'
|
||||
view = 'popup',
|
||||
},
|
||||
{
|
||||
filter = {
|
||||
|
|
@ -78,6 +103,7 @@ return {
|
|||
view = 'mini'
|
||||
},
|
||||
},
|
||||
---@type NoiceConfigViews
|
||||
views = {
|
||||
notify = {
|
||||
merge = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue