nvim life with nim

This commit is contained in:
Daylin Morgan 2024-01-16 13:56:36 -06:00
parent da89e73b60
commit 444d03d366
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 14 additions and 4 deletions

View file

@ -34,8 +34,8 @@ let
proc formatNimCode(pattern = r"^src/.*\.nim$") =
let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2]
for file in srcFiles:
let cmd = "nph $1" % [file]
# let cmd = "nimpretty $1" % [file]
# let cmd = "nph $1" % [file]
let cmd = "nimpretty $1" % [file]
echo "Running $1 .." % [cmd]
exec(cmd)

View file

@ -1,3 +1,13 @@
return {
require("util").setup_lang({ treesitter = { "nim", "nim_format_string" }, mason = { "nimlsp" } }),
require("util").setup_lang({ treesitter = { "nim", "nim_format_string" } }),
{
"neovim/nvim-lspconfig",
opts = {
servers = {
nimls = {
mason = false,
},
}
}
}
}