switched from packer to lazy
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
require('409.remap')
|
||||
require('409.set')
|
||||
require('409.autocmd')
|
||||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
require("409.set")
|
||||
require("409.remap")
|
||||
require("409.lazy")
|
||||
require("409.autocmd")
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
95
lua/409/lazy.lua
Normal file
95
lua/409/lazy.lua
Normal file
@@ -0,0 +1,95 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
{ "nvim-lua/plenary.nvim", priority = 100 },
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 90
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-tree-docs",
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
}
|
||||
},
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
"onsails/lspkind.nvim",
|
||||
"mbbill/undotree",
|
||||
"tpope/vim-fugitive",
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
{ "williamboman/mason.nvim" },
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
-- LSP Support
|
||||
"neovim/nvim-lspconfig",
|
||||
-- Autocompletion
|
||||
"hrsh7th/nvim-cmp",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-nvim-lsp-signature-help",
|
||||
"hrsh7th/cmp-nvim-lua",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
{
|
||||
"danymat/neogen",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
},
|
||||
{
|
||||
"akinsho/flutter-tools.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"stevearc/dressing.nvim", -- optional for vim.ui.select
|
||||
},
|
||||
},
|
||||
"RRethy/vim-illuminate",
|
||||
"numToStr/Comment.nvim",
|
||||
{
|
||||
"utilyre/barbecue.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"SmiteshP/nvim-navic",
|
||||
"nvim-tree/nvim-web-devicons", -- optional dependency
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -1,118 +0,0 @@
|
||||
vim.cmd.packadd("packer.nvim")
|
||||
|
||||
return require("packer").startup(function(use)
|
||||
use("wbthomason/packer.nvim")
|
||||
|
||||
use("nvim-lua/plenary.nvim")
|
||||
|
||||
use({
|
||||
"christoomey/vim-tmux-navigator",
|
||||
lazy = false,
|
||||
})
|
||||
|
||||
use({
|
||||
"nvim-telescope/telescope.nvim",
|
||||
requires = { { "nvim-lua/plenary.nvim" } },
|
||||
})
|
||||
|
||||
use({
|
||||
"catppuccin/nvim",
|
||||
as = "catppuccin",
|
||||
})
|
||||
|
||||
use("nvim-treesitter/nvim-treesitter", { run = ":TSUpdate" })
|
||||
use("nvim-treesitter/nvim-tree-docs")
|
||||
|
||||
use({
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
requires = { { "nvim-lua/plenary.nvim" } },
|
||||
})
|
||||
|
||||
use("onsails/lspkind.nvim")
|
||||
|
||||
use("mbbill/undotree")
|
||||
use("tpope/vim-fugitive")
|
||||
|
||||
use({
|
||||
"nvim-lualine/lualine.nvim",
|
||||
requires = { "nvim-tree/nvim-web-devicons", opt = true },
|
||||
})
|
||||
|
||||
use("williamboman/mason.nvim")
|
||||
|
||||
use("williamboman/mason-lspconfig.nvim")
|
||||
|
||||
-- LSP Support
|
||||
use("neovim/nvim-lspconfig")
|
||||
-- Autocompletion
|
||||
use("hrsh7th/nvim-cmp")
|
||||
use("hrsh7th/cmp-nvim-lsp")
|
||||
use("hrsh7th/cmp-nvim-lsp-signature-help")
|
||||
use("hrsh7th/cmp-nvim-lua")
|
||||
use("hrsh7th/cmp-buffer")
|
||||
use("hrsh7th/cmp-path")
|
||||
use("hrsh7th/cmp-cmdline")
|
||||
use("L3MON4D3/LuaSnip")
|
||||
|
||||
use("nvim-tree/nvim-web-devicons")
|
||||
|
||||
use({
|
||||
"danymat/neogen",
|
||||
requires = { "nvim-treesitter/nvim-treesitter" },
|
||||
})
|
||||
|
||||
use({
|
||||
"folke/todo-comments.nvim",
|
||||
dependencies = { "nvim-lua/plenary" },
|
||||
})
|
||||
|
||||
use({
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
})
|
||||
|
||||
use({
|
||||
"stevearc/conform.nvim",
|
||||
})
|
||||
|
||||
use({
|
||||
"akinsho/flutter-tools.nvim",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"stevearc/dressing.nvim", -- optional for vim.ui.select
|
||||
},
|
||||
})
|
||||
|
||||
use("RRethy/vim-illuminate")
|
||||
|
||||
use({
|
||||
"numToStr/Comment.nvim",
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
end,
|
||||
})
|
||||
--[[
|
||||
use({
|
||||
"lukas-reineke/headlines.nvim",
|
||||
after = "nvim-treesitter",
|
||||
config = function()
|
||||
require("headlines").setup()
|
||||
end,
|
||||
})
|
||||
]]
|
||||
|
||||
use("JoosepAlviste/nvim-ts-context-commentstring")
|
||||
|
||||
use({
|
||||
"utilyre/barbecue.nvim",
|
||||
tag = "*",
|
||||
requires = {
|
||||
"SmiteshP/nvim-navic",
|
||||
"nvim-tree/nvim-web-devicons", -- optional dependency
|
||||
},
|
||||
config = function()
|
||||
require("barbecue").setup()
|
||||
end,
|
||||
})
|
||||
end)
|
||||
@@ -1,4 +1,3 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
|
||||
Reference in New Issue
Block a user