diff options
| author | Mike Vink <mike@pionative.com> | 2024-04-19 17:39:16 +0200 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-04-19 17:39:16 +0200 |
| commit | e39341f567c74f88a3610adce25d42e2a3666a91 (patch) | |
| tree | f12f8cf89eea186c2a005613ff07832169da22da /mut/neovim | |
| parent | 985cac44e0c7b33763d0f9d26842ad5325a4a303 (diff) | |
update from lemptop
Diffstat (limited to 'mut/neovim')
| -rw-r--r-- | mut/neovim/fnl/conf/init.fnl | 6 | ||||
| -rw-r--r-- | mut/neovim/fnl/conf/pkgs/oil.fnl | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl index 3e39450..05fbdac 100644 --- a/mut/neovim/fnl/conf/init.fnl +++ b/mut/neovim/fnl/conf/init.fnl @@ -115,6 +115,10 @@ :path "~/Sync/my/notes"}]})) +(do + (local fzf (require "fzf-lua")) + ((. fzf "register_ui_select"))) + (vim.api.nvim_create_user_command :NixEdit (fn [{: args}] @@ -122,8 +126,6 @@ (vim.cmd (.. "e " (f:read)))) {:nargs 1}) -;; I like to use the qf to run a lot of stuff that prints junk -;; Here I just check if ansi control stuff is printed and reparse the lines with efm (local qf (fn [{: id : title}] (fn [lines] diff --git a/mut/neovim/fnl/conf/pkgs/oil.fnl b/mut/neovim/fnl/conf/pkgs/oil.fnl index 7845b79..284b8bd 100644 --- a/mut/neovim/fnl/conf/pkgs/oil.fnl +++ b/mut/neovim/fnl/conf/pkgs/oil.fnl @@ -1,4 +1,5 @@ (local oil (require :oil)) +(local fzf (require :fzf-lua)) (oil.setup { @@ -22,7 +23,7 @@ "<C-s>" "actions.select_vsplit" "<C-h>" "actions.select_split" "<C-t>" "actions.select_tab" - "<C-p>" "actions.preview" + "<C-p>" #(fzf.files) "<C-c>" "actions.close" "<C-l>" "actions.refresh" "." "actions.open_cmdline" |
