neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(rest): `rest.nvim` is released now

+1 -25
-5
ftdetect/http.lua
··· 1 - vim.filetype.add({ 2 - extension = { 3 - http = "http", 4 - }, 5 - })
-17
lua/plugins/rest.lua
··· 1 1 ---@module 'rest-nvim' 2 2 3 - vim.opt.rtp:prepend(vim.fs.normalize("$HOME/repo/rest.nvim")) 4 - local parser_dir = "$HOME/.cache/tree-sitter/lib/http.so" 5 - if vim.fn.has("macunix") == 1 then 6 - parser_dir = "$HOME/Library/Caches/tree-sitter/lib/http.dylib" 7 - end 8 - vim.treesitter.language.add("http", { path = vim.fs.normalize(parser_dir) }) 9 - if not vim.treesitter.language.get_lang("http") then 10 - vim.treesitter.language.register("http", "http") 11 - end 12 - 13 3 ---@type rest.Opts 14 4 vim.g.rest_nvim = { 15 5 highlight = { ··· 17 7 }, 18 8 _log_level = vim.log.levels.DEBUG, 19 9 } 20 - 21 - vim.api.nvim_create_autocmd("FileType", { 22 - pattern = "http", 23 - callback = function (ev) 24 - vim.treesitter.start(ev.buf, "http") 25 - end 26 - })
+1 -3
rocks.toml
··· 81 81 nvim-ufo = "1.4.0" 82 82 "telescope.nvim" = "scm" 83 83 tree-sitter-http = "scm" 84 + "rest.nvim" = "3.0.2" 84 85 85 86 [plugins."gitsigns.nvim"] 86 87 git = "lewis6991/gitsigns.nvim" ··· 98 99 [plugins."leap.nvim"] 99 100 git = "ggandor/leap.nvim" 100 101 rev = "c099aecaf858574909bd38cbadb8543c4dd16611" 101 - 102 - [plugins."rest.nvim"] 103 - dir = "~/repo/rest.nvim" 104 102 105 103 # temporary disable. this breaks all my floating windows (conceallevel and concealcursors) 106 104 # [plugins."markdown.nvim"]