dotfiles/.config/nvim/lua/plugins/lspconfig.lua

56 lines
1.1 KiB
Lua
Raw Normal View History

2024-08-07 05:36:20 +00:00
return {
{
"williamboman/mason.nvim",
2024-11-06 20:46:00 +00:00
config = function()
2024-08-07 05:36:20 +00:00
require("mason").setup()
end,
2024-11-06 20:46:00 +00:00
},
2024-08-07 05:36:20 +00:00
{
"williamboman/mason-lspconfig.nvim",
dependencies = { "williamboman/mason.nvim" },
2024-11-06 20:46:00 +00:00
config = function()
2024-08-07 05:36:20 +00:00
require("mason-lspconfig").setup({
ensure_installed = {
"lua_ls",
"ruby_lsp",
"standardrb",
"terraformls",
"yamlls",
2024-10-08 22:47:20 +00:00
"pyright",
2024-08-07 05:36:20 +00:00
},
})
end,
},
{
"neovim/nvim-lspconfig",
dependencies = { "williamboman/mason-lspconfig.nvim" },
config = function()
local lspconfig = require("lspconfig")
lspconfig.ruby_lsp.setup({})
lspconfig.standardrb.setup({})
lspconfig.bashls.setup({})
lspconfig.yamlls.setup({})
lspconfig.terraformls.setup({})
lspconfig.lua_ls.setup({
settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
format = {
defaultConfig = {
indent_style = "tabs",
indent_size = "4",
},
enable = true,
},
},
},
})
2024-10-08 22:47:20 +00:00
lspconfig.pyright.setup({})
2024-11-06 20:46:00 +00:00
lspconfig.gopls.setup({})
2024-08-07 05:36:20 +00:00
end,
},
}