From e7fa1ef6998a12fdc89e4ea7bc4dadc9f2f4802d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 27 Sep 2023 18:30:42 -0500 Subject: [PATCH] feat(nvim): add rest nvim --- dots/.config/nvim/after/ftplugin/http.lua | 3 +-- dots/.config/nvim/lua/plugins/configs/rest-nvim.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dots/.config/nvim/lua/plugins/configs/rest-nvim.lua diff --git a/dots/.config/nvim/after/ftplugin/http.lua b/dots/.config/nvim/after/ftplugin/http.lua index cccb1b04..ea334c5f 100644 --- a/dots/.config/nvim/after/ftplugin/http.lua +++ b/dots/.config/nvim/after/ftplugin/http.lua @@ -7,5 +7,4 @@ vim.keymap.set("n", "fp", "RestNvimPreview", { vim.keymap.set("n", "fl", "RestNvimLast", { buffer = true, }) - -vim.api.nvim_buf_set_option(0, "commentstring", "# %s") +vim.opt_local.commentstring = "# %s" diff --git a/dots/.config/nvim/lua/plugins/configs/rest-nvim.lua b/dots/.config/nvim/lua/plugins/configs/rest-nvim.lua new file mode 100644 index 00000000..384a1575 --- /dev/null +++ b/dots/.config/nvim/lua/plugins/configs/rest-nvim.lua @@ -0,0 +1,13 @@ +return { + { + "rest-nvim/rest.nvim", + ft = { "http" }, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter" + }, + config = function () + require("rest-nvim").setup({}) + end + } +}