Compare commits

..

3 commits

Author SHA1 Message Date
RingOfStorms (Joshua Bell)
5d2bc9abb8 idk 2025-10-27 21:57:13 -05:00
RingOfStorms (Joshua Bell)
5f4f5a9997 Merge branch 'minified' of ssh://git.joshuabell.xyz:3032/ringofstorms/nvim into minified 2025-10-27 21:53:45 -05:00
RingOfStorms (Joshua Bell)
8a0dd46473 more 2025-10-27 21:53:43 -05:00
4 changed files with 25 additions and 7 deletions

View file

@ -188,15 +188,14 @@
(builtins.filter (n: builtins.substring 0 12 n == "nvim_plugin-") (builtins.attrNames inputs)); (builtins.filter (n: builtins.substring 0 12 n == "nvim_plugin-") (builtins.attrNames inputs));
}); });
# All runtime dependencies are now optional and checked at runtime by plugins # All runtime dependencies are now optional and checked lazily by plugins
# This keeps the neovim flake lean and allows project devShells to provide tools # This keeps the neovim flake lean and allows project devShells to provide tools
# Core dependencies that neovim itself might need can still be added here # Core dependencies that telescope needs are kept here
runtimeDependencies = with pkgs; [ runtimeDependencies = with pkgs; [
# Keeping ripgrep and fd as they're core to telescope functionality ripgrep # search - core to telescope, checked in telescope.lua init
ripgrep # search - used heavily by telescope fd # file finding - improves telescope performance, checked in telescope.lua init
fd # file finding - used by telescope
# All other tools (LSPs, formatters, linters, glow, sshfs, etc.) are now optional # All other tools (LSPs, formatters, linters, glow, sshfs, etc.) are now optional
# and will show helpful errors when missing # and will show helpful errors when missing at the point of use
]; ];
in in
@ -219,6 +218,7 @@
++ [ ++ [
# Add minimal runtime dependencies to neovim path # Add minimal runtime dependencies to neovim path
# Most tools are now optional and checked at runtime # Most tools are now optional and checked at runtime
# Project devShells take precedence via --suffix
"--suffix" "--suffix"
"PATH" "PATH"
":" ":"

View file

@ -83,7 +83,8 @@ return {
-- args = { "fmt" }, -- args = { "fmt" },
-- }, -- },
}, },
-- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies -- Formatters are checked lazily on format attempt
-- conform.nvim will show errors if formatters are missing
formatters_by_ft = { formatters_by_ft = {
sql = { "sql_formatter", lsp_format = "first" }, sql = { "sql_formatter", lsp_format = "first" },
lua = { "stylua", lsp_format = "first" }, lua = { "stylua", lsp_format = "first" },

View file

@ -13,6 +13,16 @@ return {
default_type = "keep", default_type = "keep",
}, },
cmd = "Glow", cmd = "Glow",
config = function(_, opts)
-- Check for glow when plugin is first used
if not U.cmd_executable("glow") then
vim.notify(
"'glow' not found on PATH. Install it to use markdown preview.",
vim.log.levels.ERROR
)
end
require("glow").setup(opts)
end,
keys = { keys = {
{ "<leader>,m", "<cmd>Glow<cr>", desc = "Markdown preview" }, { "<leader>,m", "<cmd>Glow<cr>", desc = "Markdown preview" },
}, },

View file

@ -20,6 +20,13 @@ return {
dependencies = { "nvim-telescope/telescope.nvim" }, dependencies = { "nvim-telescope/telescope.nvim" },
opts = {}, opts = {},
config = function(_, opts) config = function(_, opts)
-- Check for sshfs when plugin is first used
if not U.cmd_executable("sshfs") then
vim.notify(
"'sshfs' not found on PATH. Install it to use RemoteSSHFS commands.",
vim.log.levels.ERROR
)
end
require("remote-sshfs").setup(opts) require("remote-sshfs").setup(opts)
require("telescope").load_extension("remote-sshfs") require("telescope").load_extension("remote-sshfs")
end, end,