feat(nix): fmt and ls in nvim

This commit is contained in:
Tine 2024-08-22 20:26:25 +02:00
parent 5d82d59749
commit d24e7c2235
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
2 changed files with 11 additions and 0 deletions

View file

@ -73,6 +73,11 @@
# Rust # Rust
cargo cargo
# Nix
nil
nixfmt-rfc-style
nix-prefetch-scripts
# Shell # Shell
zsh zsh
shfmt shfmt
@ -103,6 +108,8 @@
talosctl talosctl
cilium-cli cilium-cli
kubelogin-oidc kubelogin-oidc
kubebuilder
chart-testing
]; ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage

View file

@ -156,6 +156,7 @@ require("mason-lspconfig").setup({
"terraformls", -- terraform "terraformls", -- terraform
"tflint", -- terraform "tflint", -- terraform
"yamlls", -- yaml "yamlls", -- yaml
"nil_ls", -- nix
}, },
automatic_installation = true, automatic_installation = true,
}) })
@ -240,6 +241,9 @@ require("formatter").setup({
proto = { proto = {
require("formatter.filetypes.proto").buf_format, require("formatter.filetypes.proto").buf_format,
}, },
nix = {
require("formatter.filetypes.nix").nixfmt,
},
terraform = { terraform = {
--require("formatter.filetypes.terraform").terraformfmt, --require("formatter.filetypes.terraform").terraformfmt,
function() function()