Moved loading and setting up file watching to the loading of the plugin itself. Will make it a little more self-contained and not crash or complain if we are missing the plugin. HACK At the same time, reverted back to pinned base16 commit since the new one did not work again. Gotta figure it out at some point but no time now.
119 lines
2.7 KiB
Lua
119 lines
2.7 KiB
Lua
return {
|
|
-- allow seamless navigation between vim buffers and tmux/wezterm splits
|
|
{
|
|
"numToStr/Navigator.nvim",
|
|
branch = "master",
|
|
config = true,
|
|
event = "VeryLazy",
|
|
keys = {
|
|
{
|
|
"<c-w>h",
|
|
function()
|
|
require("Navigator").left()
|
|
end,
|
|
{ silent = true },
|
|
},
|
|
{
|
|
"<c-w>k",
|
|
function()
|
|
require("Navigator").up()
|
|
end,
|
|
{ silent = true },
|
|
},
|
|
{
|
|
"<c-w>l",
|
|
function()
|
|
require("Navigator").right()
|
|
end,
|
|
{ silent = true },
|
|
},
|
|
{
|
|
"<c-w>j",
|
|
function()
|
|
require("Navigator").down()
|
|
end,
|
|
{ silent = true },
|
|
},
|
|
{
|
|
"<c-w>p",
|
|
function()
|
|
require("Navigator").previous()
|
|
end,
|
|
{ silent = true },
|
|
},
|
|
},
|
|
},
|
|
-- jump between letters with improved fFtT quicksearch, mimics sneak
|
|
{ "ggandor/lightspeed.nvim", event = "BufEnter" },
|
|
|
|
-- personal dict improvements for git sync
|
|
{ "micarmst/vim-spellsync", event = "VeryLazy" },
|
|
{
|
|
"folke/which-key.nvim",
|
|
config = true,
|
|
event = "CursorHold",
|
|
},
|
|
-- collection of plugins
|
|
{
|
|
"echasnovski/mini.nvim",
|
|
version = "*",
|
|
config = function()
|
|
require("plugins.config.mini")
|
|
end,
|
|
event = "VimEnter", -- need to load pretty soon for Starter screen
|
|
keys = {
|
|
{ "<leader>sm", ":lua MiniMap.toggle()<cr>", { silent = true, desc = "minimap" } },
|
|
{ "<leader>ss", ":lua MiniStarter.open()<cr>", { desc = "startpage" } },
|
|
{
|
|
"<localleader>w",
|
|
function()
|
|
require("mini.trailspace").trim()
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
-- simpler, programmable and multiple terminal toggling for nvim
|
|
{
|
|
"akinsho/nvim-toggleterm.lua",
|
|
config = function()
|
|
require("plugins.config.toggleterm")
|
|
end,
|
|
cmd = { "ToggleTerm", "TermExec", "Lazygit", "Pythonterm" },
|
|
keys = {
|
|
{ "<leader>sg", ":Lazygit<cr>" },
|
|
{ "<leader>sG", ":Lazygit!<cr>" },
|
|
{ "<leader>sp", ":Pythonterm<cr>" },
|
|
{ "<leader>sP", ":Pythonterm!<cr>" },
|
|
},
|
|
},
|
|
-- colorschemes
|
|
{
|
|
"RRethy/nvim-base16",
|
|
lazy = false,
|
|
commit = "96e3089",
|
|
priority = 1000,
|
|
dependencies = { "rktjmp/fwatch.nvim" },
|
|
config = function()
|
|
local colorsfile = vim.fn.stdpath("state") .. "/colorscheme.lua"
|
|
local function source_colors()
|
|
if vim.fn.filereadable(colorsfile) == 1 then
|
|
vim.cmd("source " .. colorsfile)
|
|
end
|
|
end
|
|
-- set on startup
|
|
source_colors()
|
|
|
|
-- continuously watch colors file for changes
|
|
local fwatch = require("fwatch")
|
|
fwatch.watch(colorsfile, {
|
|
on_event = vim.schedule_wrap(function()
|
|
source_colors()
|
|
end),
|
|
})
|
|
end,
|
|
},
|
|
-- try to avoid putting files in util buffers, e.g. filetree, aerial, undotree, ..
|
|
{ "stevearc/stickybuf.nvim", config = true },
|
|
-- make it a little less painful to open really big (>2mb) files by disabling features
|
|
{ "LunarVim/bigfile.nvim", lazy = false },
|
|
}
|