floating packer window, add diagnostics and buffer close plugins
This commit is contained in:
parent
48a866608d
commit
15c6db350f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user