Skip to content

Commit 2fdacf7

Browse files
feat: support variable last_indent_marker width (#218)
docs: fix typos on the CONTRIBUTING page
1 parent dd014cc commit 2fdacf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is open for debate, but here is the current style choices being observed:
1313
- BUT we don't currently have any OOP parts and I don't think we want any
1414

1515
I prefer `local name = function()` over `local function name()`, just to be
16-
consistant with the `M.name = function()` exports.
16+
consistent with the `M.name = function()` exports.
1717

1818
### StyLua
1919

@@ -51,7 +51,7 @@ current strategy is to maintain:
5151
in comments
5252
- The README contains "back of the box" high level overview of features. It is
5353
meant for people trying to decide if they want to install this plugin or not.
54-
It should include refrences to the help file for more information:
54+
It should include references to the help file for more information:
5555
`:h neo-tree-setup`
5656
- The vim help file [doc/neo-tree.txt](doc/neo-tree.txt) is the definitive
5757
reference and should contain all information needed to configure and use the

lua/neo-tree/sources/common/components.lua

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ M.indent = function(config, node, state)
324324
highlight = expander_highlight
325325
elseif node.is_last_child then
326326
char = last_indent_marker
327+
spaces_count = spaces_count - (vim.api.nvim_strwidth(last_indent_marker) - 1)
327328
end
328329
end
329330
end

0 commit comments

Comments
 (0)