Skip to content

Commit

Permalink
treewide: standardize unkeyed
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 13, 2025
1 parent 0619717 commit f1b6cc6
Show file tree
Hide file tree
Showing 21 changed files with 55 additions and 55 deletions.
6 changes: 3 additions & 3 deletions modules/nixvim/keymappings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@

plugins.which-key.settings.spec = [
{
__unkeyed = "<leader>w";
__unkeyed-1 = "<leader>w";
icon = "";
}
{
__unkeyed = "<leader>W";
__unkeyed-1 = "<leader>W";
icon = "󰽃";
}
{
__unkeyed = "<leader>/";
__unkeyed-1 = "<leader>/";
icon = "";
}
];
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/codesnap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

which-key.settings.spec = lib.optionals config.plugins.codesnap.enable [
{
__unkeyed = "<leader>c";
__unkeyed-1 = "<leader>c";
mode = "v";
group = "Codesnap";
icon = "󰄄 ";
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/comment-box.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

which-key.settings.spec = lib.optionals config.plugins.comment-box.enable [
{
__unkeyed = "<leader>C";
__unkeyed-1 = "<leader>C";
group = "Comment-box";
icon = " ";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/compiler.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

which-key.settings.spec = lib.optionals config.plugins.compiler.enable [
{
__unkeyed = "<leader>R";
__unkeyed-1 = "<leader>R";
group = "Compiler";
icon = "";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/copilot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

which-key.settings.spec = lib.optionals config.plugins.copilot-chat.enable [
{
__unkeyed = "<leader>a";
__unkeyed-1 = "<leader>a";
group = "Copilot";
icon = "";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/dap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ in

which-key.settings.spec = lib.optionals config.plugins.dap.extensions.dap-ui.enable [
{
__unkeyed = "<leader>d";
__unkeyed-1 = "<leader>d";
mode = "n";
desc = "Debug";
# icon = " ";
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/git-conflict.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

which-key.settings.spec = lib.optionals config.plugins.git-conflict.enable [
{
__unkeyed = "<leader>gc";
__unkeyed-1 = "<leader>gc";
group = "Conflicts";
icon = "";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/git-worktree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ in

which-key.settings.spec = lib.optionals (cfg.enableTelescope && cfg.enable) [
{
__unkeyed = "<leader>gW";
__unkeyed-1 = "<leader>gW";
group = "Worktree";
icon = "󰙅 ";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/glance.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

which-key.settings.spec = lib.optionals config.plugins.glance.enable [
{
__unkeyed = "<leader>lg";
__unkeyed-1 = "<leader>lg";
group = "Glance";
icon = "󰍉";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/glow.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ in

which-key.settings.spec = [
{
__unkeyed = "<leader>p";
__unkeyed-1 = "<leader>p";
mode = "n";
group = "Preview";
icon = " ";
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/hardtime.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in

which-key.settings.spec = lib.optionals config.plugins.hardtime.enable [
{
__unkeyed = "<leader>v";
__unkeyed-1 = "<leader>v";
mode = "n";
group = "Vim training";
icon = "󱛊";
Expand Down
14 changes: 7 additions & 7 deletions modules/nixvim/plugins/harpoon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,32 @@

which-key.settings.spec = lib.optionals config.plugins.harpoon.enable [
{
__unkeyed = "<leader>h";
__unkeyed-1 = "<leader>h";
group = "Harpoon";
icon = "󱡀 ";
}
{
__unkeyed = "<leader>ha";
__unkeyed-1 = "<leader>ha";
desc = "Add";
}
{
__unkeyed = "<leader>he";
__unkeyed-1 = "<leader>he";
desc = "QuickMenu";
}
{
__unkeyed = "<leader>hj";
__unkeyed-1 = "<leader>hj";
desc = "1";
}
{
__unkeyed = "<leader>hk";
__unkeyed-1 = "<leader>hk";
desc = "2";
}
{
__unkeyed = "<leader>hl";
__unkeyed-1 = "<leader>hl";
desc = "3";
}
{
__unkeyed = "<leader>hm";
__unkeyed-1 = "<leader>hm";
desc = "4";
}
];
Expand Down
4 changes: 2 additions & 2 deletions modules/nixvim/plugins/iron.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
lib.optionals (builtins.elem pkgs.vimPlugins.iron-nvim config.extraPlugins)
[
{
__unkeyed = "<leader>s";
__unkeyed-1 = "<leader>s";
group = "REPL Send";
icon = "󱠥";
}
{
__unkeyed = "<leader>m";
__unkeyed-1 = "<leader>m";
group = "REPL Mark";
icon = "󱠥";
}
Expand Down
24 changes: 12 additions & 12 deletions modules/nixvim/plugins/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,52 +133,52 @@ in

which-key.settings.spec = [
{
__unkeyed = "<leader>l";
__unkeyed-1 = "<leader>l";
group = "LSP";
icon = " ";
}
{
__unkeyed = "<leader>la";
__unkeyed-1 = "<leader>la";
desc = "Code Action";
}
{
__unkeyed = "<leader>ld";
__unkeyed-1 = "<leader>ld";
desc = "Definition";
}
{
__unkeyed = "<leader>lD";
__unkeyed-1 = "<leader>lD";
desc = "References";
}
{
__unkeyed = "<leader>lf";
__unkeyed-1 = "<leader>lf";
desc = "Format";
}
{
__unkeyed = "<leader>l[";
__unkeyed-1 = "<leader>l[";
desc = "Prev";
}
{
__unkeyed = "<leader>l]";
__unkeyed-1 = "<leader>l]";
desc = "Next";
}
{
__unkeyed = "<leader>lt";
__unkeyed-1 = "<leader>lt";
desc = "Type Definition";
}
{
__unkeyed = "<leader>li";
__unkeyed-1 = "<leader>li";
desc = "Implementation";
}
{
__unkeyed = "<leader>lh";
__unkeyed-1 = "<leader>lh";
desc = "Lsp Hover";
}
{
__unkeyed = "<leader>lH";
__unkeyed-1 = "<leader>lH";
desc = "Diagnostic Hover";
}
{
__unkeyed = "<leader>lr";
__unkeyed-1 = "<leader>lr";
desc = "Rename";
}
];
Expand Down
12 changes: 6 additions & 6 deletions modules/nixvim/plugins/lualine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ in

# Show active language server
{
__unkeyed.__raw = ''
__unkeyed-1.__raw = ''
function()
local msg = ""
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
Expand All @@ -75,7 +75,7 @@ in

lualine_y = [
{
__unkeyed = "aerial";
__unkeyed-1 = "aerial";
inherit cond;

# -- The separator to be used to separate symbols in status line.
Expand All @@ -101,7 +101,7 @@ in

lualine_z = [
{
__unkeyed = "location";
__unkeyed-1 = "location";
inherit cond;
}
];
Expand All @@ -111,7 +111,7 @@ in
lualine_a = [
# NOTE: not high priority since i use bufferline now, but should fix left separator color
{
__unkeyed = "buffers";
__unkeyed-1 = "buffers";
symbols = {
alternate_file = "";
};
Expand All @@ -123,15 +123,15 @@ in
winbar = {
lualine_c = [
{
__unkeyed = "navic";
__unkeyed-1 = "navic";
inherit cond;
}
];

# TODO: Need to dynamically hide/show component so navic takes precedence on smaller width
lualine_x = [
{
__unkeyed = "filename";
__unkeyed-1 = "filename";
newfile_status = true;
path = 3;
# Shorten path names to fit navic component
Expand Down
8 changes: 4 additions & 4 deletions modules/nixvim/plugins/mini-map.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
modules = {
map = {
# __raw = lua code
# __unkeyed.* = no key, just the value
# __unkeyed-1.* = no key, just the value
integrations = {
"__unkeyed.builtin_search".__raw = "require('mini.map').gen_integration.builtin_search()";
"__unkeyed.gitsigns".__raw = "require('mini.map').gen_integration.gitsigns()";
"__unkeyed.diagnostic".__raw = "require('mini.map').gen_integration.diagnostic()";
"__unkeyed-1.builtin_search".__raw = "require('mini.map').gen_integration.builtin_search()";
"__unkeyed-2.gitsigns".__raw = "require('mini.map').gen_integration.gitsigns()";
"__unkeyed-3.diagnostic".__raw = "require('mini.map').gen_integration.diagnostic()";
};

window = {
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/persistence.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

which-key.settings.spec = lib.optionals config.plugins.persistence.enable [
{
__unkeyed = "<leader>P";
__unkeyed-1 = "<leader>P";
group = "Persistence";
icon = "󰘛";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/refactoring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

which-key.settings.spec = lib.optionals config.plugins.refactoring.enable [
{
__unkeyed = "<leader>r";
__unkeyed-1 = "<leader>r";
mode = "x";
group = "Refactor";
icon = " ";
Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/telescope.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
ui-select = {
enable = true;
settings = {
__unkeyed.__raw = ''require("telescope.themes").get_dropdown{}'';
__unkeyed-1.__raw = ''require("telescope.themes").get_dropdown{}'';
};
};

Expand Down
2 changes: 1 addition & 1 deletion modules/nixvim/plugins/trouble.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

which-key.settings.spec = lib.optionals config.plugins.trouble.enable [
{
__unkeyed = "<leader>x";
__unkeyed-1 = "<leader>x";
mode = "n";
icon = "";
group = "Trouble";
Expand Down
14 changes: 7 additions & 7 deletions modules/nixvim/plugins/which-key.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
settings = {
spec = [
{
__unkeyed = "<leader>b";
__unkeyed-1 = "<leader>b";
group = "Buffers";
}
{
__unkeyed = "<leader>bs";
__unkeyed-1 = "<leader>bs";
group = "󰒺 Sort";
icon = "";
}
{
__unkeyed = "<leader>g";
__unkeyed-1 = "<leader>g";
group = "Git";
}
{
__unkeyed = "<leader>f";
__unkeyed-1 = "<leader>f";
group = "Find";
}
{
__unkeyed = "<leader>r";
__unkeyed-1 = "<leader>r";
group = "Refactor";
icon = " ";
}
{
__unkeyed = "<leader>t";
__unkeyed-1 = "<leader>t";
group = "Terminal";
}
{
__unkeyed = "<leader>u";
__unkeyed-1 = "<leader>u";
group = "UI/UX";
}
];
Expand Down

0 comments on commit f1b6cc6

Please sign in to comment.