From 05cc850e9e6e5192ff131b50b86147693ce22d5a Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 13 Aug 2026 16:04:25 -0400 Subject: [PATCH] feat(core): add octo.nvim and lsp-file-operations imports, remove Snacks keymaps --- lua/community.lua | 2 ++ lua/polish.lua | 21 --------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/lua/community.lua b/lua/community.lua index c6d00c3..793bdb2 100644 --- a/lua/community.lua +++ b/lua/community.lua @@ -11,6 +11,7 @@ return { { import = "astrocommunity.editing-support.refactoring-nvim" }, { import = "astrocommunity.editing-support.conform-nvim" }, { import = "astrocommunity.diagnostics.trouble-nvim" }, + { import = "astrocommunity.git.octo-nvim" }, { import = "astrocommunity.pack.mdx" }, { import = "astrocommunity.pack.biome" }, { import = "astrocommunity.pack.go" }, @@ -26,5 +27,6 @@ return { { import = "astrocommunity.pack.tailwindcss" }, { import = "astrocommunity.completion.supermaven-nvim" }, { import = "astrocommunity.lsp.dev-tools-nvim" }, + { import = "astrocommunity.lsp.nvim-lsp-file-operations" }, { import = "astrocommunity.colorscheme.cyberdream-nvim" }, } diff --git a/lua/polish.lua b/lua/polish.lua index 3c9dd70..cbcd1d6 100644 --- a/lua/polish.lua +++ b/lua/polish.lua @@ -1,23 +1,2 @@ -- This will run last in the setup process. -- Pure lua; anything that doesn't fit the normal config locations goes here. - --- Snacks.keymap: LSP-aware keymaps, only applied to buffers with a client --- that supports the given method (which-key picks up the desc). ]] and [[ --- cycle through the LSP references that snacks.words auto-highlights, --- complementing the core astrolsp `gd` / `gr` binds. -local ok, snacks = pcall(require, "snacks") -if ok then - snacks.keymap.set("n", "]]", function() snacks.words.jump(vim.v.count1, true) end, { - lsp = { method = "textDocument/documentHighlight" }, - desc = "Next reference", - }) - snacks.keymap.set("n", "[[", function() snacks.words.jump(-vim.v.count1, true) end, { - lsp = { method = "textDocument/documentHighlight" }, - desc = "Previous reference", - }) -end - --- Define _G.EditFromYazi eagerly: the yazi opener (~/.local/bin/yazi-nvim-open) --- calls it via --remote-expr from ANY yazi running in an nvim terminal, even --- one started before the session keymaps ever fired. -require "config.yazi_session"