From 8f4693452a2cea9b409111a342fef06b3368d67d Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 3 Feb 2026 21:03:18 -0500 Subject: [PATCH] feat: run pre-commit --- .github/workflows/luarocks.yaml | 2 +- .github/workflows/quality.yaml | 2 +- .pre-commit-config.yaml | 2 +- lua/live-server.lua | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/luarocks.yaml b/.github/workflows/luarocks.yaml index 5be8b55..95eaf0f 100644 --- a/.github/workflows/luarocks.yaml +++ b/.github/workflows/luarocks.yaml @@ -3,7 +3,7 @@ name: luarocks on: push: tags: - - 'v*' + - "v*" jobs: ci: diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 0b5ba56..bac492d 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41e4745..10afe3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/lua/live-server.lua b/lua/live-server.lua index 7499ddd..554080a 100644 --- a/lua/live-server.lua +++ b/lua/live-server.lua @@ -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