Skip to content

Commit 4d61c42

Browse files
committed
chore(nvim): remove edgy
1 parent 79f8c22 commit 4d61c42

File tree

4 files changed

+18
-119
lines changed

4 files changed

+18
-119
lines changed

nvim/TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ lazy cb22355
2020
## Misc
2121

2222
- emmet-like plugin
23-
- dap firefox https://github.com/firefox-devtools/vscode-firefox-debug
2423
- add recording macro to statusline
2524
- add lazyvim news https://www.lazyvim.org/news
2625

nvim/lazy-lock.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
2-
"blink.cmp": { "branch": "main", "commit": "dcda20d3aa345025699a920c45b0a0603551f41d" },
3-
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
4-
"edgy.nvim": { "branch": "main", "commit": "7e8dedc39abebe40c289b8012cc89b11c69aa7a0" },
2+
"blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" },
3+
"conform.nvim": { "branch": "master", "commit": "9ddab4e14c44196d393a72b958b4da6dab99ecef" },
54
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
65
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
7-
"gitsigns.nvim": { "branch": "main", "commit": "c7d37ca22b461f64e26f8f6701b2586128ed0bef" },
6+
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
87
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
9-
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
8+
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
109
"lush.nvim": { "branch": "main", "commit": "1be16d9002f8b2e8973a19ceac199ad394dea76a" },
1110
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
1211
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
1312
"mini.icons": { "branch": "main", "commit": "b8f6fa6f5a3fd0c56936252edcd691184e5aac0c" },
1413
"mini.pairs": { "branch": "main", "commit": "1e1ca3f60f58d4050bf814902b472eec9963a5dd" },
15-
"mini.surround": { "branch": "main", "commit": "b12fcfefd6b9b7c9e9a773bc0e3e07ae20c03351" },
16-
"neo-tree.nvim": { "branch": "main", "commit": "46fa0c22ca39e05fe15744102d21feb07fe9a94a" },
14+
"mini.surround": { "branch": "main", "commit": "7a8606333affe7ce637a0ba91bbafc46fc42bfa0" },
15+
"neo-tree.nvim": { "branch": "main", "commit": "bbeda076c8a2e7d16614287cd70239f577e5bf55" },
1716
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
1817
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
19-
"nvim-lspconfig": { "branch": "master", "commit": "d6dc63670d3dc5204b1e874af4cbf340cb5d9d18" },
18+
"nvim-lspconfig": { "branch": "master", "commit": "0e268f5e0a398e77b2188aa94472b63daaa793b8" },
2019
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
2120
"nvim-treesitter-context": { "branch": "master", "commit": "dca8726fea2c14e1ce6adbaa76a04816fbfaff61" },
2221
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },

nvim/lua/config/keymaps.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,19 @@ Snacks.toggle
167167
Snacks.toggle.treesitter():map("<leader>uT")
168168
Snacks.toggle.option("background", { off = "light", on = "dark", name = "Dark Background" }):map("<leader>ub")
169169
Snacks.toggle.dim():map("<leader>uD")
170-
Snacks.toggle.indent():map("<leader>ug")
170+
Snacks.toggle.indent():map("<leader>uG")
171171
if vim.lsp.inlay_hint then
172172
Snacks.toggle.inlay_hints():map("<leader>uh")
173173
end
174+
Snacks.toggle({
175+
name = "Git Blame Line",
176+
get = function()
177+
return require("gitsigns.config").config.current_line_blame
178+
end,
179+
set = function()
180+
require("gitsigns").toggle_current_line_blame()
181+
end,
182+
}):map("<leader>ug")
174183

