]> git.armaanb.net Git - dotfiles.git/commitdiff
nvim: use FZF instead of ctrl-p
authorArmaan Bhojwani <me@armaanb.net>
Mon, 22 Nov 2021 02:20:31 +0000 (21:20 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 22 Nov 2021 02:20:31 +0000 (21:20 -0500)
.config/nvim/init.lua

index ffc6359f9f6425371258b2847e9d11c9872f69b2..ace82a734b2c7baa4c079be13a7886d04fbb2216 100644 (file)
@@ -22,7 +22,8 @@ end
 require('impatient')
 
 require('paq') {
-       'ctrlpvim/ctrlp.vim';             -- Fuzzy file finding
+       'junegunn/fzf';                   -- Fuzzy file finding
+       'junegunn/fzf.vim';               -- Fuzzy file finding
        'editorconfig/editorconfig-vim';  -- Follow editorconfig
        'folke/lsp-colors.nvim';          -- Add LSP colors to any theme
        'godlygeek/tabular';              -- Line things up
@@ -55,6 +56,10 @@ map('n', '<C-l>', '<C-w><C-l>', opts)
 -- Clear search highlighting
 map('n', '<C-c>', ':noh<CR>', opts)
 
+-- FZF
+map('n', '<leader>f', ':Files<CR>', opts)
+-- TODO: Sharp corners... I can't figure this out
+
 -- Completion
 vim.opt.completeopt = vim.opt.completeopt + 'menuone'
 vim.opt.completeopt = vim.opt.completeopt - 'preview'