summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/lsp
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-09-24 09:00:56 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-09-24 09:00:56 -0400
commit7af7475ebbb47e376286866accb9c1822237e6de (patch)
tree9b65aa1a2f20c2f811a06392f9fe4c067a2cdc8d /lua/ben/plugins/lsp
parent273545e803d66b626eeec19ec225c336957c23f1 (diff)
V4 of my lua config
Diffstat (limited to 'lua/ben/plugins/lsp')
-rw-r--r--lua/ben/plugins/lsp/mason.lua101
1 files changed, 51 insertions, 50 deletions
diff --git a/lua/ben/plugins/lsp/mason.lua b/lua/ben/plugins/lsp/mason.lua
index c1a3c10..6ea32cc 100644
--- a/lua/ben/plugins/lsp/mason.lua
+++ b/lua/ben/plugins/lsp/mason.lua
@@ -1,57 +1,58 @@
return {
- "williamboman/mason.nvim",
- dependencies = {
- "williamboman/mason-lspconfig.nvim",
- "jayp0521/mason-null-ls.nvim",
- },
- config = function()
- -- import mason
- local mason = require("mason")
+ "williamboman/mason.nvim",
+ event = "VeryLazy",
+ dependencies = {
+ "williamboman/mason-lspconfig.nvim",
+ "jayp0521/mason-null-ls.nvim",
+ },
+ config = function()
+ -- import mason
+ local mason = require("mason")
- -- import mason-lspconfig
- local mason_lspconfig = require("mason-lspconfig")
+ -- import mason-lspconfig
+ local mason_lspconfig = require("mason-lspconfig")
- -- import mason-null-ls
- local mason_null_ls = require("mason-null-ls")
+ -- import mason-null-ls
+ local mason_null_ls = require("mason-null-ls")
- -- enable mason and configure icons
- mason.setup({
- ui = {
- icons = {
- package_installed = "✓",
- package_pending = "➜",
- package_uninstalled = "✗"
- }
- }
- })
+ -- enable mason and configure icons
+ mason.setup({
+ ui = {
+ icons = {
+ package_installed = "✓",
+ package_pending = "➜",
+ package_uninstalled = "✗",
+ },
+ },
+ })
- mason_lspconfig.setup({
- -- list of servers for mason to install
- ensure_installed = {
- "tsserver",
- "html",
- "cssls",
- "tailwindcss",
- "svelte",
- "lua_ls",
- "graphql",
- "emmet_ls",
- "prismals",
- "pyright"
- },
- -- auto-install configured servers (with lspconfig)
- automatic_installation = true, -- not the same as ensure_installed
- })
+ mason_lspconfig.setup({
+ -- list of servers for mason to install
+ ensure_installed = {
+ "tsserver",
+ "html",
+ "cssls",
+ "tailwindcss",
+ "svelte",
+ "lua_ls",
+ "graphql",
+ "emmet_ls",
+ "prismals",
+ "pyright",
+ },
+ -- auto-install configured servers (with lspconfig)
+ automatic_installation = true, -- not the same as ensure_installed
+ })
- mason_null_ls.setup({
- -- list of formatters & linters for mason to install
- ensure_installed = {
- "prettier", -- ts/js formatter
- "stylua", -- lua formatter
- "eslint_d", -- ts/js linter
- },
- -- auto-install configured servers (with lspconfig)
- automatic_installation = true,
- })
- end,
+ mason_null_ls.setup({
+ -- list of formatters & linters for mason to install
+ ensure_installed = {
+ "prettier", -- ts/js formatter
+ "stylua", -- lua formatter
+ "eslint_d", -- ts/js linter
+ },
+ -- auto-install configured servers (with lspconfig)
+ automatic_installation = true,
+ })
+ end,
}