Clean up plugin.fnl

This commit is contained in:
Alexander Rosenberg 2022-12-01 22:09:40 -08:00
parent 8ab9d2074a
commit 9b12ee74ba
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -56,32 +56,31 @@
;; fzf (a fuzzy finder) ;; fzf (a fuzzy finder)
(use! :ibhagwan/fzf-lua (use! :ibhagwan/fzf-lua
:config (fn [] :config #(let [fzf (require :fzf-lua)]
(let [fzf (require :fzf-lua)] (fzf.register_ui_select)
(fzf.register_ui_select) (bind! :n :<leader>fq fzf.quickfix)
(bind! :n :<leader>fq fzf.quickfix) (bind! :n :<leader>fr fzf.registers)
(bind! :n :<leader>fr fzf.registers) (bind! :n :<leader>fj fzf.jumps)
(bind! :n :<leader>fj fzf.jumps) (bind! :n :<leader>fa fzf.marks)
(bind! :n :<leader>fa fzf.marks) (bind! :n :<leader>fh fzf.help_tags)
(bind! :n :<leader>fh fzf.help_tags) (bind! :n :<leader>g fzf.live_grep)
(bind! :n :<leader>g fzf.live_grep) (bind! :n :<leader>fg fzf.live_grep)
(bind! :n :<leader>fg fzf.live_grep) (bind! :n :<leader>G fzf.grep)
(bind! :n :<leader>G fzf.grep) (bind! :n :<leader>fG fzf.grep)
(bind! :n :<leader>fG fzf.grep) (bind! :n :<leader>b fzf.buffers)
(bind! :n :<leader>b fzf.buffers) (bind! :n :gb fzf.buffers)
(bind! :n :gb fzf.buffers) (bind! :n :<leader>fu fzf.git_status)
(bind! :n :<leader>fu fzf.git_status) (bind! :n :<leader>fm fzf.man_pages)
(bind! :n :<leader>fm fzf.man_pages) (bind! :n :<leader>fe fzf.diagnostics_document)
(bind! :n :<leader>fe fzf.diagnostics_document) (bind! :n :<leader>fE fzf.diagnostics_workspace)
(bind! :n :<leader>fE fzf.diagnostics_workspace) (bind! :n :<leader>fp fzf.spell_suggest)
(bind! :n :<leader>fp fzf.spell_suggest) (bind! :n :<leader>i fzf.files)
(bind! :n :<leader>i fzf.files) (bind! :n :z= fzf.spell_suggest)
(bind! :n :z= fzf.spell_suggest) (bind! :n :<leader>ff (fn []
(bind! :n :<leader>ff (fn [] (let [code (os.execute "git rev-parse --is-inside-work-tree >/dev/null 2>&1")]
(let [code (os.execute "git rev-parse --is-inside-work-tree >/dev/null 2>&1")] (if (= code 0)
(if (= code 0) (fzf.git_files)
(fzf.git_files) (fzf.files)))))))
(fzf.files))))))))
;; Nvim surround ;; Nvim surround
(use! :kylechui/nvim-surround (use! :kylechui/nvim-surround