diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-03-12 10:06:58 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-03-14 19:19:10 +0100 |
| commit | f873ec2955098fc4b7c3abfe891bdd49fa7947e2 (patch) | |
| tree | 2d61a324aaf81e2cabc6d5931fa549864b401537 /lua | |
| parent | Show errors on `vim.system` failure (#8552) (diff) | |
| download | nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar.gz nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar.bz2 nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar.lz nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar.xz nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.tar.zst nvim-treesitter-f873ec2955098fc4b7c3abfe891bdd49fa7947e2.zip | |
refactor(config): no trailing slash in installdir
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/config.lua | 2 | ||||
| -rw-r--r-- | lua/nvim-treesitter/health.lua | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lua/nvim-treesitter/config.lua b/lua/nvim-treesitter/config.lua index ca8f9b73d..97fca649f 100644 --- a/lua/nvim-treesitter/config.lua +++ b/lua/nvim-treesitter/config.lua @@ -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. diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index ff0c0c0cf..2fcaea5a0 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -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.') |
