From 66eab261250b961269d13c91270f953ee8c44ba9 Mon Sep 17 00:00:00 2001 From: Imbus Date: Thu, 24 Nov 2022 13:33:16 +0100 Subject: [PATCH] idk --- init.lua | 7 +++++++ lua/plugins.lua | 10 ++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index bc36953..a12a51f 100644 --- a/init.lua +++ b/init.lua @@ -12,3 +12,10 @@ require('lualine').setup { -- Comment require('Comment').setup() + +-- Mason +require("mason").setup() +require("mason-lspconfig").setup({ + ensure_installed = { "rust_analyzer", "pylsp" }, + automatic_installation = true, +}) diff --git a/lua/plugins.lua b/lua/plugins.lua index d77c964..e9e4492 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,16 +1,18 @@ require('packer').startup(function(use) use 'wbthomason/packer.nvim' - use 'numToStr/Comment.nvim' + use 'neovim/lsp' use 'neovim/nvim-lspconfig' - use 'glepnir/dashboard-nvim' - use 'joshdick/onedark.vim' - use 'jiangmiao/auto-pairs' use { 'nvim-treesitter/nvim-treesitter', run = function() local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) ts_update() end, } + use 'williamboman/mason.nvim' + use 'williamboman/mason-lspconfig.nvim' + use 'hrsh7th/nvim-cmp' + use 'hrsh7th/cmp-nvim-lsp' use { 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } } + use 'numToStr/Comment.nvim' -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins