mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
refactor(config): no trailing slash in installdir
This commit is contained in:
committed by
Christian Clason
parent
88a217f570
commit
f873ec2955
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user