Initial commit, copied setup from nixos config
This commit is contained in:
commit
477100a830
6 changed files with 314 additions and 0 deletions
9
config/default.nix
Normal file
9
config/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
# Import all your configuration modules here
|
||||
imports = [ ./lsp.nix ./lsp-format.nix ./which-key.nix ];
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
shiftwidth = 2;
|
||||
};
|
||||
}
|
||||
1
config/lsp-format.nix
Normal file
1
config/lsp-format.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ plugins = { lsp-format = { enable = true; }; }; }
|
||||
14
config/lsp.nix
Normal file
14
config/lsp.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
clangd.enable = true;
|
||||
bashls.enable = true;
|
||||
nixd.enable = true;
|
||||
marksman.enable = true;
|
||||
lua_ls.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
43
config/which-key.nix
Normal file
43
config/which-key.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
plugins = {
|
||||
which-key = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "helix";
|
||||
icons.rules = false;
|
||||
icons.mappings = false;
|
||||
icons.keys = {
|
||||
BS = "BS ";
|
||||
C = "C ";
|
||||
CR = "CR ";
|
||||
D = "D ";
|
||||
Down = "Down ";
|
||||
Esc = "Esc ";
|
||||
F1 = "F1";
|
||||
F10 = "F10";
|
||||
F11 = "F11";
|
||||
F12 = "F12";
|
||||
F2 = "F2";
|
||||
F3 = "F3";
|
||||
F4 = "F4";
|
||||
F5 = "F5";
|
||||
F6 = "F6";
|
||||
F7 = "F7";
|
||||
F8 = "F8";
|
||||
F9 = "F9";
|
||||
Left = "Left ";
|
||||
M = "M ";
|
||||
NL = "NL ";
|
||||
Right = "Right ";
|
||||
S = "S ";
|
||||
ScrollWheelDown = "ScrollWheelDown ";
|
||||
ScrollWheelUp = "ScrollWhellUp ";
|
||||
Space = "Space ";
|
||||
Tab = "Tab ";
|
||||
Up = "Up ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue