From 1153450acc84b6da0e56a9c1c2f50b14cf953b49 Mon Sep 17 00:00:00 2001 From: Dennis B Date: Tue, 24 Jan 2023 16:36:48 +1100 Subject: [PATCH] Add Lua linting and style support --- lua/nightfly/init.lua | 1 - nvim.toml | 5 +++++ selene.toml | 1 + stylua.toml | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 nvim.toml create mode 100644 selene.toml create mode 100644 stylua.toml diff --git a/lua/nightfly/init.lua b/lua/nightfly/init.lua index 13f9fa7..c1b71f5 100644 --- a/lua/nightfly/init.lua +++ b/lua/nightfly/init.lua @@ -1,4 +1,3 @@ -local fn = vim.fn local g = vim.g local highlight = vim.api.nvim_set_hl diff --git a/nvim.toml b/nvim.toml new file mode 100644 index 0000000..b9ecea6 --- /dev/null +++ b/nvim.toml @@ -0,0 +1,5 @@ +[vim] +any = true + +[use] +any = true diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..03e3639 --- /dev/null +++ b/selene.toml @@ -0,0 +1 @@ +std="lua51+nvim" diff --git a/stylua.toml b/stylua.toml new file mode 100644 index 0000000..3cfeffd --- /dev/null +++ b/stylua.toml @@ -0,0 +1,3 @@ +column_width = 100 +indent_type = "Spaces" +indent_width = 2