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

+6
View File
@@ -24,6 +24,12 @@ return {
{ import = "astrocommunity.pack.toml" }, { import = "astrocommunity.pack.toml" },
{ import = "astrocommunity.pack.typescript" }, { import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.tailwindcss" }, { import = "astrocommunity.pack.tailwindcss" },
-- python: treesitter/debugpy/venv-selector + basedpyright language server.
-- The full `pack.python` also pulls black + isort; formatting stays on ruff
-- (see plugins/conform.lua), so only the base and basedpyright subpacks are
-- imported. Interpreter resolution is overridden in plugins/python.lua.
{ import = "astrocommunity.pack.python.base" },
{ import = "astrocommunity.pack.python.basedpyright" },
{ import = "astrocommunity.completion.supermaven-nvim" }, { import = "astrocommunity.completion.supermaven-nvim" },
{ import = "astrocommunity.lsp.dev-tools-nvim" }, { import = "astrocommunity.lsp.dev-tools-nvim" },
{ import = "astrocommunity.lsp.lsp-signature-nvim" }, { import = "astrocommunity.lsp.lsp-signature-nvim" },
+4 -15
View File
@@ -1,18 +1,7 @@
-- This will run last in the setup process. -- This will run last in the setup process.
-- Pure lua; anything that doesn't fit the normal config locations goes here. -- 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 -- <Leader>u UI toggles, mapped via Snacks.toggle so which-key shows the
-- that supports the given method (which-key picks up the desc). ]] and [[ -- snacks state icons/colors (see config.toggles). LSP-scoped keymaps live in
-- cycle through the LSP references that snacks.words auto-highlights, -- plugins/astrolsp.lua, where astrolsp gates them on server capabilities.
-- complementing the core astrolsp `gd` / `gr` binds. require("config.toggles").setup()
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