2023-01-10 02:38:06 +01:00
|
|
|
local env = require("my.helpers.env")
|
|
|
|
|
|
|
|
if env.neovide.active() then
|
|
|
|
require("my.neovide").setup()
|
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
|
|
|
--{{{ Language support
|
|
|
|
{
|
|
|
|
"purescript-contrib/purescript-vim",
|
|
|
|
ft = "purescript",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
2023-02-08 04:31:15 +01:00
|
|
|
{
|
|
|
|
"elkowar/yuck.vim",
|
|
|
|
ft = "yuck",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
2023-01-12 20:49:08 +01:00
|
|
|
{
|
|
|
|
"Fymyte/rasi.vim",
|
|
|
|
ft = "rasi",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
2023-01-10 02:38:06 +01:00
|
|
|
{
|
|
|
|
"teal-language/vim-teal",
|
|
|
|
ft = "teal",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"udalov/kotlin-vim",
|
|
|
|
ft = "kotlin",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"kmonad/kmonad-vim",
|
|
|
|
ft = "kbd",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"vmchale/dhall-vim",
|
|
|
|
ft = "dhall",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
2023-04-25 15:35:09 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
"yasuhiroki/github-actions-yaml.vim",
|
|
|
|
ft = { "yml", "yaml" },
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
2023-05-18 01:56:19 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
"kaarmu/typst.vim",
|
2023-05-24 03:17:09 +02:00
|
|
|
ft = "typst",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"theRealCarneiro/hyprland-vim-syntax",
|
|
|
|
ft = "hypr",
|
2023-05-18 01:56:19 +02:00
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
},
|
2023-01-10 02:38:06 +01:00
|
|
|
--}}}
|
|
|
|
|
|
|
|
{
|
|
|
|
-- Better ui for inputs/selects
|
|
|
|
"stevearc/dressing.nvim",
|
|
|
|
config = true,
|
|
|
|
-- https://github.com/folke/dot/blob/master/config/nvim/lua/config/plugins/init.lua
|
|
|
|
init = function()
|
|
|
|
---@diagnostic disable-next-line: duplicate-set-field
|
|
|
|
vim.ui.select = function(...)
|
|
|
|
require("lazy").load({ plugins = { "dressing.nvim" } })
|
|
|
|
return vim.ui.select(...)
|
|
|
|
end
|
|
|
|
---@diagnostic disable-next-line: duplicate-set-field
|
|
|
|
vim.ui.input = function(...)
|
|
|
|
require("lazy").load({ plugins = { "dressing.nvim" } })
|
|
|
|
return vim.ui.input(...)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
cond = env.vscode.not_active(),
|
2023-12-12 14:32:06 +01:00
|
|
|
enabled = false,
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
event = "InsertEnter",
|
|
|
|
config = function()
|
|
|
|
require("nvim-autopairs").setup()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
2023-09-08 19:49:18 +02:00
|
|
|
{
|
|
|
|
"mateiadrielrafael/scrap.nvim",
|
|
|
|
event = "InsertEnter",
|
|
|
|
config = function()
|
|
|
|
require("my.abbreviations").setup()
|
|
|
|
end,
|
|
|
|
}, -- vim-abolish rewrite
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
-- easly switch between tmux and vim panes
|
|
|
|
"christoomey/vim-tmux-navigator",
|
|
|
|
keys = { "<C-h>", "<C-j>", "<C-k>", "<C-l>" },
|
|
|
|
cond = env.vscode.not_active()
|
2023-08-29 14:24:30 +02:00
|
|
|
and env.neovide.not_active()
|
2023-12-13 19:30:04 +01:00
|
|
|
and env.firenvim.not_active()
|
|
|
|
and false,
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
-- show progress for lsp stuff
|
|
|
|
"j-hui/fidget.nvim",
|
2023-08-14 13:49:55 +02:00
|
|
|
tag = "legacy",
|
2023-01-10 02:38:06 +01:00
|
|
|
event = "BufReadPre",
|
|
|
|
cond = env.vscode.not_active(),
|
|
|
|
config = true,
|
|
|
|
},
|
|
|
|
|
2023-03-30 02:54:57 +02:00
|
|
|
-- Live command preview for stuff like :norm
|
|
|
|
{
|
|
|
|
"smjonas/live-command.nvim",
|
2023-08-30 12:08:50 +02:00
|
|
|
config = function()
|
|
|
|
require("live-command").setup({
|
|
|
|
commands = {
|
|
|
|
Norm = { cmd = "norm" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end,
|
2023-03-30 02:54:57 +02:00
|
|
|
event = "VeryLazy",
|
2023-12-13 19:30:04 +01:00
|
|
|
cond = false,
|
2023-03-30 02:54:57 +02:00
|
|
|
},
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|