Add nvim telescope

This commit is contained in:
Artemis Tosini 2023-09-14 16:48:15 +00:00
parent 016cf1deb2
commit 56f92fc43e
Signed by: artemist
GPG key ID: EE5227935FE3FF18
3 changed files with 44 additions and 22 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, lib, fetchurl, autoPatchelfHook, fontconfig { stdenv, lib, fetchurl, autoPatchelfHook, fontconfig, freetype, libusb, libICE
, freetype, libusb, libICE, libSM, ncurses5, udev, libX11, libXext, libXcursor , libSM, ncurses5, udev, libX11, libXext, libXcursor, libXfixes, libXrender
, libXfixes, libXrender, libXrandr }: , libXrandr }:
let let
conf = (lib.importJSON ./version.json).${stdenv.hostPlatform.system} or (throw conf = (lib.importJSON ./version.json).${stdenv.hostPlatform.system} or (throw
"unsupported system ${stdenv.hostPlatform.system}"); "unsupported system ${stdenv.hostPlatform.system}");

View file

@ -253,11 +253,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694134858, "lastModified": 1694642908,
"narHash": "sha256-fG/ESauOGmiojKlpJG8gB62dJa5Wd+ZIuiDMKK/HD3g=", "narHash": "sha256-0Opzs/56VW03COlVdoBrHJZGxQ7gzLDEWADnccC8ras=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "19c6a4081b14443420358262f8416149bd79561a", "rev": "b62f549653e97d78392c1e282b8ca76546a86585",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -295,11 +295,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1693718952, "lastModified": 1694591211,
"narHash": "sha256-+nGdJlgTk0MPN7NygopipmyylVuAVi7OItIwTlwtGnw=", "narHash": "sha256-NPP7XGZH+Q5ey7nE2zGLrBrzKmLYPhj8YgsTSdhH0D4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "793de77d9f83418b428e8ba70d1e42c6507d0d35", "rev": "3ccd87fcdae4732fe33773cefa4375c641a057e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -310,11 +310,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1694183432, "lastModified": 1694422566,
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=", "narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b", "rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -366,11 +366,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1694274712, "lastModified": 1694341786,
"narHash": "sha256-XoqfgaqzvS9FS2Ci2NXEPkuY5Shc3Z4RACEeJrWDSsI=", "narHash": "sha256-7xp0lZ0Ihx1f9WLYxOWP73PlM0HOa0Wrp3/iF7D++zc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "6efbb5353c08e6bcee24f3ed7314e51767a52d9e", "rev": "9e6892e8391a5bcc3727802b6a9fb2b9b52537df",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -648,11 +648,11 @@
"systems": "systems_5" "systems": "systems_5"
}, },
"locked": { "locked": {
"lastModified": 1692799911, "lastModified": 1694529238,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=", "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44", "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -19,6 +19,31 @@
fugitive.enable = true; fugitive.enable = true;
gitgutter.enable = true; gitgutter.enable = true;
lualine.enable = true; lualine.enable = true;
telescope = {
enable = true;
keymaps = {
"<leader>tgf" = "git_files";
"<leader>tb" = "buffers";
"<leader>tl" = "live_grep";
"<leader>ts" = "grep_string";
"<leader>tf" = "find_files";
"<leader>tt" = "builtin";
gd = "lsp_definitions";
gt = "lsp_type_definitions";
gr = "lsp_references";
gi = "lsp_implementations";
gcd = "diagnostics";
gsd = "lsp_document_symbols";
gsw = "lsp_workspace_symbols";
gci = "lsp_incoming_calls";
gco = "lsp_outgoing_calls";
"<leader>tgs" = "git_status";
"<leader>tgb" = "git_branches";
"<leader>tgc" = "git_commits";
};
};
}; };
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [
vim-fetch vim-fetch
@ -64,10 +89,7 @@
lspBuf = { lspBuf = {
K = "hover"; K = "hover";
gD = "declaration"; gD = "declaration";
gd = "definition";
gt = "type_definition";
gr = "references";
gi = "implementation";
"<leader>ra" = "code_action"; "<leader>ra" = "code_action";
"<leader>rn" = "rename"; "<leader>rn" = "rename";
"<leader>rs" = "signature_help"; "<leader>rs" = "signature_help";