Skip to content

Commit 50ba5b3

Browse files
committed
a
0 parents  commit 50ba5b3

6 files changed

Lines changed: 85 additions & 0 deletions

File tree

.github/workflows/doc.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: Generate Docs
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: panvimdoc
15+
uses: kdheepak/panvimdoc@main
16+
with:
17+
vimdoc: boilerplate
18+
version: "Neovim <= infinity(i think)"
19+
demojify: true
20+
treesitter: true
21+
- name: Push changes
22+
uses: stefanzweifel/git-auto-commit-action@v6
23+
with:
24+
commit_message: "chore: autgenerate vimdoc"
25+
commit_user_name: "github-actions[bot]"
26+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
27+
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/plugin/reload.vim

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## tiny.boilerplate
2+
a tiny boilerplate for a neovim plugin

doc/treesitter.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*boilerplate.txt* For Neovim <= infinity(i think) Last change: 2025 August 17
2+
3+
==============================================================================
4+
Table of Contents *boilerplate-table-of-contents*
5+
6+
- tiny.boilerplate |boilerplate-tiny.boilerplate|
7+
8+
TINY.BOILERPLATE *boilerplate-tiny.boilerplate*
9+
10+
a tiny boilerplate for a neovim plugin
11+
12+
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
13+
14+
vim:tw=78:ts=8:noet:ft=help:norl:

lua/tiny/treesitter.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
--[[
2+
the smallest pair plugin in the universe
3+
--]]
4+
5+
local M = {}
6+
7+
local config = {
8+
enabled = true,
9+
setup_indentexpr = true,
10+
}
11+
12+
function M.actualsetup()
13+
vim.api.nvim_create_autocmd("FileType", {
14+
pattern = { "*" },
15+
callback = function(args)
16+
require('nvim-treesitter').install({ vim.bo[args.buf].filetype })
17+
18+
pcall(vim.treesitter.start, args.buf)
19+
if config.setup_indentexpr then
20+
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
21+
end
22+
end,
23+
})
24+
end
25+
26+
function M.setup(opts)
27+
if opts then
28+
config = vim.tbl_deep_extend("force", config, opts)
29+
end
30+
31+
if config.enabled then
32+
M.actualsetup()
33+
end
34+
end
35+
36+
return M

stylua.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
indent_type = "Spaces"
2+
indent_width = 2
3+
column_width = 100
4+
quote_style = "AutoPreferDouble"
5+
no_call_parentheses = false

0 commit comments

Comments
 (0)