Skip to content

Commit

Permalink
feat(neovim): set response window ft as http
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Jun 17, 2024
1 parent 8a87370 commit a26dad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ftdetect/http.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vim.filetype.add({
extension = {
http = "http",
},
})
2 changes: 2 additions & 0 deletions lua/hitt/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ local function show_response(content)
border = "rounded",
title = "hitt",
})

vim.bo.filetype = "http"
end

function M.HittSendRequest()
Expand Down

0 comments on commit a26dad7

Please sign in to comment.