neovim: use nixpkgs-fmt instead of nixfmt

This commit is contained in:
Alexandre Cavalheiro 2024-04-11 20:02:33 -03:00
parent 812692731c
commit fd48cedcc1
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@
# Nix # Nix
nil nil
nixfmt nixpkgs-fmt
# TypeScript # TypeScript
nodePackages.typescript-language-server nodePackages.typescript-language-server

View file

@ -5,7 +5,7 @@ return {
"nvimtools/none-ls.nvim", "nvimtools/none-ls.nvim",
opts = function(_, config) opts = function(_, config)
-- config variable is the default configuration table for the setup function call -- 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 -- Check supported formatters and linters
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
@ -14,7 +14,7 @@ return {
-- Set a formatter -- Set a formatter
-- null_ls.builtins.formatting.stylua, -- null_ls.builtins.formatting.stylua,
-- null_ls.builtins.formatting.prettier, -- 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.prettier,
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
} }