Skip to content

Commit

Permalink
Update repo with more functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Gomez committed Jan 9, 2025
1 parent 41e7d3d commit 6b170ed
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 11 deletions.
5 changes: 5 additions & 0 deletions config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
shiftround = true;
};
keymaps = [
{
key = "<ESC>";
mode = ["t"];
action = "<C-\\><C-n>";
}
{
key = "U";
mode = ["n" "v"];
Expand Down
5 changes: 4 additions & 1 deletion config/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
markdown-nvim
];
extraConfigLua = "require('markdown').setup()";
plugins.friendly-snippets.enable = true;
plugins.image.enable = true;
plugins.lsp-format.enable = true;
plugins.lsp-format.lspServersToEnable = ["pylsp"];
plugins = {
Expand Down Expand Up @@ -99,6 +101,7 @@
# };
};
keymaps = [

{
key = "<leader>lr";
mode = ["n"];
Expand Down Expand Up @@ -132,7 +135,7 @@
action = "<Cmd>:Lspsaga hover_doc<CR>";
options = {
silent = true;
desc = "Goto Definition";
desc = "Hover doc";
};
}
{
Expand Down
10 changes: 6 additions & 4 deletions config/neotest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
enable = true;
adapters.python.enable = true;
lazyLoad.enable = true;

#
lazyLoad.settings = {
__unkeyed-1 = "<leader>tr";
__unkeyed-2 = "<leader>tt";
cmd = "Neotest";
# __unkeyed-1 = "<leader>tr";
# __unkeyed-2 = "<leader>tt";
};
};
keymaps = [
{
mode = "n";
key = "<leader>tr";
action.__raw = ''function() require("neotest").run.run() end'';
action = ":Neotest run<CR>";
# action.__raw = ''function() require("neotest").run.run() end'';
options.desc = "Test Nearest";
}
{
Expand Down
1 change: 1 addition & 0 deletions config/nvim-tree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
inputs,
...
}: {
plugins.oil.enable = true;
plugins.nvim-tree = {
enable = true;
openOnSetupFile = true;
Expand Down
24 changes: 24 additions & 0 deletions config/telescope.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,37 @@
}: {
plugins.telescope = {
enable = true;
extensions = {
frecency.enable = true;
manix.enable = true;
};
lazyLoad.enable = true;
lazyLoad.settings.cmd = "Telescope";
settings = {
pickers.colorscheme.enable_preview = true;
};
};
keymaps = [
{
key = "<leader>fm";
mode = ["n" "v"];
action = ":Telescope manix";
# action.__raw = ''function() require("telescope.builtin").() end'';
options = {
silent = true;
desc = "Find nix doc";
};
}
{
key = "<leader>fr";
mode = ["n" "v"];
action = ":Telescope frecency";
# action.__raw = ''function() require("telescope.builtin").() end'';
options = {
silent = true;
desc = "Find (f)recency";
};
}
{
key = "<leader>ff";
mode = ["n" "v"];
Expand Down
15 changes: 15 additions & 0 deletions config/ui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
inputs,
...
}: {
plugins.codesnap = {
enable = true;
lazyLoad = {
enable = true;
settings.cmd = "Codesnap";
};
};
plugins.noice = {
enable = true;
};
Expand Down Expand Up @@ -45,6 +52,14 @@
'';

keymaps = [
{
key = "<leader>cs";
action = "<cmd>Codesnap<cr>";
options = {
silent = true;
desc = "Code Snap";
};
}
{
key = "<leader>h";
action = "<cmd>Alpha<cr>";
Expand Down
37 changes: 31 additions & 6 deletions config/whichkey.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,36 @@
globals.mapleader = " ";
plugins.which-key = {
enable = true;
registrations = {
"<leader>g" = " Git";
"<leader>f" = " Files";
"<leader>l" = " LSP";
"<leader>c" = "Code";
};
settings.spec = [
{
__unkeyed-1 = "<leader>g";
group = "Git";
icon = " ";
}
{
__unkeyed-1 = "<leader>f";
group = "Find";
icon = " ";
}
{
__unkeyed-1 = "<leader>l";
group = "LSP";
icon = " ";
}
{
__unkeyed-1 = "<leader>c";
group = "Code";
# icon = " ";
}
{
__unkeyed-1 = "<leader>t";
group = "Test";
# icon = " ";
}
# "<leader>g" = " Git"
# "<leader>f" = " Files"
# "<leader>l" = " LSP"
# "<leader>c" = "Code"
];
};
}

0 comments on commit 6b170ed

Please sign in to comment.