neovim-flake/config/plugins/qol.nix

76 lines
1.8 KiB
Nix
Raw Normal View History

# Quality of life plugins
{ pkgs, inputs, ... }:
2024-09-02 18:28:53 -07:00
{
extraPackages = with pkgs; [
ripgrep
yazi
fd
];
plugins = {
zen-mode.enable = true;
direnv.enable = true;
intellitab.enable = true;
guess-indent.enable = true;
comment.enable = true;
vim-bbye.enable = true;
indent-blankline.enable = true;
which-key.enable = true;
nvim-autopairs.enable = true;
yanky = {
enable = true;
enableTelescope = true;
};
trouble.enable = true;
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;
};
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;
};
extraPlugins = [
(pkgs.vimUtils.buildVimPlugin {
name = "satellite.nvim";
src = inputs.satellite;
})
(pkgs.vimUtils.buildVimPlugin {
name = "render-markdown.nvim";
src = inputs.render-markdown;
})
];
}