aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio
diff options
context:
space:
mode:
Diffstat (limited to 'lua/gabrielgio')
-rw-r--r--lua/gabrielgio/formatter.lua1
-rw-r--r--lua/gabrielgio/linter.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/lua/gabrielgio/formatter.lua b/lua/gabrielgio/formatter.lua
index 68c8bac..7f400b6 100644
--- a/lua/gabrielgio/formatter.lua
+++ b/lua/gabrielgio/formatter.lua
@@ -4,6 +4,7 @@ formatter.setup({
filetype = {
nix = { require("formatter.filetypes.nix").alejandra },
lua = { require("formatter.filetypes.lua").stylua },
+ fish = { require("formatter.filetypes.fish").fishindent },
},
["*"] = {
require("formatter.filetypes.any").remove_trailing_whitespace,
diff --git a/lua/gabrielgio/linter.lua b/lua/gabrielgio/linter.lua
index c2d4503..b40c28f 100644
--- a/lua/gabrielgio/linter.lua
+++ b/lua/gabrielgio/linter.lua
@@ -4,6 +4,7 @@ lint.linters_by_ft = {
go = { "golangcilint" },
lua = { "luacheck" },
javascript = { "prettier" },
+ fish = { "fish" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {