mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
ci: add formatting check ci
This commit is contained in:
20
.github/workflows/ci.yml
vendored
Normal file
20
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
format_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: lua format check
|
||||
uses: JohnnyMorganz/stylua-action@1.0.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --color always --check lua/
|
||||
|
||||
5
.stylua.toml
Normal file
5
.stylua.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
column_width = 100
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
quote_style = "AutoPreferDouble"
|
||||
@@ -1,7 +1,7 @@
|
||||
local M = {}
|
||||
local config = {
|
||||
position = "right",
|
||||
width = vim.api.nvim_get_option("columns") / 3,
|
||||
width = 40,
|
||||
}
|
||||
|
||||
M.setup = function(conf)
|
||||
|
||||
Reference in New Issue
Block a user