Compare commits

...

3 commits

Author SHA1 Message Date
444d03d366
nvim life with nim 2024-01-16 13:56:36 -06:00
da89e73b60
add vim-nix everywhere 2024-01-15 09:53:02 -06:00
5ccc3ad2d9
switch to nph 2024-01-15 09:52:53 -06:00
3 changed files with 14 additions and 5 deletions

View file

@ -34,6 +34,7 @@ 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]
echo "Running $1 .." % [cmd]
exec(cmd)

View file

@ -15,9 +15,6 @@ local single_host_plugins = {
{ "Fymyte/rasi.vim" },
{ dir = "~/dev/github/usu-dev/usu-vim/" },
},
algiz = {
{ "LnL7/vim-nix" },
},
}
local function add_single_host_plugins()
@ -29,6 +26,7 @@ end
if vim.tbl_contains({ "othalan", "algiz" }, "algiz") then
vim.list_extend(plugins, {
{ "lambdalisue/suda.vim" },
{ "LnL7/vim-nix" },
})
end

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