diff --git a/config/nvim/nifoc/keymap.fnl b/config/nvim/nifoc/keymap.fnl index fd0a78b..99abbfa 100644 --- a/config/nvim/nifoc/keymap.fnl +++ b/config/nvim/nifoc/keymap.fnl @@ -25,6 +25,7 @@ (keymap.set :n :s #(telescope-builtin.live_grep telescope-ivy) {:desc "Live Grep"}) (keymap.set :n :fn :enew {:desc "New File"}) + (keymap.set :n :u :UrlView {:desc "Open UrlView"}) (keymap.set :n :ut :UndotreeToggle {:desc "Toggle Undotree"}) (keymap.set :n :c repl.toggle-shell {:desc "Toggle Shell"}) diff --git a/config/nvim/plugins/urlview.fnl b/config/nvim/plugins/urlview.fnl new file mode 100644 index 0000000..09bec63 --- /dev/null +++ b/config/nvim/plugins/urlview.fnl @@ -0,0 +1,3 @@ +(let [urlview (require :urlview)] + (urlview.setup {:navigate_method :system :debug false})) + diff --git a/programs/nvim/default.nix b/programs/nvim/default.nix index 9b0098c..dcf789f 100644 --- a/programs/nvim/default.nix +++ b/programs/nvim/default.nix @@ -207,6 +207,12 @@ in type = "fennel"; } + { + plugin = urlview-nvim; + config = builtins.readFile ../../config/nvim/plugins/urlview.fnl; + type = "fennel"; + } + { plugin = neogit; config = builtins.readFile ../../config/nvim/plugins/neogit.fnl;