chore: update project configs to match cp.nvim

- Add .editorconfig
- Add .luarc.json for LSP support
- Rename .stylua.toml to stylua.toml
- Update .gitignore
This commit is contained in:
Barrett Ruth 2026-02-03 21:00:07 -05:00
parent 55331ee545
commit 0342a892fb
5 changed files with 29 additions and 6 deletions

9
.editorconfig Normal file
View file

@ -0,0 +1,9 @@
root = true
[*]
insert_final_newline = true
charset = utf-8
[*.lua]
indent_style = space
indent_size = 2

6
.gitignore vendored
View file

@ -1,3 +1,5 @@
doc/tags
vim.toml
selene.toml
.*cache*
CLAUDE.md
.claude/
node_modules/

8
.luarc.json Normal file
View file

@ -0,0 +1,8 @@
{
"runtime.version": "Lua 5.1",
"runtime.path": ["lua/?.lua", "lua/?/init.lua"],
"diagnostics.globals": ["vim"],
"workspace.library": ["$VIMRUNTIME/lua", "${3rd}/luv/library"],
"workspace.checkThirdParty": false,
"completion.callSnippet": "Replace"
}

View file

@ -1,4 +0,0 @@
quote_style = "AutoPreferSingle"
call_parentheses = "None"
indent_type = "Spaces"
column_width = 80

8
stylua.toml Normal file
View file

@ -0,0 +1,8 @@
column_width = 100
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
call_parentheses = "Always"
[sort_requires]
enabled = true