nixvim/config/core.nix

68 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2024-08-20 05:43:03 +00:00
{
config = {
# Color scheme.
colorschemes.catppuccin = {
enable = true;
2024-08-21 15:03:46 +00:00
settings = {
flavour = "mocha";
no_bold = false;
no_italic = false;
no_underline = false;
integrations = {
cmp = true;
neotree = true;
harpoon = true;
gitsigns = true;
which_key = true;
illuminate.enabled = true;
treesitter = true;
treesitter_context = true;
telescope.enabled = true;
indent_blankline.enabled = true;
native_lsp = {
enabled = true;
inlay_hints = {
background = true;
};
underlines = {
errors = ["underline"];
hints = ["underline"];
information = ["underline"];
warnings = ["underline"];
};
};
};
};
2024-08-20 05:43:03 +00:00
};
# Options.
opts = {
# Indent settings.
tabstop = 2;
shiftwidth = 2;
expandtab = true;
# Line number.
number = true;
relativenumber = true;
signcolumn = "yes";
# Search case sensitivity.
ic = true;
2024-09-02 03:29:17 +00:00
# For dragging windows
mouse = "a";
2024-08-20 05:43:03 +00:00
};
# Clipboard.
clipboard = {
register = "unnamedplus";
providers.xclip.enable = true;
};
2024-09-02 03:29:17 +00:00
autoCmd = [
{
event = "InsertLeave";
pattern = "*";
command = "silent! update";
}
];
2024-08-20 05:43:03 +00:00
};
}