style(vim): add lua style and luacheck and format lsp config again

This commit is contained in:
Ade Attwood 2022-12-22 20:41:30 +00:00
parent 2670607006
commit 615413d6e2
3 changed files with 59 additions and 41 deletions

12
.luacheckrc Normal file
View file

@ -0,0 +1,12 @@
-- Rerun tests only if their modification time changed.
cache = true
std = luajit
codes = true
self = false
-- Global objects defined by the C code
read_globals = {
"vim",
}

6
.stylua.toml Normal file
View file

@ -0,0 +1,6 @@
column_width = 120
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "None"

View file

@ -1,4 +1,4 @@
local lspconfig = require("lspconfig") local lspconfig = require "lspconfig"
local servers = { local servers = {
-- Language servers for the day to day web development, could probably think -- Language servers for the day to day web development, could probably think