chore: rename lib folder to nvim-tree

Allows external access to the lua api and follow neovim plugins better
practices
This commit is contained in:
kiyan
2021-02-22 21:02:02 +01:00
committed by Kiyan
parent f070d0a32f
commit 0136801444
9 changed files with 17 additions and 17 deletions

14
lua/nvim-tree/utils.lua Normal file
View File

@@ -0,0 +1,14 @@
local M = {}
local api = vim.api
function M.path_to_matching_str(path)
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
end
function M.echo_warning(msg)
api.nvim_command('echohl WarningMsg')
api.nvim_command("echom '[NvimTree] "..msg:gsub("'", "''").."'")
api.nvim_command('echohl None')
end
return M