flake/nixos/nvim/settings.nix

80 lines
1.8 KiB
Nix
Raw Normal View History

2025-02-02 18:53:01 -06:00
{ pkgs, ... }:
{
programs.nixvim = {
extraPackages = with pkgs; [ fd ];
enable = true;
viAlias = true;
vimAlias = true;
2025-02-04 08:26:49 -06:00
clipboard.register = [
"unnamed"
"unnamedplus"
];
performance = {
byteCompileLua = {
enable = true;
configs = true;
2025-02-06 23:23:02 -06:00
initLua = false;
2025-02-04 08:26:49 -06:00
nvimRuntime = true;
plugins = true;
};
};
# extraFiles = {
# "queries/nix/injections.scm".text = lib.mkForce ''
# (string_literal
# (string_fragment) @lua
# (#match? @lua ".*")
# )
# '';
# };
colorscheme = "catppuccin";
colorschemes.catppuccin = {
enable = true;
#lazyLoad.enable = true;
settings = {
styles = {
conditionals = null;
};
};
2025-02-04 08:26:49 -06:00
};
2025-02-02 18:53:01 -06:00
plugins = {
2025-02-04 08:26:49 -06:00
aerial.enable = true;
2025-02-02 18:53:01 -06:00
direnv.enable = true;
web-devicons.enable = true;
glow.enable = true;
gitblame.enable = true;
git-conflict.enable = true;
nix.enable = true;
nix-develop.enable = true;
image.enable = true;
which-key.enable = true;
2025-02-04 08:26:49 -06:00
neocord.enable = false;
2025-02-02 18:53:01 -06:00
rainbow-delimiters.enable = true;
neoconf.enable = true;
colorizer = {
enable = true;
settings.user_default_options = {
names = false;
};
};
2025-02-04 08:26:49 -06:00
comment.enable = true;
dotnet.enable = true;
sqlite-lua.enable = true;
2025-02-04 11:39:52 -06:00
lazydev.enable = true;
2025-02-02 18:53:01 -06:00
};
2025-02-06 23:23:02 -06:00
userCommands = {
ViewInit = {
desc = "Open the Neovim init.lua file";
command = "lua vim.cmd('view '.. InitPath)";
};
};
extraConfigLua = # lua
''
InitPath = debug.getinfo(1, "S").source:sub(2)
print("Neovim init file location: " .. InitPath)
'';
2025-02-04 08:26:49 -06:00
extraConfigVim = ''
set number " enable number lines
'';
2025-02-02 18:53:01 -06:00
};
}