From 0a3dd9451a67d735fd7711cfae338f919e329380 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 9 Oct 2024 09:49:40 -0700 Subject: [PATCH] [nvim] Remove unused _addPathToRuntimePath function --- config/nvim/init.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/nvim/init.lua b/config/nvim/init.lua index d57d195..6830c07 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -14,20 +14,6 @@ function gitTopLevelDirectory() return gitRepoTopLevelDirectoryPath end -local function _addPathToRuntimePath(path, options) - if string.len(path) == 0 then - return - end - - if vim.fn.isdirectory(path) == 1 then - if options.prepend then - vim.opt.runtimepath:prepend(path) - else - vim.opt.runtimepath:append(path) - end - end -end - function addGitTopLevelDirectoryToRuntimePath() local gitTopLevelPath = gitTopLevelDirectory() if gitTopLevelPath == nil or string.len(gitTopLevelPath) == 0 then