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
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue