Skip to content

Commit b6d9af5

Browse files
committed
chore: fix stylua errors
1 parent 960b545 commit b6d9af5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lua/neo-tree/ui/renderer.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ create_nodes = function(source_items, state, level)
250250
local nodeData = {
251251
id = hidden[#hidden].id .. "_hidden_message",
252252
name = "(forced to show "
253-
.. #hidden
254-
.. " hidden "
255-
.. (#hidden > 1 and "items" or "item")
256-
.. ")",
253+
.. #hidden
254+
.. " hidden "
255+
.. (#hidden > 1 and "items" or "item")
256+
.. ")",
257257
type = "message",
258258
level = level,
259259
is_last_child = show_indent_marker_for_message,
@@ -901,8 +901,8 @@ M.window_exists = function(state)
901901
window_exists = false
902902
elseif position == "current" then
903903
window_exists = vim.api.nvim_win_is_valid(winid)
904-
and vim.api.nvim_buf_is_valid(bufnr)
905-
and vim.api.nvim_win_get_buf(winid) == bufnr
904+
and vim.api.nvim_buf_is_valid(bufnr)
905+
and vim.api.nvim_win_get_buf(winid) == bufnr
906906
else
907907
local isvalid = M.is_window_valid(winid)
908908
window_exists = isvalid and (vim.api.nvim_win_get_number(winid) > 0)

lua/neo-tree/utils.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ M.open_file = function(state, path, open_cmd)
492492
local nt = require("neo-tree")
493493
local split_command = "vsplit "
494494
-- respect window position in user config when Neo-tree is the only window
495-
if nt.config.window.position == "left" then
495+
if nt.config.window.position == "left" then
496496
split_command = "rightbelow vs "
497497
elseif nt.config.window.position == "right" then
498498
split_command = "leftabove vs "

0 commit comments

Comments
 (0)