From 4c743a2afb87994be4ff7c2dc76d21c70d31e4de Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 26 Aug 2023 22:52:12 +0200 Subject: Style(treewide): Format all lua-files makes lua ➛ nix easier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The files were formatted according to the `.editorconfig` file and with the formatter from [this](1) repo, as it's the only one that fully understands all keys in the `.editorconfig` file. The formatting was chosen in this special (and honestly unconventional) way because moving code from lua to nix is now easier, as the syntax is nearly identical in some places. --- .../nixvim/plugins/nvim-lint/lua/nvim-lint.lua | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint') diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/lua/nvim-lint.lua b/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/lua/nvim-lint.lua index 812d4827..582da638 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/lua/nvim-lint.lua +++ b/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/lua/nvim-lint.lua @@ -1,20 +1,20 @@ -require('lint').linters_by_ft = { - -- text - markdown = {}, - -- tex = {'chktex'}, -- maybe add some text linters ? +require("lint").linters_by_ft = { + -- text + markdown = {}; + -- tex = {'chktex'}, -- maybe add some text linters ? - -- shell - sh = {'shellcheck',}, - bash = {'shellcheck'}, - zsh = {'shellcheck'}, - dash = {'shellcheck'}, + -- shell + sh = { "shellcheck"; }; + bash = { "shellcheck"; }; + zsh = { "shellcheck"; }; + dash = { "shellcheck"; }; - yaml = {'yamllint'}, - nix = {'nix', 'statix'}, + yaml = { "yamllint"; }; + nix = { "nix"; "statix"; }; } -vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, { - callback = function() - require("lint").try_lint() - end, +vim.api.nvim_create_autocmd({ "BufEnter"; "BufWritePost"; }, { + callback = function() + require("lint").try_lint() + end; }) -- cgit 1.4.1