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
cargo
# Nix
nil
nixfmt-rfc-style
nix-prefetch-scripts
# Shell
zsh
shfmt
@ -103,6 +108,8 @@
talosctl
cilium-cli
kubelogin-oidc
kubebuilder
chart-testing
];
# 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
"tflint", -- terraform
"yamlls", -- yaml
"nil_ls", -- nix
},
automatic_installation = true,
})
@ -240,6 +241,9 @@ require("formatter").setup({
proto = {
require("formatter.filetypes.proto").buf_format,
},
nix = {
require("formatter.filetypes.nix").nixfmt,
},
terraform = {
--require("formatter.filetypes.terraform").terraformfmt,
function()