configuration.nix/home/programs/neovim.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-27 21:11:38 +05:30
{pkgs, ...}: {
2023-08-05 17:42:16 +05:30
programs.nixvim = {
enable = true;
2023-06-04 10:20:19 +05:30
viAlias = true;
vimAlias = true;
2023-08-05 17:42:16 +05:30
clipboard.providers.wl-copy.enable = true;
colorscheme = "dracula";
extraPlugins = with pkgs.vimPlugins; [
dracula-nvim
2023-06-04 10:20:19 +05:30
];
2023-08-05 17:42:16 +05:30
options = {
autowrite = true;
background = "dark";
clipboard = "unnamedplus";
expandtab = true;
laststatus = 2;
showmode = false;
swapfile = false;
number = true;
relativenumber = true;
shiftwidth = 2;
signcolumn = "yes";
smartindent = true;
tabstop = 2;
termguicolors = true;
updatetime = 100;
wrap = true;
splitright = true;
splitbelow = true;
};
maps = {
normal = {
"<C-a>" = {
silent = true;
action = "<cmd>bp<Return>";
};
"<C-d>" = {
silent = true;
action = "<cmd>bn<Return>";
};
"<C-h>" = {
silent = true;
action = "<cmd>noh<Return>";
};
"<leader>w" = {
action = "<cmd>bdelete<CR><cmd>bnext><Return>";
};
};
};
2023-05-27 17:07:47 +05:30
};
}