feat: use nixfmt for nix files
This commit is contained in:
parent
665336da21
commit
632b7149ac
1 changed files with 457 additions and 449 deletions
|
|
@ -435,6 +435,15 @@ require("lazy").setup({
|
||||||
|
|
||||||
require("lazy-lsp").setup({
|
require("lazy-lsp").setup({
|
||||||
configs = {
|
configs = {
|
||||||
|
nil_ls = {
|
||||||
|
settings = {
|
||||||
|
['nil'] = {
|
||||||
|
formatting = {
|
||||||
|
command = { "nixfmt" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
@ -465,7 +474,6 @@ require("lazy").setup({
|
||||||
|
|
||||||
go = { "gofmt" },
|
go = { "gofmt" },
|
||||||
|
|
||||||
nix = { "nixpkgs_fmt" },
|
|
||||||
--
|
--
|
||||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||||
-- is found.
|
-- is found.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue