1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Antoine Langlois 557ddd26dc
module(neovim): update cmp config 2024-04-01 14:01:00 +02:00
Antoine Langlois be01eb3f14
module(neovim): update keymaps 2024-03-31 17:43:33 +02:00
5 changed files with 66 additions and 44 deletions

View File

@ -93,7 +93,7 @@
},
"flake-utils_2": {
"inputs": {
"systems": "systems_4"
"systems": "systems_5"
},
"locked": {
"lastModified": 1701680307,
@ -111,7 +111,7 @@
},
"flake-utils_3": {
"inputs": {
"systems": "systems_5"
"systems": "systems_6"
},
"locked": {
"lastModified": 1710146030,
@ -156,11 +156,11 @@
]
},
"locked": {
"lastModified": 1711133180,
"narHash": "sha256-WJOahf+6115+GMl3wUfURu8fszuNeJLv9qAWFQl3Vmo=",
"lastModified": 1711915616,
"narHash": "sha256-co6LoFA+j6BZEeJNSR8nZ4oOort5qYPskjrDHBaJgmo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb",
"rev": "820be197ccf3adaad9a8856ef255c13b6cc561a6",
"type": "github"
},
"original": {
@ -177,11 +177,11 @@
]
},
"locked": {
"lastModified": 1711133180,
"narHash": "sha256-WJOahf+6115+GMl3wUfURu8fszuNeJLv9qAWFQl3Vmo=",
"lastModified": 1711625603,
"narHash": "sha256-W+9dfqA9bqUIBV5u7jaIARAzMe3kTq/Hp2SpSVXKRQw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb",
"rev": "c0ef0dab55611c676ad7539bf4e41b3ec6fa87d2",
"type": "github"
},
"original": {
@ -238,14 +238,15 @@
"nixpkgs": [
"hyprlock",
"nixpkgs"
]
],
"systems": "systems_3"
},
"locked": {
"lastModified": 1708212860,
"narHash": "sha256-nW3Zrhh9RJcMTvOcXAaKADnJM/g6tDf3121lJtTHnYo=",
"lastModified": 1711250455,
"narHash": "sha256-LSq1ZsTpeD7xsqvlsepDEelWRDtAhqwetp6PusHXJRo=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "11d5ccda071c153dfdc18ef65338956a51cef96a",
"rev": "b3e430f81f3364c5dd1a3cc9995706a4799eb3fa",
"type": "github"
},
"original": {
@ -260,14 +261,14 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1711433716,
"narHash": "sha256-X1lgHBx2FLNwDQr8TT2ryl3pzdAO1dUNB5IZ7kanL9A=",
"lastModified": 1711884603,
"narHash": "sha256-y1Om75muuJcEoLd/FOYGIZ5/ja/Mc4iBX/9S7vWF0C8=",
"owner": "hyprwm",
"repo": "hyprlock",
"rev": "ab2836360bf82689e02e2265627698cc24176b0b",
"rev": "071ebcefb9070e4397d75103f5f535b58dacf250",
"type": "github"
},
"original": {
@ -283,11 +284,11 @@
]
},
"locked": {
"lastModified": 1710717205,
"narHash": "sha256-Wf3gHh5uV6W1TV/A8X8QJf99a5ypDSugY4sNtdJDe0A=",
"lastModified": 1711763326,
"narHash": "sha256-sXcesZWKXFlEQ8oyGHnfk4xc9f2Ip0X/+YZOq3sKviI=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "bcc8afd06e237df060c85bad6af7128e05fd61a3",
"rev": "36524adc31566655f2f4d55ad6b875fb5c1a4083",
"type": "github"
},
"original": {
@ -304,11 +305,11 @@
]
},
"locked": {
"lastModified": 1710717205,
"narHash": "sha256-Wf3gHh5uV6W1TV/A8X8QJf99a5ypDSugY4sNtdJDe0A=",
"lastModified": 1711763326,
"narHash": "sha256-sXcesZWKXFlEQ8oyGHnfk4xc9f2Ip0X/+YZOq3sKviI=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "bcc8afd06e237df060c85bad6af7128e05fd61a3",
"rev": "36524adc31566655f2f4d55ad6b875fb5c1a4083",
"type": "github"
},
"original": {
@ -319,11 +320,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1711163522,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=",
"lastModified": 1711703276,
"narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4",
"rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"type": "github"
},
"original": {
@ -346,11 +347,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1711456788,
"narHash": "sha256-Aj9dEP/J/my+WWUlw5JRAjYFZJVOZ08jxYXgNHtbb8E=",
"lastModified": 1711888895,
"narHash": "sha256-Hykv2DGC5EHzZ89+54w/zkit+CVGLRcdIgOWnB4zW5k=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "b8b0c1d58f3259dd0236a5844897aeec3b36b73d",
"rev": "db6b61f117c83943f15289ced03674f81d08256a",
"type": "github"
},
"original": {
@ -374,11 +375,11 @@
]
},
"locked": {
"lastModified": 1710923068,
"narHash": "sha256-6hOpUiuxuwpXXc/xfJsBUJeqqgGI+JMJuLo45aG3cKc=",
"lastModified": 1711760932,
"narHash": "sha256-DqUTQ2iAAqSDwMhKBqvi24v0Oc7pD3LCK/0FCG//TdA=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "e611897ddfdde3ed3eaac4758635d7177ff78673",
"rev": "c11e43aed6f17336c25cd120eac886b96c455731",
"type": "github"
},
"original": {
@ -444,6 +445,21 @@
}
},
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -458,7 +474,7 @@
"type": "github"
}
},
"systems_5": {
"systems_6": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",

View File

@ -32,7 +32,7 @@ in
globals = {
mapleader = " ";
};
options = {
opts = {
tabstop = 2;
expandtab = true;
softtabstop = 2;
@ -50,8 +50,9 @@ in
chadtree.enable = true;
cmp = import ./plugins/cmp.nix { lib = lib; };
cmp-buffer.enable = true;
cmp-cmdline.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp-nvim-lsp.enable = true;
cmp-nvim-lua.enable = true;
cmp-path.enable = true;
cmp_luasnip.enable = true;
comment.enable = true;

View File

@ -23,22 +23,22 @@
}
{
action = "function() require('harpoon'):list():append() end";
key = "<leader>a";
key = "<leader>ha";
lua = true;
}
{
action = "function() require('harpoon'):list():prev() end";
key = "<leader>p";
key = "<leader>hp";
lua = true;
}
{
action = "function() require('harpoon'):list():next() end";
key = "<leader>n";
key = "<leader>hn";
lua = true;
}
{
action = "function() require('harpoon'):list():clear() end";
key = "<leader>c";
key = "<leader>hc";
lua = true;
}
]

View File

@ -30,12 +30,13 @@
'';
};
sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "copilot"; }
{ name = "cmdline"; }
{ name = "luasnip"; }
{ name = "nvim_lsp"; }
{ name = "nvim_lsp_signature_help"; }
{ name = "nvim_lua"; }
{ name = "path"; }
];
completion = {
keyword_length = 3;
@ -66,6 +67,7 @@
side_padding = 0;
border = "rounded";
};
documentation.border = "rounded";
};
};
}

View File

@ -12,8 +12,8 @@
ruff-lsp.enable = true;
rust-analyzer = {
enable = true;
installCargo = false;
installRustc = false;
installCargo = true;
installRustc = true;
};
svelte.enable = true;
tailwindcss.enable = true;
@ -26,6 +26,9 @@
"<S-k>" = "hover";
"<leader>f" = "format";
"<leader>a" = "code_action";
"<leader>r" = "rename";
"<leader>gd" = "declaration";
"<leader>gr" = "references";
};
};
}