aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-02-06 21:53:16 +0200
committersrdusr <trevorgray@srdusr.com>2023-02-06 21:53:16 +0200
commitea073e2f436a25bc0f5b8879982a2555fd37b3c3 (patch)
tree54f0c1f2a75f0efdf56aa6ea99a0591569252ca9 /lua/plugins
parentfb91ce48ba6887dc1fd896b020735c8d5cda107c (diff)
downloaddotfiles-ea073e2f436a25bc0f5b8879982a2555fd37b3c3.tar.gz
dotfiles-ea073e2f436a25bc0f5b8879982a2555fd37b3c3.zip
Clean config
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/mason.lua28
1 files changed, 12 insertions, 16 deletions
diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua
index a28551b..f2ec631 100644
--- a/lua/plugins/mason.lua
+++ b/lua/plugins/mason.lua
@@ -1,23 +1,19 @@
-local status, mason = pcall(require, "mason")
-if (not status) then return end
-local status2, lspconfig = pcall(require, "mason-lspconfig")
-if (not status2) then return end
-local status3, lspconfig = pcall(require, "lspconfig")
-if (not status3) then return end
+-- Setup mason so it can manage external tooling
+require('mason').setup()
-mason.setup({
+-- Ensure the servers above are installed
+require("mason-lspconfig").setup({
+ ensure_installed = {
+ "pylsp",
+ "pyright",
+ "clangd",
+ "sumneko_lua",
+ "vim-language-server",
+ }
})
-lspconfig.setup {
- ensure_installed = {
- "pylsp",
- "pyright",
- "clangd",
- "sumneko_lua",
- "vim-language-server",
- }
-}
+
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true }