81 lines
1.7 KiB
Nix
81 lines
1.7 KiB
Nix
{
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.nixvim.homeModules.nixvim
|
|
];
|
|
programs.nixvim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
#colorschemes.catppuccin.enable = true;
|
|
#colorschemes.tokyonight = {
|
|
# enable = true;
|
|
# settings = {
|
|
# style = "night";
|
|
# };
|
|
#};
|
|
colorschemes.monokai-pro = {
|
|
enable = true;
|
|
settings = {
|
|
filter = "classic"; # Options: classic, octagon, pro, machine
|
|
};
|
|
};
|
|
#colorschemes.nightfox = {
|
|
# enable = true;
|
|
# flavor = "carbonfox"; # Try "nordfox" or "duskfox" too!
|
|
#};
|
|
plugins.lualine.enable = true;
|
|
vimAlias = true;
|
|
opts = {
|
|
number = true;
|
|
relativenumber = true;
|
|
};
|
|
|
|
# --- Sets tab spacing for file types ---
|
|
autoCmd = [
|
|
{
|
|
event = [ "FileType" ];
|
|
pattern = [ "html" "css" "nix" ];
|
|
callback = {
|
|
__raw = ''
|
|
function()
|
|
vim.opt_local.expandtab = true
|
|
vim.opt_local.shiftwidth = 2
|
|
vim.opt_local.softtabstop = 2
|
|
end
|
|
'';
|
|
};
|
|
}
|
|
];
|
|
|
|
plugins.cmp = {
|
|
enable = true;
|
|
autoEnableSources = true;
|
|
settings.sources = [
|
|
{ name = "nvim_lsp"; }
|
|
{ name = "path"; }
|
|
{ name = "buffer"; }
|
|
];
|
|
};
|
|
|
|
plugins.lsp = {
|
|
enable = true;
|
|
servers = {
|
|
#nil_ls.enable = true;
|
|
nil_ls = {
|
|
enable = true;
|
|
settings = {
|
|
nix.flake.autoArchive = true;
|
|
};
|
|
};
|
|
clangd.enable = true;
|
|
html.enable = true;
|
|
pyright.enable = true;
|
|
};
|
|
};
|
|
|
|
plugins.rustaceanvim.enable = true;
|
|
};
|
|
}
|