[ADD] lua language config and ad sty config to root dir
This commit is contained in:
@@ -12,7 +12,8 @@ return {
|
||||
css = { "biome" },
|
||||
javascript = { "biome" },
|
||||
sql = { "pg_format" },
|
||||
yaml = {"hydra_lsp"}
|
||||
yaml = {"hydra_lsp"},
|
||||
lua = {"stylua"}
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
|
||||
43
lua/plugins/langs/lua/nvim-lspconfig.lua
Normal file
43
lua/plugins/langs/lua/nvim-lspconfig.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user