disable sshfs

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-10-27 22:20:45 -05:00
parent 5d2bc9abb8
commit 26dd42aebb
6 changed files with 7 additions and 74 deletions

17
flake.lock generated
View file

@ -495,22 +495,6 @@
"type": "github" "type": "github"
} }
}, },
"nvim_plugin-nosduco/remote-sshfs.nvim": {
"flake": false,
"locked": {
"lastModified": 1759193354,
"narHash": "sha256-FfUxpRfqrf0r56/gi76N2ZooWnXWO0aRtaQBS7m+SvY=",
"owner": "nosduco",
"repo": "remote-sshfs.nvim",
"rev": "45502b3892774811153aeab5f7f9b0033c82005c",
"type": "github"
},
"original": {
"owner": "nosduco",
"repo": "remote-sshfs.nvim",
"type": "github"
}
},
"nvim_plugin-numToStr/Comment.nvim": { "nvim_plugin-numToStr/Comment.nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -928,7 +912,6 @@
"nvim_plugin-mfussenegger/nvim-lint": "nvim_plugin-mfussenegger/nvim-lint", "nvim_plugin-mfussenegger/nvim-lint": "nvim_plugin-mfussenegger/nvim-lint",
"nvim_plugin-mrcjkb/rustaceanvim": "nvim_plugin-mrcjkb/rustaceanvim", "nvim_plugin-mrcjkb/rustaceanvim": "nvim_plugin-mrcjkb/rustaceanvim",
"nvim_plugin-neovim/nvim-lspconfig": "nvim_plugin-neovim/nvim-lspconfig", "nvim_plugin-neovim/nvim-lspconfig": "nvim_plugin-neovim/nvim-lspconfig",
"nvim_plugin-nosduco/remote-sshfs.nvim": "nvim_plugin-nosduco/remote-sshfs.nvim",
"nvim_plugin-numToStr/Comment.nvim": "nvim_plugin-numToStr/Comment.nvim", "nvim_plugin-numToStr/Comment.nvim": "nvim_plugin-numToStr/Comment.nvim",
"nvim_plugin-nvim-lua/plenary.nvim": "nvim_plugin-nvim-lua/plenary.nvim", "nvim_plugin-nvim-lua/plenary.nvim": "nvim_plugin-nvim-lua/plenary.nvim",
"nvim_plugin-nvim-lualine/lualine.nvim": "nvim_plugin-nvim-lualine/lualine.nvim", "nvim_plugin-nvim-lualine/lualine.nvim": "nvim_plugin-nvim-lualine/lualine.nvim",

View file

@ -126,8 +126,8 @@
"nvim_plugin-rafamadriz/friendly-snippets".flake = false; "nvim_plugin-rafamadriz/friendly-snippets".flake = false;
"nvim_plugin-ron-rs/ron.vim".url = "github:ron-rs/ron.vim"; "nvim_plugin-ron-rs/ron.vim".url = "github:ron-rs/ron.vim";
"nvim_plugin-ron-rs/ron.vim".flake = false; "nvim_plugin-ron-rs/ron.vim".flake = false;
"nvim_plugin-nosduco/remote-sshfs.nvim".url = "github:nosduco/remote-sshfs.nvim"; # "nvim_plugin-nosduco/remote-sshfs.nvim".url = "github:nosduco/remote-sshfs.nvim";
"nvim_plugin-nosduco/remote-sshfs.nvim".flake = false; # "nvim_plugin-nosduco/remote-sshfs.nvim".flake = false;
}; };
outputs = outputs =
{ {
@ -190,12 +190,10 @@
# All runtime dependencies are now optional and checked lazily 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 telescope needs are kept here
runtimeDependencies = with pkgs; [ runtimeDependencies = with pkgs; [
ripgrep # search - core to telescope, checked in telescope.lua init ripgrep # search - core to telescope, checked in telescope.lua init
fd # file finding - improves telescope performance, checked in telescope.lua init fd # file finding - improves telescope performance, checked in telescope.lua init
# All other tools (LSPs, formatters, linters, glow, sshfs, etc.) are now optional tree-sitter # highlighting
# and will show helpful errors when missing at the point of use
]; ];
in in

View file

@ -50,33 +50,11 @@ end
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
init = function()
-- Check for common formatters and warn if missing
local formatters_to_check = {
{ cmd = "stylua", desc = "Lua formatting" },
{ cmd = "nixfmt", desc = "Nix formatting" },
{ cmd = "prettier", desc = "JS/TS/Svelte formatting (alternative: prettierd)" },
{ cmd = "rustywind", desc = "Tailwind class sorting" },
{ cmd = "markdownlint-cli2", desc = "Markdown formatting" },
{ cmd = "sql-formatter", desc = "SQL formatting" },
{ cmd = "rustfmt", desc = "Rust formatting" },
}
for _, formatter in ipairs(formatters_to_check) do
if not U.cmd_executable(formatter.cmd) then
-- Only warn once on startup, not on every format attempt
vim.schedule(function()
vim.notify(
string.format("Formatter '%s' not found. Used for: %s", formatter.cmd, formatter.desc),
vim.log.levels.WARN
)
end)
end
end
end,
opts = { opts = {
-- https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup -- https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup
-- conform.nvim will notify if formatters are missing when format is attempted
notify_on_error = true, notify_on_error = true,
notify_no_formatters = true,
formatters = { formatters = {
-- v_fmt = { -- v_fmt = {
-- command = "v", -- command = "v",

View file

@ -2,24 +2,6 @@
return { return {
"mfussenegger/nvim-lint", "mfussenegger/nvim-lint",
event = { "VeryLazy", "BufWritePost", "BufReadPost", "InsertLeave" }, event = { "VeryLazy", "BufWritePost", "BufReadPost", "InsertLeave" },
init = function()
-- Check for common linters and warn if missing
local linters_to_check = {
{ cmd = "markdownlint", desc = "Markdown linting" },
{ cmd = "biome", desc = "JS/TS linting" },
}
for _, linter in ipairs(linters_to_check) do
if not U.cmd_executable(linter.cmd) then
vim.schedule(function()
vim.notify(
string.format("Linter '%s' not found. Used for: %s", linter.cmd, linter.desc),
vim.log.levels.WARN
)
end)
end
end
end,
opts = { opts = {
-- Event to trigger linters -- Event to trigger linters
events = { "BufWritePost", "BufReadPost", "InsertLeave", "CursorHold", "CursorHoldI" }, events = { "BufWritePost", "BufReadPost", "InsertLeave", "CursorHold", "CursorHoldI" },
@ -139,7 +121,7 @@ return {
names = vim.tbl_filter(function(name) names = vim.tbl_filter(function(name)
local linter = lint.linters[name] local linter = lint.linters[name]
if not linter then if not linter then
LazyVim.warn("Linter not found: " .. name, { title = "nvim-lint" }) vim.notify("Linter not found: " .. name, vim.log.levels.WARN)
end end
return linter and not (type(linter) == "table" and linter.condition and not linter.condition(ctx)) return linter and not (type(linter) == "table" and linter.condition and not linter.condition(ctx))
end, names) end, names)

View file

@ -1,14 +1,5 @@
return { return {
"lnc3l0t/glow.nvim", "lnc3l0t/glow.nvim",
init = function()
-- Check if glow is available
if not U.cmd_executable("glow") then
vim.notify(
"'glow' not found on PATH. Required for markdown preview with :Glow",
vim.log.levels.INFO
)
end
end,
opts = { opts = {
default_type = "keep", default_type = "keep",
}, },
@ -20,6 +11,7 @@ return {
"'glow' not found on PATH. Install it to use markdown preview.", "'glow' not found on PATH. Install it to use markdown preview.",
vim.log.levels.ERROR vim.log.levels.ERROR
) )
return
end end
require("glow").setup(opts) require("glow").setup(opts)
end, end,