Move more nvim modules to nix
This commit is contained in:
parent
91eb12343c
commit
445c5965c6
6 changed files with 239 additions and 121 deletions
home/features/neovim/config/lua/my/plugins
|
@ -1,36 +0,0 @@
|
|||
local function keybind(keys, action, desc, modes)
|
||||
if modes == nil then
|
||||
modes = { "n", "x", "o" }
|
||||
end
|
||||
|
||||
return {
|
||||
keys,
|
||||
mode = modes,
|
||||
function()
|
||||
require("flash")[action]()
|
||||
end,
|
||||
desc = desc,
|
||||
}
|
||||
end
|
||||
|
||||
local M = {
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {
|
||||
modes = {
|
||||
char = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
keybind("s", "jump", "Flash"),
|
||||
keybind("S", "treesitter", "Flash Treesitter"),
|
||||
keybind("r", "remote", "Remote Flash", { "o" }),
|
||||
keybind("R", "treesitter_search", "Treesitter Search", { "o", "x" }),
|
||||
keybind("<C-S>", "toggle", "Toggle Flash Search", { "c" }),
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
|
@ -1,32 +0,0 @@
|
|||
local env = require("my.helpers.env")
|
||||
|
||||
local M = {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = "VeryLazy",
|
||||
cond = env.vscode.not_active() and env.firenvim.not_active(),
|
||||
}
|
||||
|
||||
function M.config()
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
theme = "auto",
|
||||
disabled_filetypes = {
|
||||
"undotree",
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "branch" },
|
||||
lualine_b = { "filename" },
|
||||
lualine_c = { "filetype" },
|
||||
lualine_x = { "diagnostics" },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
-- Integration with other plugins
|
||||
extensions = { "nvim-tree" },
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue