disable plugins if we don't have the cli
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
require('kulala').setup()
|
||||
|
||||
require("just").setup({
|
||||
fidget_message_limit = 32, -- limit for length of fidget progress message
|
||||
open_qf_on_error = true, -- opens quickfix when task fails
|
||||
open_qf_on_run = true, -- opens quickfix when running `run` task (`:JustRun`)
|
||||
open_qf_on_any = false; -- opens quickfix when running any task (overrides other open_qf options)
|
||||
autoscroll_qf = true, -- automatically scroll quickfix window on output
|
||||
register_commands = true, -- if set to true then commands (:Just*) will be registered
|
||||
notify = vim.notify, -- what to use to show messages/errors
|
||||
})
|
||||
if vim.fn.executable("just") == 1 then
|
||||
vim.pack.add({ { src = 'https://github.com/al1-ce/just.nvim' } })
|
||||
|
||||
require("just").setup({
|
||||
fidget_message_limit = 32, -- limit for length of fidget progress message
|
||||
open_qf_on_error = true, -- opens quickfix when task fails
|
||||
open_qf_on_run = true, -- opens quickfix when running `run` task (`:JustRun`)
|
||||
open_qf_on_any = false; -- opens quickfix when running any task (overrides other open_qf options)
|
||||
autoscroll_qf = true, -- automatically scroll quickfix window on output
|
||||
register_commands = true, -- if set to true then commands (:Just*) will be registered
|
||||
notify = vim.notify, -- what to use to show messages/errors
|
||||
})
|
||||
end
|
||||
|
||||
require('img-clip').setup()
|
||||
require('image').setup({
|
||||
backend = "sixel"
|
||||
@@ -46,11 +51,13 @@ require('neogit').setup({
|
||||
},
|
||||
})
|
||||
|
||||
require('zincoxide').setup({
|
||||
zincoxide_cmd = "zoxide",
|
||||
complete = true,
|
||||
behaviour = "tabs",
|
||||
})
|
||||
if vim.fn.executable("zoxide") == 1 then
|
||||
require('zincoxide').setup({
|
||||
zincoxide_cmd = "zoxide",
|
||||
complete = true,
|
||||
behaviour = "tabs",
|
||||
})
|
||||
end
|
||||
|
||||
require('trouble').setup({
|
||||
defaults = {
|
||||
@@ -266,4 +273,3 @@ vim.keymap.set('n', "<leader>cQ", "<cmd>Trouble qflist toggle<cr>", { desc = "Qu
|
||||
vim.keymap.set('n', "<leader>uo", "<cmd>OverseerToggle<CR>", { desc = "Overseer Toggle" })
|
||||
vim.keymap.set('n', "<F5>", "<cmd>OverseerRun<CR>", { desc = "Run Overseer" })
|
||||
vim.keymap.set('n', "<F6>", "<cmd>OverseerToggle<CR>", { desc = "Overseer Toggle" })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user