summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/plugins/rest.fnl18
-rw-r--r--fnl/plugins/telescope.fnl8
-rw-r--r--fnl/plugins/treesitter.fnl4
-rw-r--r--lazy-lock.json2
4 files changed, 31 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 [""]
diff --git a/lazy-lock.json b/lazy-lock.json
index de1153c..63050d3 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -28,6 +28,7 @@
"lspkind-nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
"lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" },
"lualine.nvim": { "branch": "master", "commit": "b5e8bb642138f787a2c1c5aedc2a78cb2cebbd67" },
+ "luarocks.nvim": { "branch": "main", "commit": "0809b0eca132bcb380a284b6a004702868f93617" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "9dfcf2036c223920826140f0151d929a43f9eceb" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"neogit": { "branch": "master", "commit": "20ab5a688c2de6fa371865528c737ae901989aa5" },
@@ -54,6 +55,7 @@
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
+ "rest.nvim": { "branch": "main", "commit": "5300ae0b111dbee1322949a197cc424eac6b849f" },
"schemastore.nvim": { "branch": "main", "commit": "ed3f891a5deefcd94c62c8e375d1efb1ce53464b" },
"sqlite.lua": { "branch": "master", "commit": "40701b6151f8883980c1548647116de39b763540" },
"stay-in-place.nvim": { "branch": "main", "commit": "0628b6db8970fc731abf9608d6f80659b58932c9" },