nixvim-config/config/default.nix

70 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-17 00:27:29 +00:00
{...}: {
2024-06-01 06:32:58 +00:00
# Import all your configuration modules here
# imports = [./bufferline.nix];
imports = [
2024-06-01 17:42:25 +00:00
./plugins/cmp.nix
2024-06-01 06:32:58 +00:00
./plugins/gitsigns.nix
2024-08-03 20:57:30 +00:00
./plugins/lazygit.nix
2024-06-01 06:32:58 +00:00
./plugins/lsp.nix
2024-06-01 07:06:50 +00:00
./plugins/lualine.nix
2024-06-01 06:32:58 +00:00
./plugins/rhubarb.nix
2024-07-26 03:35:03 +00:00
./plugins/telescope.nix
2024-07-17 02:56:17 +00:00
./plugins/vim-obsession.nix
2024-06-01 06:32:58 +00:00
];
2024-08-11 22:57:07 +00:00
colorschemes.catppuccin = {
2024-06-01 06:32:58 +00:00
enable = true;
2024-08-11 22:57:07 +00:00
settings.flavour = "mocha";
settings.transparent_background = true;
2024-06-01 06:32:58 +00:00
};
opts = {
expandtab = true;
number = true;
relativenumber = true;
autoindent = true;
termguicolors = true;
tabstop = 4;
shiftwidth = 4;
mouse = "a";
2024-07-24 23:06:08 +00:00
# Open files with all folds expanded (`zM` to collapse all)
foldlevel = 99;
2024-06-01 06:32:58 +00:00
};
globals = {
mapleader = "`";
};
keymaps = [
{
action = "<cmd>:set rnu!<CR>";
key = "<leader>num";
2024-06-01 06:32:58 +00:00
}
];
autoCmd = [
{
event = ["BufEnter"];
pattern = ["*"];
command = "setlocal cursorline";
}
{
event = ["BufLeave"];
pattern = ["*"];
command = "setlocal nocursorline";
}
];
plugins = {
treesitter = {
enable = true;
settings.highlight.enable = true;
};
treesitter-context.enable = true;
2024-06-01 06:32:58 +00:00
tmux-navigator.enable = true;
fugitive.enable = true;
2024-06-01 15:34:52 +00:00
comment.enable = true;
2024-11-17 00:27:29 +00:00
fidget.enable = true;
2024-06-01 06:32:58 +00:00
};
}