feat(core): add python community packs and UI toggle setup
This commit is contained in:
1 parent
f5106d9cba
commit
3380197bab
2 files changed
+10
-15
No files matched your search
@@ -24,6 +24,12 @@ return {
|
||||
{ import = "astrocommunity.pack.toml" },
|
||||
{ import = "astrocommunity.pack.typescript" },
|
||||
{ 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.lsp.dev-tools-nvim" },
|
||||
{ import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||
|
||||
+4
-15
@@ -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()
|
||||
Reference in new issue
Block a user