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

45 lines
No EOL
1.1 KiB
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 = {
enable = true;
installCargo = true;
installRustc = true;
};
};
};
nvim-cmp = {
enable = true;
autoEnableSources = true;
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
colorschemes = {
tokyonight.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [
everforest
];
};
}