* stylua -> EmmyLuaCodeStyle: config and doc * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle: call_arg_parentheses = always * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle
This commit is contained in:
committed by
GitHub
parent
9650e735ba
commit
1ae1c33ce1
@@ -1,9 +1,9 @@
|
||||
local utils = require "nvim-tree.utils"
|
||||
local view = require "nvim-tree.view"
|
||||
local core = require "nvim-tree.core"
|
||||
local lib = require "nvim-tree.lib"
|
||||
local explorer_node = require "nvim-tree.explorer.node"
|
||||
local diagnostics = require "nvim-tree.diagnostics"
|
||||
local utils = require("nvim-tree.utils")
|
||||
local view = require("nvim-tree.view")
|
||||
local core = require("nvim-tree.core")
|
||||
local lib = require("nvim-tree.lib")
|
||||
local explorer_node = require("nvim-tree.explorer.node")
|
||||
local diagnostics = require("nvim-tree.diagnostics")
|
||||
|
||||
local M = {}
|
||||
local MAX_DEPTH = 100
|
||||
@@ -65,9 +65,9 @@ local function move(where, what, skip_gitignored)
|
||||
end
|
||||
|
||||
if nex then
|
||||
view.set_cursor { nex, 0 }
|
||||
view.set_cursor({ nex, 0 })
|
||||
elseif vim.o.wrapscan and first then
|
||||
view.set_cursor { first, 0 }
|
||||
view.set_cursor({ first, 0 })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -175,7 +175,7 @@ local function move_prev_recursive(what, skip_gitignored)
|
||||
if
|
||||
node_cur == nil
|
||||
or node_cur == node_init -- we didn't move
|
||||
or not node_cur.nodes -- node is a file
|
||||
or not node_cur.nodes -- node is a file
|
||||
then
|
||||
return
|
||||
end
|
||||
@@ -186,13 +186,13 @@ local function move_prev_recursive(what, skip_gitignored)
|
||||
|
||||
-- 4.3)
|
||||
if node_init.name == ".." then -- root node
|
||||
view.set_cursor { 1, 0 } -- move to root node (position 1)
|
||||
view.set_cursor({ 1, 0 }) -- move to root node (position 1)
|
||||
else
|
||||
local node_init_line = utils.find_node_line(node_init)
|
||||
if node_init_line < 0 then
|
||||
return
|
||||
end
|
||||
view.set_cursor { node_init_line, 0 }
|
||||
view.set_cursor({ node_init_line, 0 })
|
||||
end
|
||||
|
||||
-- 4.4)
|
||||
|
||||
Reference in New Issue
Block a user