mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
move to lazy.nvim from packer
This commit is contained in:
parent
51e2c2f153
commit
9e033f4df1
@ -10,11 +10,6 @@
|
|||||||
url = "https://github.com/alacritty/alacritty-theme"
|
url = "https://github.com/alacritty/alacritty-theme"
|
||||||
refreshPeriod = "168h"
|
refreshPeriod = "168h"
|
||||||
|
|
||||||
[".local/share/nvim/site/pack/packer/start/packer.nvim"]
|
|
||||||
type = "git-repo"
|
|
||||||
url = "https://github.com/wbthomason/packer.nvim.git"
|
|
||||||
refreshPeriod = "168h"
|
|
||||||
|
|
||||||
[".tmux/plugins/tpm"]
|
[".tmux/plugins/tpm"]
|
||||||
type = "git-repo"
|
type = "git-repo"
|
||||||
url = "https://github.com/tmux-plugins/tpm"
|
url = "https://github.com/tmux-plugins/tpm"
|
||||||
|
@ -1 +1 @@
|
|||||||
require("tstarr.packer")
|
require("tstarr.plugins")
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
|
||||||
|
|
||||||
local ensure_packer = function()
|
|
||||||
local fn = vim.fn
|
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
|
||||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
||||||
vim.cmd [[packadd packer.nvim]]
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local packer_bootstrap = ensure_packer()
|
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
|
||||||
-- Packer can manage itself
|
|
||||||
use 'wbthomason/packer.nvim'
|
|
||||||
|
|
||||||
-- Apperance
|
|
||||||
use("ellisonleao/gruvbox.nvim")
|
|
||||||
use('norcalli/nvim-colorizer.lua')
|
|
||||||
require("colorizer").setup()
|
|
||||||
|
|
||||||
-- Syntax Hilight
|
|
||||||
use ('alker0/chezmoi.vim')
|
|
||||||
use ('nathangrigg/vim-beancount')
|
|
||||||
|
|
||||||
-- IDE
|
|
||||||
use('nvim-lua/plenary.nvim')
|
|
||||||
|
|
||||||
-- Editing
|
|
||||||
use("mickael-menu/zk-nvim")
|
|
||||||
|
|
||||||
-- External
|
|
||||||
require("zk").setup()
|
|
||||||
|
|
||||||
-- LSP
|
|
||||||
use("nvim-treesitter/nvim-treesitter-context");
|
|
||||||
use {
|
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
|
||||||
branch = 'v1.x',
|
|
||||||
requires = {
|
|
||||||
-- LSP Support
|
|
||||||
{'neovim/nvim-lspconfig'},
|
|
||||||
{'williamboman/mason.nvim'},
|
|
||||||
{'williamboman/mason-lspconfig.nvim'},
|
|
||||||
|
|
||||||
-- Autocompletion
|
|
||||||
{'hrsh7th/nvim-cmp'},
|
|
||||||
{'hrsh7th/cmp-buffer'},
|
|
||||||
{'hrsh7th/cmp-path'},
|
|
||||||
{'saadparwaiz1/cmp_luasnip'},
|
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
|
||||||
{'hrsh7th/cmp-nvim-lua'},
|
|
||||||
|
|
||||||
-- Snippets
|
|
||||||
{'L3MON4D3/LuaSnip'},
|
|
||||||
{'rafamadriz/friendly-snippets'},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
end)
|
|
50
home/dot_config/nvim/lua/tstarr/plugins.lua
Normal file
50
home/dot_config/nvim/lua/tstarr/plugins.lua
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
-- bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not 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)
|
||||||
|
|
||||||
|
local plugins = {
|
||||||
|
"ellisonleao/gruvbox.nvim",
|
||||||
|
'norcalli/nvim-colorizer.lua',
|
||||||
|
'alker0/chezmoi.vim',
|
||||||
|
'nathangrigg/vim-beancount',
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
"mickael-menu/zk-nvim",
|
||||||
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
{
|
||||||
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
|
branch = 'v1.x',
|
||||||
|
dependencies = {
|
||||||
|
-- LSP Support
|
||||||
|
{'neovim/nvim-lspconfig'},
|
||||||
|
{'williamboman/mason.nvim'},
|
||||||
|
{'williamboman/mason-lspconfig.nvim'},
|
||||||
|
-- Autocompletion
|
||||||
|
{'hrsh7th/nvim-cmp'},
|
||||||
|
{'hrsh7th/cmp-buffer'},
|
||||||
|
{'hrsh7th/cmp-path'},
|
||||||
|
{'saadparwaiz1/cmp_luasnip'},
|
||||||
|
{'hrsh7th/cmp-nvim-lsp'},
|
||||||
|
{'hrsh7th/cmp-nvim-lua'},
|
||||||
|
-- Snippets
|
||||||
|
{'L3MON4D3/LuaSnip'},
|
||||||
|
{'rafamadriz/friendly-snippets'},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local opts = {}
|
||||||
|
require("lazy").setup(plugins, opts)
|
||||||
|
|
||||||
|
-- External
|
||||||
|
require("zk").setup()
|
||||||
|
require("colorizer").setup()
|
Loading…
x
Reference in New Issue
Block a user