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:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
|
|
|
|||
2
.github/workflows/quality.yaml
vendored
2
.github/workflows/quality.yaml
vendored
|
|
@ -82,7 +82,7 @@ jobs:
|
|||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: "20"
|
||||
- name: Install prettier
|
||||
run: pnpm add -g prettier@3.1.0
|
||||
- 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:
|
||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@ local function init()
|
|||
local user_config = vim.g.live_server or {}
|
||||
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')
|
||||
return false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue