diff --git a/.config/nvim/fnl/settings/neo-tree.fnl b/.config/nvim/fnl/settings/neo-tree.fnl index 0d1009c..a127500 100644 --- a/.config/nvim/fnl/settings/neo-tree.fnl +++ b/.config/nvim/fnl/settings/neo-tree.fnl @@ -17,6 +17,7 @@ :ff (fn [] (exec [[:Telescope "find_files"]])) :fg (fn [] (exec [[:Telescope "live_grep"]])) : "custom_open" + :e "open" : (fn []) : (fn [])}} :commands {:custom_open (fn [state] @@ -44,11 +45,12 @@ _ (do (exec [[:silent "!file -bL --mime" quoted_path - "| grep -qv '^text\\|^inode' " - "&& xdg-open" quoted_path - "&"]]) + "| grep -qv '^text\\|^inode\\|^application/json'"]]) (if (= vim.v.shell_error 1) - ((. (require :neo-tree.sources.filesystem.commands) :open) state))))))}} + ((. (require :neo-tree.sources.filesystem.commands) :open_with_window_picker) state) + (exec [[:silent + "!xdg-open" quoted_path + "&"]]))))))}} :renderers {:directory [[:indent] [:icon] [:current_filter]