2024-08-24 23:36:19 -07:00
|
|
|
# Quality of life plugins
|
2024-09-12 15:42:33 -07:00
|
|
|
{ pkgs, inputs, ... }:
|
2024-09-02 18:28:53 -07:00
|
|
|
{
|
2024-08-24 23:36:19 -07:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
ripgrep
|
|
|
|
yazi
|
|
|
|
fd
|
|
|
|
];
|
|
|
|
|
|
|
|
plugins = {
|
|
|
|
zen-mode.enable = true;
|
|
|
|
direnv.enable = true;
|
|
|
|
intellitab.enable = true;
|
|
|
|
guess-indent.enable = true;
|
2024-08-28 01:35:39 -07:00
|
|
|
comment.enable = true;
|
2024-08-24 23:36:19 -07:00
|
|
|
vim-bbye.enable = true;
|
|
|
|
indent-blankline.enable = true;
|
|
|
|
which-key.enable = true;
|
|
|
|
nvim-autopairs.enable = true;
|
|
|
|
yanky = {
|
|
|
|
enable = true;
|
|
|
|
enableTelescope = true;
|
|
|
|
};
|
|
|
|
trouble.enable = true;
|
2024-09-16 23:48:33 -07:00
|
|
|
barbecue.enable = true;
|
|
|
|
lualine = {
|
|
|
|
enable = true;
|
|
|
|
sections = {
|
|
|
|
lualine_a = [ "branch" ];
|
|
|
|
lualine_b = [ "diff" ];
|
|
|
|
lualine_c = [
|
|
|
|
# {
|
|
|
|
# __unkeyed-1 = {
|
|
|
|
# __raw = ''
|
|
|
|
# function()
|
|
|
|
# local bufnr = vim.api.nvim_get_current_buf()
|
|
|
|
#
|
|
|
|
# local clients = vim.lsp.buf_get_clients(bufnr)
|
|
|
|
# if next(clients) == nil then
|
|
|
|
# return ""
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
# local c = {}
|
|
|
|
# for _, client in pairs(clients) do
|
|
|
|
# table.insert(c, client.name)
|
|
|
|
# end
|
|
|
|
# return '\u{f085} ' .. table.concat(c, '|')
|
|
|
|
# end
|
|
|
|
# '';
|
|
|
|
# icon = "";
|
|
|
|
# };
|
|
|
|
# }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
globalstatus = true;
|
|
|
|
};
|
2024-08-24 23:36:19 -07:00
|
|
|
crates-nvim.enable = true;
|
|
|
|
# git stuff
|
|
|
|
lazygit.enable = true;
|
|
|
|
gitsigns.enable = true;
|
|
|
|
# Language specific tools
|
|
|
|
markdown-preview.enable = true;
|
2024-08-28 01:39:06 -07:00
|
|
|
ts-autotag.enable = true;
|
2024-08-24 23:36:19 -07:00
|
|
|
};
|
|
|
|
extraPlugins = [
|
|
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "satellite.nvim";
|
2024-09-12 15:42:33 -07:00
|
|
|
src = inputs.satellite;
|
2024-08-24 23:36:19 -07:00
|
|
|
})
|
|
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "render-markdown.nvim";
|
2024-09-12 15:42:33 -07:00
|
|
|
src = inputs.render-markdown;
|
2024-08-24 23:36:19 -07:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|