feat: run pre-commit
This commit is contained in:
parent
657575ae30
commit
8f4693452a
4 changed files with 7 additions and 4 deletions
2
.github/workflows/luarocks.yaml
vendored
2
.github/workflows/luarocks.yaml
vendored
|
|
@ -3,7 +3,7 @@ name: luarocks
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
|
|
||||||
2
.github/workflows/quality.yaml
vendored
2
.github/workflows/quality.yaml
vendored
|
|
@ -82,7 +82,7 @@ jobs:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: "20"
|
||||||
- name: Install prettier
|
- name: Install prettier
|
||||||
run: pnpm add -g prettier@3.1.0
|
run: pnpm add -g prettier@3.1.0
|
||||||
- name: Check markdown formatting with prettier
|
- name: Check markdown formatting with prettier
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
minimum_pre_commit_version: '3.5.0'
|
minimum_pre_commit_version: "3.5.0"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,10 @@ local function init()
|
||||||
local user_config = vim.g.live_server or {}
|
local user_config = vim.g.live_server or {}
|
||||||
config = vim.tbl_deep_extend('force', defaults, user_config)
|
config = vim.tbl_deep_extend('force', defaults, user_config)
|
||||||
|
|
||||||
if not vim.fn.executable('live-server') and not (is_windows() and vim.fn.executable('live-server.cmd')) then
|
if
|
||||||
|
not vim.fn.executable('live-server')
|
||||||
|
and not (is_windows() and vim.fn.executable('live-server.cmd'))
|
||||||
|
then
|
||||||
log('live-server is not executable. Ensure the npm module is properly installed', 'ERROR')
|
log('live-server is not executable. Ensure the npm module is properly installed', 'ERROR')
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue