initial config commit
This commit is contained in:
parent
f8980b6805
commit
f3dc1d15ff
79 changed files with 2725 additions and 0 deletions
57
modules/nixos/features/nixvim.nix
Normal file
57
modules/nixos/features/nixvim.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
feature = "nixvim";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.${feature}.enable {
|
||||
environment.variables.EDITOR = "nvim";
|
||||
programs.${feature} = {
|
||||
enable = true;
|
||||
opts = {
|
||||
shiftwidth = 2;
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
autoindent = true;
|
||||
tabstop = 2;
|
||||
expandtab = true;
|
||||
};
|
||||
colorschemes.catppuccin = {
|
||||
enable = true;
|
||||
settings.background.dark = "mocha";
|
||||
};
|
||||
plugins = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
};
|
||||
cmp-nvim-lsp.enable = true;
|
||||
cmp_luasnip.enable = true;
|
||||
cmp-treesitter.enable = true;
|
||||
cmp-async-path.enable = true;
|
||||
cmp-npm.enable = true;
|
||||
cmp-emoji.enable = true;
|
||||
cmp-dictionary.enable = true;
|
||||
cmp-calc.enable = true;
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers.nixd.enable = true;
|
||||
};
|
||||
lsp-format.enable = true;
|
||||
autoclose.enable = true;
|
||||
lualine.enable = true;
|
||||
luasnip.enable = true;
|
||||
treesitter.enable = true;
|
||||
lastplace.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imports = [ inputs.nixvim.nixosModules.nixvim ];
|
||||
|
||||
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue