moved from packer to lazy
This commit is contained in:
+14
-6
@@ -126,7 +126,7 @@ end
|
||||
|
||||
function M.auto_session()
|
||||
require("auto-session").setup({
|
||||
auto_session_suppress_dirs = { "~/", "~/Projects" },
|
||||
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||
auto_session_use_git_branch = true,
|
||||
})
|
||||
|
||||
@@ -253,18 +253,26 @@ function M.nvim_treesitter()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"python",
|
||||
"lua",
|
||||
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"json",
|
||||
"svelte",
|
||||
"vim",
|
||||
"css",
|
||||
"html",
|
||||
"angular",
|
||||
|
||||
"json",
|
||||
"query",
|
||||
|
||||
"bash",
|
||||
"lua",
|
||||
"vim",
|
||||
|
||||
"glimmer",
|
||||
"templ",
|
||||
"go",
|
||||
"rust",
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
+19
-12
@@ -1,24 +1,31 @@
|
||||
local setup = require("plugins.setup")
|
||||
local package_manager = require("plugins.lazy")
|
||||
local config = require("plugins.config")
|
||||
|
||||
setup.install_packer()
|
||||
setup.install_plugins()
|
||||
package_manager.bootstrap()
|
||||
package_manager.install_plugins()
|
||||
|
||||
config.auto_session()
|
||||
-- KEEPING
|
||||
config.rnvimr()
|
||||
config.fzf()
|
||||
config.fzf_checkout()
|
||||
--config.harpoon()
|
||||
config.hop()
|
||||
config.nvim_fzf()
|
||||
config.gitsigns()
|
||||
config.auto_session()
|
||||
config.undotree()
|
||||
config.indent_blankline()
|
||||
config.lualine()
|
||||
config.nvim_autopairs()
|
||||
config.nvim_fzf()
|
||||
config.nvim_treesitter()
|
||||
config.rnvimr()
|
||||
config.tokyonight()
|
||||
config.gitsigns()
|
||||
|
||||
-- UPDATING
|
||||
config.hop()
|
||||
config.rustaceanvim()
|
||||
|
||||
-- LSP STUFF
|
||||
config.nvim_autopairs()
|
||||
config.luasnip()
|
||||
config.lsp_zero()
|
||||
config.null_ls()
|
||||
config.undotree()
|
||||
config.rustaceanvim()
|
||||
|
||||
-- REMOVING
|
||||
--config.harpoon()
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
local M = {}
|
||||
|
||||
function M.bootstrap()
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if vim.fn.isdirectory(lazypath) == 0 then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
end
|
||||
|
||||
function M.install_plugins()
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- NAVIGATION
|
||||
"phaazon/hop.nvim",
|
||||
|
||||
-- VIM THEMING
|
||||
"folke/tokyonight.nvim",
|
||||
|
||||
-- FILE MANAGEMENT
|
||||
"junegunn/fzf",
|
||||
"junegunn/fzf.vim",
|
||||
"kevinhwang91/rnvimr",
|
||||
"vijaymarupudi/nvim-fzf",
|
||||
"vijaymarupudi/nvim-fzf-commands",
|
||||
|
||||
-- SESSION
|
||||
--"ThePrimeagen/harpoon",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"rmagatti/auto-session",
|
||||
"mbbill/undotree",
|
||||
|
||||
-- GIT
|
||||
"tpope/vim-fugitive",
|
||||
"stsewd/fzf-checkout.vim",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
|
||||
-- EDITOR
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons", lazy = true },
|
||||
},
|
||||
|
||||
-- LSP
|
||||
--"p00f/nvim-ts-rainbow",
|
||||
--"nvimtools/none-ls.nvim",
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
},
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
"nvim-treesitter/playground",
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
"windwp/nvim-autopairs",
|
||||
|
||||
{
|
||||
"VonHeikemen/lsp-zero.nvim",
|
||||
branch = "v1.x",
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{ "neovim/nvim-lspconfig" }, -- Required
|
||||
{ "williamboman/mason.nvim" }, -- Optional
|
||||
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
|
||||
|
||||
-- Autocompletion
|
||||
{ "hrsh7th/nvim-cmp" }, -- Required
|
||||
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
|
||||
{ "hrsh7th/cmp-buffer" }, -- Optional
|
||||
{ "hrsh7th/cmp-path" }, -- Optional
|
||||
{ "saadparwaiz1/cmp_luasnip" }, -- Optional
|
||||
{ "hrsh7th/cmp-nvim-lua" }, -- Optional
|
||||
|
||||
-- Snippets
|
||||
{ "L3MON4D3/LuaSnip" }, -- Required
|
||||
{ "rafamadriz/friendly-snippets" }, -- Optional
|
||||
{ "honza/vim-snippets" }, -- Optional
|
||||
},
|
||||
},
|
||||
|
||||
-- JS
|
||||
"HerringtonDarkholme/yats.vim",
|
||||
"chemzqm/vim-jsx-improve",
|
||||
"yuezk/vim-js", -- js
|
||||
"maxmellon/vim-jsx-pretty", -- react/tsx syntax highlight & indent
|
||||
|
||||
-- HTML/CSS
|
||||
"mattn/emmet-vim",
|
||||
|
||||
-- ZIG
|
||||
"ziglang/zig.vim",
|
||||
|
||||
-- C#
|
||||
"jlcrochet/vim-razor",
|
||||
|
||||
-- RUST
|
||||
{
|
||||
"mrcjkb/rustaceanvim",
|
||||
version = "^5", -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
function M.install_packer()
|
||||
function M.bootstrap()
|
||||
local fn = vim.fn
|
||||
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
||||
|
||||
@@ -29,7 +29,7 @@ function M.install_plugins()
|
||||
use("vijaymarupudi/nvim-fzf-commands")
|
||||
|
||||
-- SESSION
|
||||
use("ThePrimeagen/harpoon")
|
||||
--use("ThePrimeagen/harpoon")
|
||||
use("nvim-lua/plenary.nvim")
|
||||
use({
|
||||
"rmagatti/auto-session",
|
||||
Reference in New Issue
Block a user