update nvim
This commit is contained in:
parent
3338d39206
commit
786b0e0970
31 changed files with 2204 additions and 15 deletions
9
lua/phoenix/utils/char_at.lua
Normal file
9
lua/phoenix/utils/char_at.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Helper function to return a character from a string.
|
||||
-- @param str {string}
|
||||
-- @param index {number}
|
||||
-- @returns {string}
|
||||
local char_at = function(str, index)
|
||||
return string.sub(str, index, index)
|
||||
end
|
||||
|
||||
return char_at
|
||||
Loading…
Add table
Add a link
Reference in a new issue