feat(plugins): clean up
This commit is contained in:
parent
ee77ff2606
commit
6e21b1de74
2 changed files with 13 additions and 9 deletions
8
init.lua
8
init.lua
|
@ -2,6 +2,14 @@ if not vim.fn.has('nvim-0.6') then
|
|||
error('Need NVIM 0.6 in order to run Cosmic!!')
|
||||
end
|
||||
|
||||
do
|
||||
local ok, _ = pcall(require, 'impatient')
|
||||
|
||||
if not ok then
|
||||
vim.notify('impatient.nvim not installed', vim.log.levels.WARN)
|
||||
end
|
||||
end
|
||||
|
||||
local ok, err = pcall(require, 'cosmic')
|
||||
|
||||
if not ok then
|
||||
|
|
|
@ -28,19 +28,13 @@ if not vim.tbl_islist(user_plugins.disable) then
|
|||
end
|
||||
|
||||
return packer.startup(function()
|
||||
use('wbthomason/packer.nvim')
|
||||
|
||||
use({
|
||||
'wbthomason/packer.nvim',
|
||||
'lewis6991/impatient.nvim',
|
||||
config = function()
|
||||
require('impatient')
|
||||
end,
|
||||
'nathom/filetype.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
})
|
||||
|
||||
use('nathom/filetype.nvim')
|
||||
|
||||
use({ 'nvim-lua/plenary.nvim' })
|
||||
|
||||
use({ -- color scheme
|
||||
'folke/tokyonight.nvim',
|
||||
config = function()
|
||||
|
@ -58,6 +52,7 @@ return packer.startup(function()
|
|||
|
||||
use({
|
||||
'rcarriga/nvim-notify',
|
||||
opt = true,
|
||||
config = function()
|
||||
local icons = require('cosmic.core.theme.icons')
|
||||
require('notify').setup({
|
||||
|
@ -160,6 +155,7 @@ return packer.startup(function()
|
|||
use({
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = { 'nvim-lua/plenary.nvim' },
|
||||
opt = true,
|
||||
event = 'BufRead',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
|
|
Loading…
Add table
Reference in a new issue