From 15c6db350fc3b73b8bf8336c179e9e5629972fad Mon Sep 17 00:00:00 2001 From: Akos Horvath Date: Tue, 14 Feb 2023 20:20:12 +0100 Subject: [PATCH] floating packer window, add diagnostics and buffer close plugins --- lua/plugin.lua | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lua/plugin.lua b/lua/plugin.lua index 70997ba..8b0b2bc 100644 --- a/lua/plugin.lua +++ b/lua/plugin.lua @@ -7,7 +7,7 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.cmd [[packadd packer.nvim]] end -require('packer').startup(function(use) +require('packer').startup({function(use) -- Package manager use 'wbthomason/packer.nvim' @@ -25,6 +25,18 @@ require('packer').startup(function(use) 'folke/neodev.nvim', }, } + -- lsp diagnostics + use { + "folke/trouble.nvim", + requires = "nvim-tree/nvim-web-devicons", + config = function() + require("trouble").setup { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + } + end + } use { -- Autocompletion 'hrsh7th/nvim-cmp', @@ -81,6 +93,9 @@ require('packer').startup(function(use) -- bufferline use {'akinsho/bufferline.nvim', tag = "v3.*", requires = 'nvim-tree/nvim-web-devicons'} + -- close buffers + use {'ojroques/nvim-bufdel'} + -- toggleterm use {"akinsho/toggleterm.nvim", tag = '*', config = function() require("toggleterm").setup{ @@ -128,7 +143,12 @@ require('packer').startup(function(use) if is_bootstrap then require('packer').sync() end -end) +end, +config = { + display = { + open_fn = require('packer.util').float, + } +}}) -- When we are bootstrapping a configuration, it doesn't -- make sense to execute the rest of the init.lua.