mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 13:54:54 +01:00
fix: typo, check direction
This commit is contained in:
parent
5c3f7dc85e
commit
9eb057eeac
2 changed files with 3 additions and 2 deletions
|
@ -13,8 +13,9 @@ M.refresh = require("neo-tree.utils").wrap(manager.refresh, "codemp")
|
|||
M.open = function(state, path, extra)
|
||||
local selected = state.tree:get_node()
|
||||
if selected.type == "spacer" then return end
|
||||
if selected.type == "title" then return end
|
||||
if selected.type == "root" then
|
||||
if selected.name == "[connect]" and session.client ~= nil then
|
||||
if selected.name == "[connect]" and session.client == nil then
|
||||
client_manager.connect()
|
||||
end
|
||||
return
|
||||
|
|
|
@ -49,7 +49,7 @@ end
|
|||
M.name = function(config, node, state)
|
||||
local highlight = config.highlight or highlights.FILE_NAME
|
||||
local text = node.name
|
||||
if node.type == "tutle" then
|
||||
if node.type == "title" then
|
||||
text = ":: " .. node.name .. " ::"
|
||||
highlight = highlights.PREVIEW
|
||||
elseif node.type == "root" then
|
||||
|
|
Loading…
Reference in a new issue