mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-14 19:25:18 +08:00
nvim: move telescope setup to lua
This commit is contained in:
parent
ade1310815
commit
5ac6f8294a
2 changed files with 5 additions and 7 deletions
|
|
@ -35,4 +35,9 @@ nmap("b]", ":BufferLineCyclePrev<cr>")
|
|||
nmap("be", ":BufferLineSortByExtension<cr>")
|
||||
nmap("bd", ":BufferLineSortByDirectory<cr>")
|
||||
|
||||
-- telescope setup
|
||||
nmap("<leader>ff", ":Telescope find_files<cr>")
|
||||
nmap("<leader>fg", ":Telescope live_grep<cr>")
|
||||
nmap("<leader>fb", ":Telescope buffers<cr>")
|
||||
nmap("<leader>fh", ":Telescope help_tags<cr>")
|
||||
|
||||
|
|
|
|||
|
|
@ -74,13 +74,6 @@
|
|||
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
|
||||
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
|
||||
|
||||
" telescope
|
||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||
|
||||
|
||||
lua << EOF
|
||||
${builtins.readFile ./neovim.lua}
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue