Add Telescope to my nvim configuration

This commit is contained in:
Jeremy Wall 2023-08-04 15:41:25 -04:00
parent a843704e87
commit 48dd1c44fb
3 changed files with 22 additions and 5 deletions

View File

@ -75,6 +75,8 @@
nightfox-nvim nightfox-nvim
melange-nvim melange-nvim
julia-vim # TODO I should get julia language server support set up instead. julia-vim # TODO I should get julia language server support set up instead.
telescope-nvim
plenary-nvim
] ++ (with nvim-treesitter-parsers; [ ] ++ (with nvim-treesitter-parsers; [
rust rust
lua lua
@ -150,10 +152,17 @@
datasette datasette
ocaml ocaml
opam opam
ocamlformat
# TODO(jwall): I include these initially for nvim telescope
ripgrep
fd
# TODO add sonic-pi here if it supports the arch # TODO add sonic-pi here if it supports the arch
]) ++ (with ocamlPackages; [ ]) ++ (with pkgs.ocamlPackages; [
lsp
dune_3 dune_3
odoc
ocaml-lsp
merlin
utop
]) ++ [ ]) ++ [
sile sile
runwhen runwhen

View File

@ -226,5 +226,13 @@ vim.keymap.set("n", "<Leader>mg", function()
vim.cmd("MagitOnly") vim.cmd("MagitOnly")
end) end)
local telescope_builtins = require('telescope.builtin')
local telescope_actions = require('telescope.actions')
-- Telelscope configuration
require('telescope').setup()
vim.keymap.set("n", "<Leader>nff", telescope_builtins.fd)
-- Show whatever errors we have in our trouble pane -- Show whatever errors we have in our trouble pane
vim.keymap.set("n", "<Leader>se", "<cmd>TroubleToggle<cr>", { silent = true, noremap = true }) vim.keymap.set("n", "<Leader>se", "<cmd>TroubleToggle<cr>", { silent = true, noremap = true })

6
nix/darwin/flake.lock generated
View File

@ -34,12 +34,12 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-CYkkiHnBEChgg5SVTZfyFBZwAxfeG24fwLxNIbxj56M=", "narHash": "sha256-qPinR/3+sjIfkgfGVaCmodNZsGTVrglMUnOq8pQ1+YI=",
"path": "/nix/store/7nc8f6gglr3256agk90xv0y33gi40bnl-source/nix/base-system", "path": "/nix/store/nyhsl3jwbgx53wnwjqwq90dng16m6wsw-source/nix/base-system",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/7nc8f6gglr3256agk90xv0y33gi40bnl-source/nix/base-system", "path": "/nix/store/nyhsl3jwbgx53wnwjqwq90dng16m6wsw-source/nix/base-system",
"type": "path" "type": "path"
} }
}, },