69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{ inputs, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.nixvim.homeModules.nixvim
|
|
./plugins
|
|
];
|
|
programs.nixvim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
plugins = {
|
|
notify.enable = true;
|
|
mini-cursorword.enable = true;
|
|
mini-statusline.enable = true;
|
|
web-devicons.enable = true;
|
|
vim-dadbod-completion.enable = true;
|
|
telescope.enable = true;
|
|
lazygit.enable = true;
|
|
persisted.enable = true;
|
|
wakatime.enable = true;
|
|
};
|
|
extraPlugins = with pkgs; [
|
|
vimPlugins.mini-completion
|
|
vimPlugins.mini-comment
|
|
vimPlugins.melange-nvim
|
|
vimPlugins.telescope-file-browser-nvim
|
|
];
|
|
opts = {
|
|
number = true;
|
|
bg = "dark";
|
|
tabstop = 2;
|
|
shiftwidth = 2;
|
|
termguicolors = true;
|
|
};
|
|
globals = {
|
|
mapleader = " ";
|
|
};
|
|
keymaps = [
|
|
{
|
|
action = "<cmd>Telescope persisted<cr>";
|
|
key = "<leader>fs";
|
|
options = {
|
|
silent = true;
|
|
};
|
|
}
|
|
{
|
|
action = "<cmd>Telescope file_browser<cr>";
|
|
key = "<leader>fv";
|
|
options = {
|
|
silent = true;
|
|
};
|
|
}
|
|
{
|
|
action = "<cmd>LazyGit<cr>";
|
|
key = "<leader>lg";
|
|
options = {
|
|
silent = true;
|
|
};
|
|
}
|
|
{
|
|
action = "<cmd>Telescope buffers<cr>";
|
|
key = "<leader>fb";
|
|
options = {
|
|
silent = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|