mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 07:33:33 +00:00
feat(nix): fmt and ls in nvim
This commit is contained in:
parent
5d82d59749
commit
d24e7c2235
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue