neovim: Replace packer with lazy.nvim
This commit is contained in:
@@ -28,79 +28,13 @@ vim.opt.mouse = 'a' -- " Enable mouse in all modes.
|
||||
--
|
||||
-- Packer
|
||||
--
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
require'packer'.startup(function()
|
||||
-- Packer can manage itself
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'mfussenegger/nvim-dap'
|
||||
use 'airblade/vim-gitgutter'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'dense-analysis/ale'
|
||||
use 'liuchengxu/vista.vim' -- Tag bar.
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate'
|
||||
}
|
||||
|
||||
-- Git.
|
||||
use 'tpope/vim-fugitive'
|
||||
use {
|
||||
'sindrets/diffview.nvim',
|
||||
requires = {'nvim-lua/plenary.nvim'}
|
||||
}
|
||||
|
||||
-- File browser.
|
||||
use {
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = {'nvim-tree/nvim-web-devicons'} -- optional, for file icon
|
||||
}
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {'nvim-lua/plenary.nvim'}
|
||||
}
|
||||
use 'nvim-telescope/telescope-ui-select.nvim'
|
||||
use {
|
||||
'kevinhwang91/nvim-ufo',
|
||||
requires = {'kevinhwang91/promise-async'}
|
||||
}
|
||||
|
||||
-- Theme.
|
||||
use 'sainnhe/sonokai'
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = {'nvim-tree/nvim-web-devicons'} -- optional, for status line icons
|
||||
}
|
||||
|
||||
-- Syntax.
|
||||
use 'leafOfTree/vim-vue-plugin'
|
||||
use 'mfussenegger/nvim-jdtls'
|
||||
use 'dart-lang/dart-vim-plugin'
|
||||
use {
|
||||
'akinsho/flutter-tools.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
}
|
||||
}
|
||||
use 'vim-vdebug/vdebug'
|
||||
|
||||
-- nvim-cmp
|
||||
use 'dcampos/nvim-snippy'
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
use 'hrsh7th/nvim-cmp'
|
||||
use 'dcampos/cmp-snippy'
|
||||
use 'hrsh7th/cmp-path'
|
||||
use 'hrsh7th/cmp-buffer'
|
||||
end)
|
||||
|
||||
require'plugins'
|
||||
require("config.lazy")
|
||||
require("config.plugins")
|
||||
require'lspserver'
|
||||
|
||||
--
|
||||
-- Theme
|
||||
--
|
||||
vim.cmd('colorscheme sonokai')
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- Mappings.
|
||||
|
||||
Reference in New Issue
Block a user