more
This commit is contained in:
parent
d5b6a69f9a
commit
8a0dd46473
4 changed files with 34 additions and 1 deletions
|
|
@ -83,7 +83,8 @@ return {
|
|||
-- 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 = {
|
||||
sql = { "sql_formatter", lsp_format = "first" },
|
||||
lua = { "stylua", lsp_format = "first" },
|
||||
|
|
|
|||
|
|
@ -13,6 +13,16 @@ return {
|
|||
default_type = "keep",
|
||||
},
|
||||
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 = {
|
||||
{ "<leader>,m", "<cmd>Glow<cr>", desc = "Markdown preview" },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,6 +20,13 @@ return {
|
|||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
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("telescope").load_extension("remote-sshfs")
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue