Adding nixvim
This commit is contained in:
46
modules/nixvim/nixvim.nix
Normal file
46
modules/nixvim/nixvim.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../which-key.nix
|
||||
];
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
colorschemes = {
|
||||
cyberdream = {
|
||||
enable = true;
|
||||
settings = {
|
||||
borderless_telescope = true;
|
||||
hide_fillchars = true;
|
||||
italic_comments = true;
|
||||
transparent = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
plugins = {
|
||||
alpha = {
|
||||
enable = true;
|
||||
theme = "dashboard";
|
||||
};
|
||||
fzf-lua = {
|
||||
lazyLoad.enable = true;
|
||||
settings = {
|
||||
files = {
|
||||
color_icons = true;
|
||||
file_icons = true;
|
||||
find_opts = {
|
||||
__raw = "[[-type f -not -path '*.git/objects*' -not -path '*.env*']]";
|
||||
};
|
||||
multiprocess = true;
|
||||
prompt = " ";"
|
||||
};
|
||||
winopts = {
|
||||
col = 0.3;
|
||||
height = 0.4;
|
||||
row = 0.99;
|
||||
width = 0.93;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
45
modules/nixvim/which-key.nix
Normal file
45
modules/nixvim/which-key.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
programs.nixvim.plugins.which-key = {
|
||||
lazyLoad.enable = true;
|
||||
settings = {
|
||||
delay = 200;
|
||||
expand = 1;
|
||||
notify = false;
|
||||
replace = {
|
||||
desc = [
|
||||
["<space>" "SPACE"]
|
||||
["<leader>" "LEADER"]
|
||||
["<[cC][rR]>" "ENTER"]
|
||||
["<[tT][aA][bB]>" "TAB"]
|
||||
["<s-tab>" "S-TAB"]
|
||||
["<[bB][sS]>" "BACKSPACE"]
|
||||
];
|
||||
};
|
||||
spec = [
|
||||
{ __unkeyed-1 = "<leader>b"; group = "Buffers"; icon = " "; }
|
||||
{ __unkeyed = "<leader>c"; group = "Codesnap"; icon = " "; mode = "v"; }
|
||||
{ __unkeyed-1 = "<leader>bs"; group = "Sort"; icon = " "; }
|
||||
{ __unkeyed-1 =
|
||||
[
|
||||
{ __unkeyed-1 = "<leader>f"; group = "Normal Visual Group"; }
|
||||
{ __unkeyed-1 = "<leader>f<tab>"; group = "Normal Visual Group in Group"; }
|
||||
];
|
||||
mode = ["n" "v"];
|
||||
}
|
||||
{ __unkeyed-1 = "<leader>w"; group = "windows"; proxy = "<C-w>"; }
|
||||
{ __unkeyed-1 = "<leader>cS"; __unkeyed-2 = "<cmd>CodeSnapSave<CR>"; desc = "Save"; mode = "v"; }
|
||||
{ __unkeyed-1 = "<leader>db"; __unkeyed-2 = {
|
||||
__raw = ''function() require("dap").toggle_breakpoint() end'';
|
||||
};
|
||||
desc = "Breakpoint toggle";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
}
|
||||
];
|
||||
win = {
|
||||
border = "rounded";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user