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

55 lines
1.0 KiB
Lua
Raw Normal View History

2024-08-07 05:36:20 +00:00
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
dependencies = { "williamboman/mason.nvim" },
config = function()
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-08-07 05:36:20 +00:00
end,
},
}