nixvim-config/config/default.nix

80 lines
1.4 KiB
Nix
Raw Normal View History

2024-06-01 06:32:58 +00:00
{
# Import all your configuration modules here
# imports = [./bufferline.nix];
imports = [
./plugins/gitsigns.nix
./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
];
colorschemes.base16 = {
enable = true;
colorscheme = "darktooth";
};
opts = {
expandtab = true;
number = true;
relativenumber = true;
autoindent = true;
termguicolors = true;
tabstop = 4;
shiftwidth = 4;
mouse = "a";
};
globals = {
mapleader = "`";
};
keymaps = [
{
action = "<cmd>Telescope find_files<CR>";
key = "<leader>f";
}
{
action = "<cmd>Telescope live_grep<CR>";
key = "<leader>g";
}
{
action = "<cmd>:TransparentToggle<CR>";
key = "<leader>t";
}
];
autoCmd = [
{
event = ["BufEnter"];
pattern = ["*"];
command = "setlocal cursorline";
}
{
event = ["BufLeave"];
pattern = ["*"];
command = "setlocal nocursorline";
}
];
plugins = {
telescope.enable = true;
treesitter.enable = true;
tmux-navigator.enable = true;
fugitive.enable = true;
2024-06-01 15:34:52 +00:00
comment.enable = true;
2024-06-01 06:32:58 +00:00
/*
:TransparentEnable
:TransparentDisable
:TransparentToggle
*/
transparent = {
enable = true;
settings.exclude_groups = [
"CursorLine"
"CursorLineNr"
];
};
};
}