Compare commits
2 commits
475b794b98
...
cb2a769861
| Author | SHA1 | Date | |
|---|---|---|---|
| cb2a769861 | |||
| d531dc3ac0 |
2 changed files with 9 additions and 2 deletions
|
|
@ -1,6 +1,13 @@
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
{ src = "https://github.com/stevearc/conform.nvim" },
|
{ src = "https://github.com/stevearc/conform.nvim" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("conform").setup({
|
||||||
|
formatters_by_ft = {
|
||||||
|
nix = { "alejandra" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("Format", function(args)
|
vim.api.nvim_create_user_command("Format", function(args)
|
||||||
local range = nil
|
local range = nil
|
||||||
if args.count ~= -1 then
|
if args.count ~= -1 then
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"conform.nvim": {
|
"conform.nvim": {
|
||||||
"rev": "4b713b9da0061a54750bfed457e190459be28c7b",
|
"rev": "8314f4c9e205e7f30b62147069729f9a1227d8bf",
|
||||||
"src": "https://github.com/stevearc/conform.nvim"
|
"src": "https://github.com/stevearc/conform.nvim"
|
||||||
},
|
},
|
||||||
"lazydev.nvim": {
|
"lazydev.nvim": {
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"src": "https://github.com/nvim-mini/mini.nvim"
|
"src": "https://github.com/nvim-mini/mini.nvim"
|
||||||
},
|
},
|
||||||
"nvim-lspconfig": {
|
"nvim-lspconfig": {
|
||||||
"rev": "41ceb6bba3a40128b7841f5b7f5a9dae7201e823",
|
"rev": "ac04ec3c2af08e9821b4eb64ede86072b9b213bf",
|
||||||
"src": "https://github.com/neovim/nvim-lspconfig"
|
"src": "https://github.com/neovim/nvim-lspconfig"
|
||||||
},
|
},
|
||||||
"nvim-treesitter": {
|
"nvim-treesitter": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue