refactor(config): no trailing slash in installdir

This commit is contained in:
Christian Clason
2026-03-12 10:06:58 +01:00
committed by Christian Clason
parent 88a217f570
commit f873ec2955
2 changed files with 2 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ M.tiers = { 'stable', 'unstable', 'unmaintained', 'unsupported' }
---@type TSConfig
local config = {
install_dir = vim.fs.joinpath(vim.fn.stdpath('data') --[[@as string]], 'site/'),
install_dir = vim.fs.joinpath(vim.fn.stdpath('data') --[[@as string]], 'site'),
}
---Setup call for users to override configuration configurations.

View File

@@ -95,11 +95,7 @@ local function install_health()
else
health.error('is not writable.')
end
if
vim.iter(vim.api.nvim_list_runtime_paths()):any(function(p)
return installdir == vim.fs.normalize(p) .. '/'
end)
then
if vim.list_contains(vim.api.nvim_list_runtime_paths(), installdir) then
health.ok('is in runtimepath.')
else
health.error('is not in runtimepath.')