Skip to content

Commit

Permalink
feat(nvim): update conform.nvim and its settings
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 29, 2024
1 parent 706049a commit 0a32108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/neovim/config/lua/user/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ conform.setup({
formatters_by_ft = {
css = { "prettier" },
fish = { "fish_indent" },
go = { "gofumpt", "injected" },
go = { "gofmt", "gofumpt", "injected" },
html = { "prettier", "injected" },
javascript = { "prettier" },
json = { "jq" },
lua = { "stylua" },
markdown = { "prettier" },
markdown = { "prettier", "injected" },
nix = { "nixpkgs_fmt" },
rust = { "rustfmt" },
sh = { "shfmt" },
sql = { "pg_format", "sql_formatter" },
tf = { "terraform_fmt" },
yaml = { "prettier" },
zig = { "zigfmt" },
["_"] = { "trim_whitespace" },
["_"] = { "trim_whitespace", "trim_newlines" },
},
format_on_save = {
lsp_fallback = true,
Expand Down
3 changes: 1 addition & 2 deletions modules/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ in

# coding
nvim-lspconfig
(fromGitHub "stevearc" "conform.nvim" "v4.0.0"
"sha256-fcifkP2beaHRIsyZbqk4fdryvXxTJfPGE7dwZ51ENTc=")
conform-nvim
nvim-cmp
cmp-buffer
cmp-path
Expand Down

0 comments on commit 0a32108

Please sign in to comment.