Skip to content

Commit

Permalink
Upgrade inputs, fix deprecations and errors (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc authored Dec 23, 2024
1 parent 5ebd774 commit eb07c24
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 72 deletions.
2 changes: 1 addition & 1 deletion dotfiles/neovim/lua/custom-lsp-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ require("lspconfig").lua_ls.setup {
require("lspconfig").purescriptls.setup {}

-- activate typescript ls
require("lspconfig").tsserver.setup {}
require("lspconfig").ts_ls.setup {}

-- activate hls
require('haskell-tools')
Expand Down
57 changes: 3 additions & 54 deletions dotfiles/neovim/lua/custom-rest-nvim.lua
Original file line number Diff line number Diff line change
@@ -1,64 +1,13 @@
require("rest-nvim").setup({
vim.g.rest_nvim = {
-- Skip SSL verification, useful for unknown certificates
skip_ssl_verification = false,
-- Encode URL before making request
encode_url = true,
-- Highlight request on run
highlight = {
timeout = 150,
},
result = {
split = {
horizontal = false,
in_place = false,
stay_in_current_window_after_split = true,
},
behavior = {
decode_url = true,
show_info = {
url = true,
headers = true,
http_info = true,
curl_command = true,
},
statistics = {
enable = true,
---@see https://curl.se/libcurl/c/curl_easy_getinfo.html
stats = {
{ "total_time", title = "Time taken:" },
{ "size_download_t", title = "Download size:" },
},
},
formatters = {
json = "jq",
html = function(body)
if vim.fn.executable("tidy") == 0 then
return body, { found = false, name = "tidy" }
end
local fmt_body = vim.fn.system({
"tidy",
"-i",
"-q",
"--tidy-mark", "no",
"--show-body-only", "auto",
"--show-errors", "0",
"--show-warnings", "0",
"-",
}, body):gsub("\n$", "")

return fmt_body, { found = true, name = "tidy" }
end,
},
},
keybinds = {
buffer_local = true,
prev = "H",
next = "L",
},
},
env_file = '.env',
custom_dynamic_variables = {},
})
}
}

-- set files with .http extension to "http" filetype
vim.filetype.add({
Expand Down
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
description = "@jisantuc home manager flake";

inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05";
nixpkgs.url = "nixpkgs/nixos-24.11";

home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.11";

flake-utils.url = "github:numtide/flake-utils";
};
Expand Down

0 comments on commit eb07c24

Please sign in to comment.