diff options
Diffstat (limited to 'lua/nvim-lsp-installer/path.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/path.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/path.lua b/lua/nvim-lsp-installer/path.lua index 97e3ed20..25498beb 100644 --- a/lua/nvim-lsp-installer/path.lua +++ b/lua/nvim-lsp-installer/path.lua @@ -35,4 +35,10 @@ function M.realpath(relpath, depth) return M.concat { vim.fn.fnamemodify(callsite_abs_path, ":h"), relpath } end +function M.is_subdirectory(root_path, path) + return path:find(root_path) == 1 +end + +M.SERVERS_ROOT_DIR = M.concat { vim.fn.stdpath "data", "lsp_servers" } + return M |
