2023-01-20 17:57:58 +00:00
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
vim.fn.system({
|
2022-10-01 11:46:18 +00:00
|
|
|
"git",
|
|
|
|
"clone",
|
2023-01-20 17:57:58 +00:00
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable", -- latest stable release
|
|
|
|
lazypath,
|
2022-10-01 11:46:18 +00:00
|
|
|
})
|
|
|
|
end
|
2023-01-20 17:57:58 +00:00
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
vim.g.maplocalleader = " "
|
2022-10-01 11:46:18 +00:00
|
|
|
|
2023-01-20 17:57:58 +00:00
|
|
|
local status_ok, lazy = pcall(require, "lazy")
|
2022-10-01 11:46:18 +00:00
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-01-21 11:35:30 +00:00
|
|
|
local lazy_opts = {
|
|
|
|
ui = {
|
|
|
|
border = "rounded",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2023-01-20 17:57:58 +00:00
|
|
|
lazy.setup({
|
|
|
|
-- Colorschemes
|
|
|
|
{
|
|
|
|
"folke/tokyonight.nvim",
|
|
|
|
lazy = false,
|
|
|
|
priority = 1000,
|
|
|
|
config = function()
|
|
|
|
require("tokyonight").setup({
|
|
|
|
style = "moon",
|
|
|
|
styles = {
|
|
|
|
sidebars = "normal",
|
|
|
|
floats = "normal",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.cmd([[colorscheme tokyonight]])
|
2022-10-01 11:46:18 +00:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
-- Plugins
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "nvim-lua/plenary.nvim", lazy = true },
|
2023-02-04 13:59:28 +00:00
|
|
|
{ "echasnovski/mini.starter", lazy = "VimEnter", version = "*" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "windwp/nvim-autopairs" },
|
|
|
|
{ "numToStr/Comment.nvim", version = "v0.*" },
|
|
|
|
{ "JoosepAlviste/nvim-ts-context-commentstring" },
|
2023-02-04 13:59:28 +00:00
|
|
|
{ "nvim-tree/nvim-web-devicons", lazy = true },
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "akinsho/bufferline.nvim", event = "VeryLazy", version = "v3.*" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "moll/vim-bbye" },
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "nvim-lualine/lualine.nvim", event = "VeryLazy" },
|
|
|
|
{ "lukas-reineke/indent-blankline.nvim", event = "BufReadPost", version = "v2.*" },
|
|
|
|
{ "nvim-zh/auto-save.nvim", event = "BufReadPost" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "gelguy/wilder.nvim" },
|
|
|
|
{ "romgrk/fzy-lua-native" },
|
|
|
|
{ "mg979/vim-visual-multi", version = "v0.*" },
|
|
|
|
{ "gnikdroy/projections.nvim" },
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "nvim-treesitter/nvim-treesitter", event = "BufReadPost" },
|
|
|
|
{ "ray-x/sad.nvim", cmd = "Sad" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{
|
2022-10-01 11:46:18 +00:00
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
2023-01-21 11:35:30 +00:00
|
|
|
version = "v2.x",
|
2023-01-20 17:57:58 +00:00
|
|
|
dependencies = { "MunifTanjim/nui.nvim" },
|
|
|
|
},
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "taybart/b64.nvim", event = "VeryLazy" },
|
2023-02-16 18:48:08 +00:00
|
|
|
{ "echasnovski/mini.align", event = "VeryLazy", version = "*" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- cmp plugins
|
2023-01-28 17:14:14 +00:00
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
event = "InsertEnter",
|
|
|
|
dependencies = {
|
|
|
|
"hrsh7th/cmp-buffer",
|
|
|
|
"hrsh7th/cmp-path",
|
|
|
|
"saadparwaiz1/cmp_luasnip",
|
|
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
|
|
},
|
|
|
|
},
|
2022-10-01 11:46:18 +00:00
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Snippets
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "L3MON4D3/LuaSnip", version = "v1.*" },
|
|
|
|
{ "rafamadriz/friendly-snippets" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- LSP
|
2023-02-15 19:26:06 +00:00
|
|
|
{ "neovim/nvim-lspconfig", event = "BufReadPre" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "williamboman/mason.nvim" },
|
|
|
|
{ "williamboman/mason-lspconfig.nvim" },
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "jose-elias-alvarez/null-ls.nvim", event = "BufReadPre" },
|
|
|
|
{ "RRethy/vim-illuminate", event = "BufReadPost" },
|
|
|
|
{ "folke/trouble.nvim", cmd = { "TroubleToggle", "Trouble" } },
|
|
|
|
{ "glepnir/lspsaga.nvim", event = "BufRead" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "arkav/lualine-lsp-progress" },
|
2023-02-15 19:26:06 +00:00
|
|
|
{ "someone-stole-my-name/yaml-companion.nvim", event = "BufRead" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- Telescope
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "nvim-telescope/telescope.nvim", cmd = "Telescope" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "nvim-telescope/telescope-ui-select.nvim" },
|
2023-02-15 19:26:06 +00:00
|
|
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- Git
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "lewis6991/gitsigns.nvim", event = "BufReadPre", version = "v0.*" },
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "sindrets/diffview.nvim" },
|
|
|
|
{ "f-person/git-blame.nvim" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- DAP
|
2023-01-28 17:14:14 +00:00
|
|
|
{ "mfussenegger/nvim-dap", event = "VeryLazy", version = "0.*" },
|
|
|
|
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v2.*" },
|
|
|
|
{ "ravenxrz/DAPInstall.nvim", event = "VeryLazy" },
|
|
|
|
{ "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" },
|
2022-10-01 11:46:18 +00:00
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Go
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "ray-x/go.nvim" },
|
|
|
|
{
|
2022-10-01 11:46:18 +00:00
|
|
|
"ray-x/guihua.lua",
|
2023-01-20 17:57:58 +00:00
|
|
|
build = "cd lua/fzy && make",
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
config = function()
|
|
|
|
require("guihua.maps").setup({
|
|
|
|
maps = { close_view = "<C-x>" },
|
|
|
|
})
|
|
|
|
end,
|
2023-01-20 17:57:58 +00:00
|
|
|
},
|
2022-10-01 11:46:18 +00:00
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Markdown
|
2023-01-20 17:57:58 +00:00
|
|
|
{ "mzlogin/vim-markdown-toc" },
|
|
|
|
{
|
2022-10-01 11:46:18 +00:00
|
|
|
"iamcco/markdown-preview.nvim",
|
2023-01-20 17:57:58 +00:00
|
|
|
build = "cd app && npm install",
|
|
|
|
init = function()
|
2022-10-01 11:46:18 +00:00
|
|
|
vim.g.mkdp_filetypes = { "markdown" }
|
|
|
|
end,
|
|
|
|
ft = { "markdown" },
|
2023-01-20 17:57:58 +00:00
|
|
|
},
|
2023-01-21 11:35:30 +00:00
|
|
|
}, lazy_opts)
|