Skip to content

Commit 15f28ce

Browse files
committed
build: add stylua precommit hook
1 parent 5a0c543 commit 15f28ce

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ This is open for debate, but here is the current style choices being observed:
1515
I prefer `local name = function()` over `local function name()`, just to be
1616
consistant with the `M.name = function()` exports.
1717

18+
### StyLua
19+
20+
We use (StyLua)[https://github.com/JohnnyMorganz/StyLua] to enforce consistency
21+
in code. You should install it on your local machine. PRs will be checked with
22+
this tool.
23+
1824
## Commit Messages
1925

2026
We use **semantic**, aka **conventional** commit messages. The official guide

lua/neo-tree/defaults.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ local config = {
99
enable_git_status = true,
1010
enable_diagnostics = true,
1111
open_files_in_last_window = true, -- false = open files int top left window
12-
-- true = open files in last window visited
12+
-- true = open files in last window visited
1313
}
1414
return config

lua/neo-tree/sources/filesystem/defaults.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ local filesystem = {
9494
},
9595
{
9696
"name",
97-
use_git_status_colors = true
97+
use_git_status_colors = true,
9898
},
9999
{
100100
"clipboard",

lua/neo-tree/ui/renderer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ end
497497
--at; defaults to nil.
498498
M.show_nodes = function(sourceItems, state, parentId)
499499
local id = string.format("show_nodes %s:%s [%s]", state.name, state.force_float, state.tabnr)
500-
utils.debounce(id, function ()
500+
utils.debounce(id, function()
501501
local level = 0
502502
if parentId ~= nil then
503503
local parent = state.tree:get_node(parentId)

0 commit comments

Comments
 (0)