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:
parent
55331ee545
commit
0342a892fb
5 changed files with 29 additions and 6 deletions
9
.editorconfig
Normal file
9
.editorconfig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
|
||||
[*.lua]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,3 +1,5 @@
|
|||
doc/tags
|
||||
vim.toml
|
||||
selene.toml
|
||||
.*cache*
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
node_modules/
|
||||
|
|
|
|||
8
.luarc.json
Normal file
8
.luarc.json
Normal 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"
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
quote_style = "AutoPreferSingle"
|
||||
call_parentheses = "None"
|
||||
indent_type = "Spaces"
|
||||
column_width = 80
|
||||
8
stylua.toml
Normal file
8
stylua.toml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue