[ADD] lua language config and ad sty config to root dir

This commit is contained in:
Daveanand Mannie
2026-01-12 11:36:23 -05:00
parent 301a265080
commit 6720c8c765
5 changed files with 46 additions and 9 deletions

View File

@@ -12,7 +12,8 @@ return {
css = { "biome" },
javascript = { "biome" },
sql = { "pg_format" },
yaml = {"hydra_lsp"}
yaml = {"hydra_lsp"},
lua = {"stylua"}
},
},
dependencies = {

View File

@@ -0,0 +1,43 @@
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
lua_ls = {
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
format = {
enable = true,
defaultConfig = {
indent_style = "space",
indent_size = "2",
max_line_length = "88",
},
},
diagnostics = {
globals = { "vim" },
},
workspace = {
library = {
vim.env.VIMRUNTIME,
},
checkThirdParty = false,
},
telemetry = {
enable = false,
},
},
},
},
},
setup = {
lua_ls = function()
require("snacks").util.lsp.on({ name = "lua_ls" }, function(_, client)
client.server_capabilities.hoverProvider = true
end)
end,
},
},
}