mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
feat: better keymap display
This commit is contained in:
@@ -137,17 +137,7 @@ in {
|
|||||||
};
|
};
|
||||||
icon = "";
|
icon = "";
|
||||||
}];
|
}];
|
||||||
lualine_x = [
|
lualine_x = [ { name = "filesize"; } { name = "filetype"; } ];
|
||||||
{ name = "fancy_lsp_servers"; }
|
|
||||||
{
|
|
||||||
name = "filetype";
|
|
||||||
extraConfig = { icon_only = true; };
|
|
||||||
padding = {
|
|
||||||
left = 1;
|
|
||||||
right = 2;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
lualine_z = [{
|
lualine_z = [{
|
||||||
name = "location";
|
name = "location";
|
||||||
separator = {
|
separator = {
|
||||||
@@ -187,7 +177,6 @@ in {
|
|||||||
};
|
};
|
||||||
toggleterm = {
|
toggleterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openMapping = "<leader>t";
|
|
||||||
direction = "vertical";
|
direction = "vertical";
|
||||||
size = 60;
|
size = 60;
|
||||||
};
|
};
|
||||||
@@ -397,7 +386,48 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
which-key = { enable = true; };
|
which-key = {
|
||||||
|
enable = true;
|
||||||
|
registrations = {
|
||||||
|
"<leader>p" = "Paste Keep Buffer";
|
||||||
|
"<leader>n" = "Hover";
|
||||||
|
"<leader>g" = "Git";
|
||||||
|
"<leader>u" = "Undotree";
|
||||||
|
"<leader>s" = {
|
||||||
|
name = "LSP";
|
||||||
|
r = "References";
|
||||||
|
d = "Definitions";
|
||||||
|
i = "Implementations";
|
||||||
|
s = "Document Symbols";
|
||||||
|
w = "Workspace Symbols";
|
||||||
|
t = "Type Definitions";
|
||||||
|
h = "Diagnostics";
|
||||||
|
a = "Code Actions";
|
||||||
|
};
|
||||||
|
"<leader>x" = {
|
||||||
|
name = "Trouble";
|
||||||
|
x = "Toggle";
|
||||||
|
w = "Workspace Diagnostics";
|
||||||
|
d = "Document Diagnostics";
|
||||||
|
q = "Quickfix";
|
||||||
|
l = "Loclist";
|
||||||
|
};
|
||||||
|
"<leader>f" = {
|
||||||
|
name = "Find";
|
||||||
|
t = "Tree";
|
||||||
|
f = "File";
|
||||||
|
a = "Untracked Files";
|
||||||
|
g = "Grep";
|
||||||
|
b = "Buffer";
|
||||||
|
};
|
||||||
|
h = {
|
||||||
|
name = "Harpoon";
|
||||||
|
m = "Mark";
|
||||||
|
n = "Next";
|
||||||
|
p = "Prev";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
copilot-lua = {
|
copilot-lua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -4,14 +4,11 @@
|
|||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>:UndotreeToggle<CR>";
|
action = "<cmd>:UndotreeToggle<CR>";
|
||||||
}
|
}
|
||||||
|
# Find/Navigate
|
||||||
{
|
{
|
||||||
key = "<leader>ft";
|
key = "<leader>ft";
|
||||||
action = "<cmd>:Neotree toggle<CR>";
|
action = "<cmd>:Neotree toggle<CR>";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
key = "<leader>s";
|
|
||||||
action = "<cmd>:SymbolsOutline<CR>";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
key = "J";
|
key = "J";
|
||||||
mode = "v";
|
mode = "v";
|
||||||
@@ -60,6 +57,7 @@
|
|||||||
mode = "n";
|
mode = "n";
|
||||||
action = ":Telescope harpoon marks<CR>";
|
action = ":Telescope harpoon marks<CR>";
|
||||||
}
|
}
|
||||||
|
# LSP Actions
|
||||||
{
|
{
|
||||||
key = "<leader>sa";
|
key = "<leader>sa";
|
||||||
mode = "n";
|
mode = "n";
|
||||||
@@ -67,6 +65,7 @@
|
|||||||
lua = true;
|
lua = true;
|
||||||
action = "require('actions-preview').code_actions";
|
action = "require('actions-preview').code_actions";
|
||||||
}
|
}
|
||||||
|
# Trouble
|
||||||
{
|
{
|
||||||
key = "<leader>xx";
|
key = "<leader>xx";
|
||||||
mode = "n";
|
mode = "n";
|
||||||
@@ -98,10 +97,4 @@
|
|||||||
lua = true;
|
lua = true;
|
||||||
action = "function() require('trouble').toggle('loclist') end";
|
action = "function() require('trouble').toggle('loclist') end";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
key = "gR";
|
|
||||||
mode = "n";
|
|
||||||
lua = true;
|
|
||||||
action = "function() require('trouble').toggle('lsp_references') end";
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user