214 lines
5.6 KiB
Lua
214 lines
5.6 KiB
Lua
--[[
|
|
Copyright 2023 Oscar Wallberg
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
]]
|
|
|
|
vim.loader.enable()
|
|
|
|
local plugins = {
|
|
{
|
|
'Mofiqul/vscode.nvim',
|
|
priority = 1000,
|
|
lazy = false,
|
|
config = function() require('config.vscode') end
|
|
},
|
|
{
|
|
'rafamadriz/friendly-snippets',
|
|
},
|
|
{
|
|
'L3MON4D3/LuaSnip',
|
|
config = function() require('config.luasnip') end,
|
|
-- dependencies = { 'rafamadriz/friendly-snippets' },
|
|
-- comment out on windows and install jsregexp manually
|
|
build = "make install_jsregexp",
|
|
version = "2.*",
|
|
},
|
|
{
|
|
'windwp/nvim-autopairs',
|
|
config = function() require('config.nvim-autopairs') end
|
|
},
|
|
{
|
|
'saadparwaiz1/cmp_luasnip',
|
|
},
|
|
{
|
|
'hrsh7th/cmp-buffer',
|
|
},
|
|
{
|
|
'hrsh7th/cmp-path',
|
|
},
|
|
{
|
|
'hrsh7th/cmp-cmdline',
|
|
},
|
|
{
|
|
'onsails/lspkind-nvim',
|
|
},
|
|
{
|
|
'hrsh7th/nvim-cmp',
|
|
-- dependencies = {
|
|
-- 'L3MON4D3/LuaSnip',
|
|
-- 'windwp/nvim-autopairs',
|
|
-- 'saadparwaiz1/cmp_luasnip',
|
|
-- 'hrsh7th/cmp-buffer',
|
|
-- 'hrsh7th/cmp-path',
|
|
-- 'hrsh7th/cmp-cmdline',
|
|
-- 'onsails/lspkind-nvim',
|
|
-- },
|
|
config = function() require('config.nvim-cmp') end
|
|
},
|
|
{
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
-- dependencies = {
|
|
-- 'hrsh7th/nvim-cmp'
|
|
-- },
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
config = function() require('config.mason') end
|
|
},
|
|
{
|
|
'williamboman/mason-lspconfig.nvim',
|
|
config = function() require('config.mason-lspconfig') end,
|
|
-- dependencies = { 'williamboman/mason.nvim' },
|
|
},
|
|
{
|
|
'ray-x/lsp_signature.nvim',
|
|
event = "VeryLazy",
|
|
config = function() require('config.lsp_signature') end
|
|
},
|
|
{
|
|
'neovim/nvim-lspconfig',
|
|
config = function() require('lsp'):setup() end,
|
|
lazy = true,
|
|
ft = require('lsp'):filetypes(),
|
|
-- dependencies = {
|
|
-- 'williamboman/mason-lspconfig.nvim',
|
|
-- 'ray-x/lsp_signature.nvim',
|
|
-- 'hrsh7th/cmp-nvim-lsp'
|
|
-- },
|
|
},
|
|
{
|
|
'nvim-treesitter/nvim-treesitter',
|
|
config = function() require('config.nvim-treesitter') end,
|
|
lazy = true,
|
|
event = 'VimEnter',
|
|
build = ':TSUpdate'
|
|
},
|
|
{
|
|
'mfussenegger/nvim-dap',
|
|
config = function() require('config.nvim-dap') end,
|
|
lazy = true,
|
|
ft = require('lsp'):filetypes(),
|
|
},
|
|
{
|
|
'rcarriga/nvim-dap-ui',
|
|
-- dependencies = { 'mfussenegger/nvim-dap' },
|
|
config = function() require('config.nvim-dap-ui') end
|
|
},
|
|
{
|
|
'kyazdani42/nvim-web-devicons'
|
|
},
|
|
{
|
|
'tpope/vim-fugitive',
|
|
config = function() require('config.fugitive') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'rbong/vim-flog',
|
|
-- dependencies = { 'tpope/vim-fugitive' },
|
|
config = function() require('config.flog') end
|
|
},
|
|
{
|
|
'nvim-lualine/lualine.nvim',
|
|
-- dependencies = { 'kyazdani42/nvim-web-devicons', 'vim-fugitive' },
|
|
config = function() require('config.lualine') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'akinsho/bufferline.nvim',
|
|
-- dependencies = { 'kyazdani42/nvim-web-devicons' },
|
|
config = function() require('config.bufferline') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'nvim-lua/plenary.nvim'
|
|
},
|
|
{
|
|
'lewis6991/gitsigns.nvim',
|
|
-- dependencies = { 'nvim-lua/plenary.nvim' },
|
|
config = function() require('config.gitsigns') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'nvim-telescope/telescope.nvim',
|
|
-- dependencies = { 'nvim-lua/plenary.nvim' },
|
|
config = function() require('config.telescope') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'numToStr/Comment.nvim',
|
|
config = function() require('config.comment') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'Yggdroot/indentLine',
|
|
config = function() require('config.indentLine') end,
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'simeji/winresizer',
|
|
config = function() require('config.winresizer') end,
|
|
lazy = true,
|
|
keys = { '<C-W>r' }
|
|
},
|
|
{
|
|
'sindrets/winshift.nvim',
|
|
config = function() require('config.winshift') end,
|
|
lazy = true,
|
|
keys = { '<C-W>m' }
|
|
},
|
|
{
|
|
'martinda/Jenkinsfile-vim-syntax',
|
|
lazy = true,
|
|
ft = { 'jenkinsfile', 'Jenkinsfile' }
|
|
},
|
|
{
|
|
'kyazdani42/nvim-tree.lua',
|
|
config = function() require('config.nvim-tree') end
|
|
},
|
|
{
|
|
'dstein64/vim-startuptime',
|
|
lazy = true,
|
|
event = 'VimEnter'
|
|
},
|
|
{
|
|
'stevearc/aerial.nvim',
|
|
config = function() require('config.aerial') end
|
|
}
|
|
}
|
|
|
|
local opts = {
|
|
-- defaults = {
|
|
-- lazy = true
|
|
-- }
|
|
}
|
|
|
|
require('lazy').setup(plugins, opts)
|