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
|
|
|
|
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;
|
2024-09-17 14:21:47 -07:00
|
|
|
which-key = {
|
|
|
|
enable = true;
|
|
|
|
settings.delay = 1000;
|
|
|
|
};
|
2024-08-24 23:36:19 -07:00
|
|
|
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;
|
2024-09-17 00:42:18 -07:00
|
|
|
settings = {
|
|
|
|
sections = {
|
|
|
|
lualine_a = [ "branch" ];
|
2024-09-17 01:26:56 -07:00
|
|
|
lualine_b = [
|
2024-09-17 15:22:42 -07:00
|
|
|
"diff"
|
|
|
|
"diagnostics"
|
|
|
|
];
|
|
|
|
lualine_c = [
|
|
|
|
"filetype"
|
|
|
|
"progress"
|
|
|
|
];
|
|
|
|
lualine_x = [
|
|
|
|
"encoding"
|
|
|
|
"fileformat"
|
|
|
|
];
|
|
|
|
lualine_y = [
|
2024-09-17 00:42:18 -07:00
|
|
|
{
|
|
|
|
__unkeyed-1 = {
|
|
|
|
__raw = ''
|
|
|
|
function()
|
|
|
|
return require('lsp-progress').progress()
|
|
|
|
end,
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-09-17 15:22:42 -07:00
|
|
|
lualine_z = [ "location" ];
|
|
|
|
};
|
|
|
|
options = {
|
|
|
|
globalstatus = true;
|
2024-09-17 15:59:09 -07:00
|
|
|
disabled_filetypes = [
|
|
|
|
"ministarter"
|
|
|
|
];
|
2024-09-17 15:22:42 -07:00
|
|
|
section_separators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
2024-09-17 00:42:18 -07:00
|
|
|
};
|
2024-09-16 23:48:33 -07:00
|
|
|
};
|
|
|
|
};
|
2024-08-24 23:36:19 -07:00
|
|
|
crates-nvim.enable = true;
|
|
|
|
# git stuff
|
2024-09-17 14:48:00 -07:00
|
|
|
gitsigns = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
current_line_blame_opts = {
|
|
|
|
virt_text = true;
|
|
|
|
virt_text_pos = "eol";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-09-17 14:45:35 -07:00
|
|
|
neogit = {
|
|
|
|
enable = true;
|
|
|
|
settings.graph_style = "unicode";
|
|
|
|
};
|
2024-08-24 23:36:19 -07:00
|
|
|
# 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
|
|
|
})
|
2024-09-17 00:42:18 -07:00
|
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "lsp-progress.nvim";
|
|
|
|
src = inputs.lsp-progress;
|
|
|
|
})
|
2024-08-24 23:36:19 -07:00
|
|
|
];
|
|
|
|
}
|