From 85aa75c8e5f6749351f753607c935ec9bc5bb200 Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 14 May 2025 12:27:48 +1200 Subject: [PATCH] trying different nix formatter --- lua/custom/plugins/formatting.lua | 2 +- lua/custom/plugins/lsp.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/formatting.lua b/lua/custom/plugins/formatting.lua index 4e121fb4..af803017 100644 --- a/lua/custom/plugins/formatting.lua +++ b/lua/custom/plugins/formatting.lua @@ -18,7 +18,7 @@ return { -- Ensure 'ruff' is installed via Home Manager (pkgs.ruff) python = { 'ruff_format', 'ruff_fix' }, -- python = { 'isort', 'black' }, - nix = { 'nixpkgs_fmt' }, -- Add nix formatter + nix = { 'alejandra' }, -- Add nix formatter -- Add other filetypes and formatters, e.g.: -- javascript = { "prettier" }, -- typescript = { "prettier" }, diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 76f25ddc..615dc109 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -17,6 +17,7 @@ return { 'lua_ls', 'clangd', 'pyright', + 'nixd', -- Add others like 'bashls', 'yamlls', 'nixd', 'gopls', 'rust_analyzer' etc. if needed }, },