nix/home-manager/common/software/cli/nixvim.nix
2024-02-08 11:35:58 +09:00

41 lines
No EOL
1,022 B
Nix

{ inputs, pkgs, config, lib, ... }: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
programs.nixvim = {
enable = true;
options = {
number = true;
shiftwidth = 2;
};
plugins = {
telescope.enable = true;
oil.enable = true;
treesitter.enable = true;
luasnip.enable = true;
lsp = {
enable = true;
servers {
rust-analyzer = true;
};
};
nvim-cmp = {
enable = true;
autoEnableSources = true;
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
colorschemes = {
tokyonight.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [
everforest
];
};
}