feat(core): add python community packs and UI toggle setup

This commit is contained in:
Prad Nukala committed 2026-08-25 14:47:08 -04:00
1 parent f5106d9cba
commit 3380197bab
2 files changed
+10 -15

No files matched your search

+4 -15
View File
@@ -1,18 +1,7 @@
-- 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
-- <Leader>u UI toggles, mapped via Snacks.toggle so which-key shows the
-- snacks state icons/colors (see config.toggles). LSP-scoped keymaps live in
-- plugins/astrolsp.lua, where astrolsp gates them on server capabilities.
require("config.toggles").setup()