Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 50 additions & 2 deletions .codebook.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,64 @@
words = [
"nvim's",
"glab",
"autocmd",
"bigfile",
"keymapdoc",
"bufferline",
"bufmap",
"bufnr",
"buftype",
"catppuccin",
"codelenses",
"copyfile",
"devenv",
"direnv",
"errnm",
"etype",
"filecopy",
"fileformat",
"filekey",
"fnamemodify",
"gitsigns",
"glab",
"globalstatus",
"gopls",
"hardlinks",
"inlinedoc",
"isdirectory",
"iswin",
"joinpath",
"justinmk",
"keymaps",
"lazygit",
"lnum",
"lpeg",
"luacheck",
"lualine",
"luarc",
"neotest",
"neovim",
"netrw",
"nvim",
"nvim's",
"oldfiles",
"performantly",
"pyproject",
"pyright",
"quickfile",
"readblob",
"realpath",
"relpath",
"ripgrep",
"scandir",
"startinsert",
"statuscolumn",
"statusline",
"stdpath",
"stylua",
"sysname",
"tabline",
"tmux",
"tst",
"unc",
"winbar",
"xdg",
]
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ plugin/packer_compiled.lua
spell/

# Caches
.aider.tags.cache.v4/
.luac
*.swp
*.swo
*~
tags
*.cache
*.cache.*
*.history

# OS
.DS_Store
Expand Down
3 changes: 3 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"workspace.checkThirdParty": "Disable"
}
60 changes: 1 addition & 59 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
repos:
# General file formatting and linting
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -19,68 +20,9 @@ repos:
- id: stylua-github
args: [--config-path=stylua.toml]

# # Lua linting with Luacheck
# - repo: https://github.com/luarocks/luacheck
# rev: v1.2.0
# hooks:
# - id: luacheck
# args: [--config=.luacheckrc]

# Conventional commit messages
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]

# Additional security checks
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [--baseline, .secrets.baseline]
exclude: (package.lock.json|lazy-lock.json)

# Neovim config validation
- repo: local
hooks:
- id: validate-nvim-config
name: Validate Neovim Config
entry: scripts/validate.sh
language: script
files: ^(lua/.*\.lua|init\.lua)$
pass_filenames: false

- id: check-lua-syntax
name: Check Lua Syntax
entry: bash -c 'for f in "$@"; do luac -p "$f" || exit 1; done' --
language: system
files: \.lua$
types: [lua]

# Auto-documentation generation
- repo: local
hooks:
- id: generate-plugin-docs
name: Generate Plugin Documentation
entry: nvim -l scripts/generate-docs.lua
language: system
files: ^lua/plugins/.*\.lua$
pass_filenames: false
stages: [post-commit]

- id: update-readme-plugins
name: Update README with Plugin List
entry: nvim -l scripts/update-readme.lua
language: system
files: ^lua/plugins/.*\.lua$
pass_filenames: false
stages: [post-commit]

- id: extract-keybindings
name: Extract Keybindings Documentation
entry: nvim -l scripts/extract-keybindings.lua
language: system
files: ^lua/.*\.lua$
pass_filenames: false
stages: [post-commit]
103 changes: 0 additions & 103 deletions Makefile

This file was deleted.

Loading
Loading