From fd48cedcc19897b9be44cbb530a4ad945423e0be Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 11 Apr 2024 20:02:33 -0300 Subject: [PATCH] neovim: use nixpkgs-fmt instead of nixfmt --- programs/neovim/default.nix | 2 +- programs/neovim/lua/plugins/none-ls.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/neovim/default.nix b/programs/neovim/default.nix index 2ec5339..d07bf62 100644 --- a/programs/neovim/default.nix +++ b/programs/neovim/default.nix @@ -33,7 +33,7 @@ # Nix nil - nixfmt + nixpkgs-fmt # TypeScript nodePackages.typescript-language-server diff --git a/programs/neovim/lua/plugins/none-ls.lua b/programs/neovim/lua/plugins/none-ls.lua index 2f432dd..2bf5082 100644 --- a/programs/neovim/lua/plugins/none-ls.lua +++ b/programs/neovim/lua/plugins/none-ls.lua @@ -5,7 +5,7 @@ return { "nvimtools/none-ls.nvim", opts = function(_, config) -- config variable is the default configuration table for the setup function call - local null_ls = require "null-ls" + local null_ls = require("null-ls") -- Check supported formatters and linters -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting @@ -14,7 +14,7 @@ return { -- Set a formatter -- null_ls.builtins.formatting.stylua, -- null_ls.builtins.formatting.prettier, - null_ls.builtins.formatting.nixfmt, + null_ls.builtins.formatting.nixpkgs_fmt, null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.stylua, }