Compare commits

...

4 commits

Author SHA1 Message Date
376b9c5c16 added pi.nvim 2026-04-30 23:26:20 -04:00
14a67ba7d3 changes 2026-04-30 22:33:44 -04:00
31bac100ee fix(treesitter): update parser install api 2026-04-30 22:12:17 -04:00
22675bf8a4 removed deprecated config() api 2026-04-30 21:57:20 -04:00
5 changed files with 47 additions and 6 deletions

View file

@ -12,9 +12,10 @@
"mason.nvim": { "branch": "main", "commit": "cb8445f8ce85d957416c106b780efd51c6298f89" },
"nvim-dap": { "branch": "master", "commit": "45a69eba683a2c448dd9ecfc4de89511f0646b5f" },
"nvim-lspconfig": { "branch": "master", "commit": "31026a13eefb20681124706a79fc1df6bf11ab27" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" },
"nvim-web-devicons": { "branch": "master", "commit": "4fc505ac7bd7692824a142e96e5f529c133862f8" },
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
"pi.nvim": { "branch": "main", "commit": "6e86a704ed6ff488fda78b64f4e564d6ee620785" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"render-markdown.nvim": { "branch": "main", "commit": "3f3eea97b80839f629c951ca660ffd125bfa5b34" },
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },

View file

@ -10,6 +10,10 @@ return {
vim.cmd.colorscheme("anticuus")
local highlights = {
Normal = { bg = "NONE" },
NormalNC = { bg = "NONE" },
EndOfBuffer = { bg = "NONE" },
Comment = { fg = "#5a5a5a", italic = true },
["@comment"] = { fg = "#5a5a5a", italic = true },

View file

@ -4,7 +4,7 @@
-- Servers to ensure are installed via Mason.
local mason_ensure_installed = {
"lua_ls", -- Neovim config
"nil_ls", -- Nix (nixd not available in Mason)
"clangd", -- C/C++
"bashls", -- Shell scripts
"jsonls", -- JSON configs
"html", -- HTML
@ -25,9 +25,7 @@ local treesitter_parsers = {
"markdown",
"markdown_inline",
"html",
"html_tags",
"javascript",
"jsx",
"css",
"vim",
"git_config",
@ -95,7 +93,7 @@ return {
return
end
require("nvim-treesitter").install(missing)
require("nvim-treesitter.install").ensure_installed(missing)
end
local function tree_sitter_cli_works()
@ -172,7 +170,7 @@ return {
end)
end
local installed = require("nvim-treesitter.config").get_installed()
local installed = require("nvim-treesitter.info").installed_parsers()
local missing = vim.iter(treesitter_parsers)
:filter(function(parser)
return not vim.tbl_contains(installed, parser)
@ -214,6 +212,25 @@ return {
ensure_installed = mason_ensure_installed,
automatic_installation = false, -- Only install what's in ensure_installed
})
local registry_ok, registry = pcall(require, "mason-registry")
if not registry_ok then
return
end
registry.refresh(function()
local package_ok, package = pcall(registry.get_package, "nil")
if not package_ok then
vim.notify_once("Mason registry does not include nil", vim.log.levels.WARN)
return
end
if package:is_installed() or package:is_installing() then
return
end
package:install()
end)
end
},

18
lua/plugins/pi.lua Normal file
View file

@ -0,0 +1,18 @@
return {
{
"pablopunk/pi.nvim",
config = function()
require("pi").setup({
log_path = vim.fn.stdpath("state") .. "/pi-nvim.log",
})
require("which-key").add({
{ "<leader>a", group = "AI" },
{ "<leader>aa", "<cmd>PiAsk<cr>", desc = "Ask Pi" },
{ "<leader>al", "<cmd>PiLog<cr>", desc = "Pi Log" },
{ "<leader>ax", "<cmd>PiCancel<cr>", desc = "Cancel Pi" },
{ "<leader>aa", "<cmd>PiAskSelection<cr>", mode = "v", desc = "Ask Pi" },
})
end,
},
}

View file

@ -59,6 +59,7 @@ return {
{ "[d", vim.diagnostic.goto_prev, desc = "Prev Diagnostic" },
{ "<leader>G", group = "Git"},
{ "<leader>a", group = "AI"},
{ "<leader>f", group = "Files"},
{ "<leader>c", group = "Code"},
{ "<leader>d", group = "Debug"},