mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
refactor(config): no trailing slash in installdir
This commit is contained in:
parent
88a217f570
commit
f873ec2955
2 changed files with 2 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ M.tiers = { 'stable', 'unstable', 'unmaintained', 'unsupported' }
|
||||||
|
|
||||||
---@type TSConfig
|
---@type TSConfig
|
||||||
local config = {
|
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.
|
---Setup call for users to override configuration configurations.
|
||||||
|
|
|
||||||
|
|
@ -95,11 +95,7 @@ local function install_health()
|
||||||
else
|
else
|
||||||
health.error('is not writable.')
|
health.error('is not writable.')
|
||||||
end
|
end
|
||||||
if
|
if vim.list_contains(vim.api.nvim_list_runtime_paths(), installdir) then
|
||||||
vim.iter(vim.api.nvim_list_runtime_paths()):any(function(p)
|
|
||||||
return installdir == vim.fs.normalize(p) .. '/'
|
|
||||||
end)
|
|
||||||
then
|
|
||||||
health.ok('is in runtimepath.')
|
health.ok('is in runtimepath.')
|
||||||
else
|
else
|
||||||
health.error('is not in runtimepath.')
|
health.error('is not in runtimepath.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue