mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Use stylua for autoformat code (#1480)
This commit is contained in:
parent
90f15d9bf7
commit
be8f656087
32 changed files with 1181 additions and 979 deletions
|
|
@ -1,10 +1,10 @@
|
|||
-- Execute as `nvim --headless -c "luafile ./scripts/write-lockfile.lua"`
|
||||
local skip_langs = vim.fn.getenv('SKIP_LOCKFILE_UPDATE_FOR_LANGS')
|
||||
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"
|
||||
if skip_langs == vim.NIL then
|
||||
skip_langs = {}
|
||||
else
|
||||
skip_langs = vim.fn.split(skip_langs, ',')
|
||||
skip_langs = vim.fn.split(skip_langs, ",")
|
||||
end
|
||||
print("Skipping languages: "..vim.inspect(skip_langs))
|
||||
require 'nvim-treesitter.install'.write_lockfile('verbose', skip_langs)
|
||||
vim.cmd('q')
|
||||
print("Skipping languages: " .. vim.inspect(skip_langs))
|
||||
require("nvim-treesitter.install").write_lockfile("verbose", skip_langs)
|
||||
vim.cmd "q"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue