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 + } +}