From 3986ab171ff3e784932a87840e7e8463774f5b19 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 25 Mar 2024 20:36:00 +0100 Subject: Add rest plugin --- fnl/plugins/rest.fnl | 18 ++++++++++++++++++ fnl/plugins/telescope.fnl | 8 +++++++- fnl/plugins/treesitter.fnl | 4 ++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 fnl/plugins/rest.fnl (limited to 'fnl') diff --git a/fnl/plugins/rest.fnl b/fnl/plugins/rest.fnl new file mode 100644 index 0000000..6d6f555 --- /dev/null +++ b/fnl/plugins/rest.fnl @@ -0,0 +1,18 @@ +;; Http client. + +(local keybinds [[:rr + "Rest run" + "Run request under the cursor"] + [:rs + "Rest run last" + "Re-run last request"] + [:rt + "Telescope rest select_env theme=dropdown" + "Select env"]]) + +{1 :rest-nvim/rest.nvim + :ft :http + :dependencies [{1 :vhyrro/luarocks.nvim :priority 1000 :config true}] + :config (lambda [] + (let [rest-nvim (require :rest-nvim)] + (rest-nvim.setup {: keybinds})))} diff --git a/fnl/plugins/telescope.fnl b/fnl/plugins/telescope.fnl index ef0054b..d45fefb 100644 --- a/fnl/plugins/telescope.fnl +++ b/fnl/plugins/telescope.fnl @@ -29,7 +29,13 @@ :nvim-telescope/telescope-frecency.nvim :lyz-code/telescope-orgmode.nvim]) -(local extensions [:fzf :frecency :orgmode :projects :git_worktree :harpoon]) +(local extensions [:fzf + :frecency + :orgmode + :projects + :git_worktree + :harpoon + :rest]) (fn load-extensions [telescope] (each [_ extension (ipairs extensions)] diff --git a/fnl/plugins/treesitter.fnl b/fnl/plugins/treesitter.fnl index 02b7a64..546abc7 100644 --- a/fnl/plugins/treesitter.fnl +++ b/fnl/plugins/treesitter.fnl @@ -7,9 +7,12 @@ :comment :dockerfile :fennel + :graphql :haskell :hcl :html + :http + :json :latex :lua :make @@ -22,6 +25,7 @@ :toml :vim :vimdoc + :xml :yaml] :sync_install false :ignore_install [""] -- cgit v1.2.3-70-g09d2