175184
-- TODO: lazygit
176185
map("n", "<leader>gb", function()

nvim/lua/plugins.lua

Lines changed: 1 addition & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -201,114 +201,6 @@ return {
201201
end,
202202
},
203203

204-
-- edgy.nvim (https://github.com/folke/edgy.nvim)
205-
{
206-
"folke/edgy.nvim",
207-
event = "VeryLazy",
208-
keys = {
209-
{
210-
"<leader>ue",
211-
function()
212-
require("edgy").toggle()
213-
end,
214-
desc = "Edgy Toggle",
215-
},
216-
-- stylua: ignore
217-
{ "<leader>uE", function() require("edgy").select() end, desc = "Edgy Select Window" },
218-
},
219-
opts = function()
220-
local opts = {
221-
animate = { enabled = false },
222-
bottom = {
223-
{
224-
ft = "noice",
225-
size = { height = 0.4 },
226-
filter = function(_, win)
227-
return vim.api.nvim_win_get_config(win).relative == ""
228-
end,
229-
},
230-
"Trouble",
231-
{ ft = "qf", title = "QuickFix" },
232-
{
233-
ft = "help",
234-
size = { height = 20 },
235-
-- don't open help files in edgy that we're editing
236-
filter = function(buf)
237-
return vim.bo[buf].buftype == "help"
238-
end,
239-
},
240-
},
241-
left = {},
242-
right = {
243-
-- { title = "Grug Far", ft = "grug-far", size = { width = 0.4 } },
244-
},
245-
keys = {
246-
-- increase width
247-
["<c-Right>"] = function(win)
248-
win:resize("width", 2)
249-
end,
250-
-- decrease width
251-
["<c-Left>"] = function(win)
252-
win:resize("width", -2)
253-
end,
254-
-- increase height
255-
["<c-Up>"] = function(win)
256-
win:resize("height", 2)
257-
end,
258-
-- decrease height
259-
["<c-Down>"] = function(win)
260-
win:resize("height", -2)
261-
end,
262-
},
263-
wo = {
264-
winbar = false,
265-
winhighlight = "",
266-
},
267-
}
268-
269-
if require("util.init").has("neo-tree.nvim") then
270-
local sources = require("util.init").opts("neo-tree.nvim").sources or {}
271-
local pos = {
272-
filesystem = "left",
273-
buffers = "top",
274-
git_status = "right",
275-
document_symbols = "bottom",
276-
diagnostics = "bottom",
277-
}
278-
for i, v in ipairs(sources) do
279-
table.insert(opts.left, i, {
280-
title = "Neo-Tree " .. v:gsub("_", " "):gsub("^%l", string.upper),
281-
ft = "neo-tree",
282-
filter = function(buf)
283-
return vim.b[buf].neo_tree_source == v
284-
end,
285-
pinned = true,
286-
open = function()
287-
vim.cmd(("Neotree show position=%s %s dir=%s"):format(pos[v] or "bottom", v, require("util.root").get()))
288-
end,
289-
})
290-
end
291-
end
292-
293-
-- trouble
294-
for _, pos in ipairs({ "top", "bottom", "left", "right" }) do
295-
opts[pos] = opts[pos] or {}
296-
table.insert(opts[pos], {
297-
ft = "trouble",
298-
filter = function(_, win)
299-
return vim.w[win].trouble
300-
and vim.w[win].trouble.position == pos
301-
and vim.w[win].trouble.type == "split"
302-
and vim.w[win].trouble.relative == "editor"
303-
and not vim.w[win].trouble_preview
304-
end,
305-
})
306-
end
307-
308-
return opts
309-
end,
310-
},
311-
312204
-- gitsigns.nvim (https://github.com/lewis6991/gitsigns.nvim)
313205
{
314206
"lewis6991/gitsigns.nvim",
@@ -669,7 +561,7 @@ return {
669561
follow_current_file = { enabled = true },
670562
use_libuv_file_watcher = true,
671563
},
672-
open_files_do_not_replace_types = { "edgy", "terminal", "Trouble", "qf", "Outline", "trouble" },
564+
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline", "trouble" },
673565
sources = { "filesystem" },
674566
window = {
675567
mappings = {

0 commit comments

Comments
 (0)