refactor: use vim.fs.joinpath

This commit is contained in:
Christian Clason 2023-05-20 17:38:33 +02:00
parent eb1b6ec542
commit 5aa2984a02
7 changed files with 28 additions and 39 deletions

View file

@ -2,7 +2,7 @@
vim.opt.runtimepath:append('.')
-- Load previous lockfile
local filename = require('nvim-treesitter.utils').get_package_path('lockfile.json')
local filename = require('nvim-treesitter.shell_cmds').get_package_path('lockfile.json')
local file = assert(io.open(filename, 'r'))
local lockfile = vim.json.decode(file:read('*a'))
file:close()