diff options
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/rest.fnl | 18 | ||||
-rw-r--r-- | fnl/plugins/telescope.fnl | 8 | ||||
-rw-r--r-- | fnl/plugins/treesitter.fnl | 4 |
3 files changed, 29 insertions, 1 deletions
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 [[:<localleader>rr + "<cmd>Rest run<cr>" + "Run request under the cursor"] + [:<localleader>rs + "<cmd>Rest run last<cr>" + "Re-run last request"] + [:<localleader>rt + "<cmd>Telescope rest select_env theme=dropdown<cr>" + "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 [""] |