diff --git a/conf/nvim/lua/plugins-options.lua b/conf/nvim/lua/plugins-options.lua index 6161fb3..1b5c6c6 100644 --- a/conf/nvim/lua/plugins-options.lua +++ b/conf/nvim/lua/plugins-options.lua @@ -11,3 +11,4 @@ require('plugins.cmp') require('plugins.gitsigns') require('plugins.lualine') require('plugins.nvimlint') +require('plugins.mason') diff --git a/conf/nvim/lua/plugins.lua b/conf/nvim/lua/plugins.lua index 9089c79..7d23703 100644 --- a/conf/nvim/lua/plugins.lua +++ b/conf/nvim/lua/plugins.lua @@ -19,7 +19,7 @@ require "paq" { -- LSP installer 'neovim/nvim-lspconfig'; - 'williamboman/nvim-lsp-installer'; + 'williamboman/mason.nvim'; -- autocompletion plugin 'hrsh7th/nvim-cmp'; diff --git a/conf/nvim/lua/plugins/lsp.lua b/conf/nvim/lua/plugins/lsp.lua index 27c9b9a..7c9834f 100644 --- a/conf/nvim/lua/plugins/lsp.lua +++ b/conf/nvim/lua/plugins/lsp.lua @@ -1,23 +1 @@ local lspconfig = require('lspconfig') - --- lsp installet --- -local lsp_installer = require("nvim-lsp-installer") - --- Register a handler that will be called for each installed server when it's --- ready (i.e. when installation is finished --- or if the server is already installed). -lsp_installer.on_server_ready(function(server) - local opts = {} - - -- (optional) Customize the options passed to the server - -- if server.name == "tsserver" then - -- opts.root_dir = function() ... end - -- end - - -- This setup() function will take the provided server configuration and - -- decorate it with the necessary properties before passing it onwards to - -- lspconfig Refer to : - -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md - server:setup(opts) -end) diff --git a/conf/nvim/lua/plugins/mason.lua b/conf/nvim/lua/plugins/mason.lua new file mode 100644 index 0000000..210ab98 --- /dev/null +++ b/conf/nvim/lua/plugins/mason.lua @@ -0,0 +1 @@ +local mason = require("mason").setup()