43 lines
746 B
Nix
43 lines
746 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.feature.vim;
|
|
in
|
|
{
|
|
options.feature.vim = {
|
|
enable = lib.mkEnableOption "Set up neovim";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
fzf
|
|
lua-language-server
|
|
nil
|
|
pyright
|
|
ripgrep
|
|
rust-analyzer
|
|
];
|
|
|
|
programs.neovim = {
|
|
defaultEditor = true;
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
vimdiffAlias = true;
|
|
plugins = with pkgs.vimPlugins; [
|
|
bufferline-nvim
|
|
catppuccin-nvim
|
|
lualine-nvim
|
|
nvim-tree-lua
|
|
nvim-lspconfig
|
|
telescope-nvim
|
|
nvim-web-devicons
|
|
];
|
|
extraLuaConfig = builtins.readFile ./init.lua;
|
|
};
|
|
};
|
|
}
|