disable sshfs
This commit is contained in:
parent
5d2bc9abb8
commit
26dd42aebb
6 changed files with 7 additions and 74 deletions
|
|
@ -50,33 +50,11 @@ end
|
|||
|
||||
return {
|
||||
"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 = {
|
||||
-- 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_no_formatters = true,
|
||||
formatters = {
|
||||
-- v_fmt = {
|
||||
-- command = "v",
|
||||
|
|
|
|||
|
|
@ -2,24 +2,6 @@
|
|||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
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 = {
|
||||
-- Event to trigger linters
|
||||
events = { "BufWritePost", "BufReadPost", "InsertLeave", "CursorHold", "CursorHoldI" },
|
||||
|
|
@ -139,7 +121,7 @@ return {
|
|||
names = vim.tbl_filter(function(name)
|
||||
local linter = lint.linters[name]
|
||||
if not linter then
|
||||
LazyVim.warn("Linter not found: " .. name, { title = "nvim-lint" })
|
||||
vim.notify("Linter not found: " .. name, vim.log.levels.WARN)
|
||||
end
|
||||
return linter and not (type(linter) == "table" and linter.condition and not linter.condition(ctx))
|
||||
end, names)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
return {
|
||||
"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 = {
|
||||
default_type = "keep",
|
||||
},
|
||||
|
|
@ -20,6 +11,7 @@ return {
|
|||
"'glow' not found on PATH. Install it to use markdown preview.",
|
||||
vim.log.levels.ERROR
|
||||
)
|
||||
return
|
||||
end
|
||||
require("glow").setup(opts)
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue