mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
refactor: use vim.fs.joinpath
This commit is contained in:
parent
eb1b6ec542
commit
5aa2984a02
7 changed files with 28 additions and 39 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue