mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 19:03:49 -08:00
Youwen Wu
414e46dd15
* switch to oil.nvim from yazi * use lualine with custom config * optimize settings
75 lines
1.8 KiB
Nix
75 lines
1.8 KiB
Nix
# Quality of life plugins
|
|
{ pkgs, inputs, ... }:
|
|
{
|
|
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;
|
|
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;
|
|
})
|
|
];
|
|
}
|