fix
This commit is contained in:
parent
d7b96fb86c
commit
87f7485642
8 changed files with 134 additions and 187 deletions
|
@ -1,4 +1,16 @@
|
|||
vim.cmd [[packadd packer.nvim]]
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "hex.plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
--[[
|
||||
vim.cmd packadd packer.nvim
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
@ -39,3 +51,4 @@ return require('packer').startup(function(use)
|
|||
|
||||
use ({"rose-pine/neovim"})
|
||||
end)
|
||||
--]]
|
16
lua/hex/install/lazy.lua
Normal file
16
lua/hex/install/lazy.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) 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)
|
69
lua/hex/plugins.lua
Normal file
69
lua/hex/plugins.lua
Normal file
|
@ -0,0 +1,69 @@
|
|||
return {
|
||||
"j-hui/fidget.nvim",
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
opts = {
|
||||
pickers = {
|
||||
buffers = {
|
||||
show_all_buffers = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
'mrcjkb/rustaceanvim',
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||
"nvim-lualine/lualine.nvim",
|
||||
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
{ 'hrsh7th/nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'hrsh7th/cmp-buffer' },
|
||||
{
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
dependencies = {
|
||||
'williamboman/mason.nvim'
|
||||
}
|
||||
},
|
||||
--{ 'mfussenegger/nvim-jdtls' },
|
||||
{ "rose-pine/neovim" }
|
||||
}
|
||||
--[[
|
||||
vim.cmd packadd packer.nvim
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'j-hui/fidget.nvim'
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||
-- or , branch = '0.1.x',
|
||||
requires = { { 'nvim-lua/plenary.nvim' } },
|
||||
config = function ()
|
||||
require('telescope').setup()
|
||||
end
|
||||
}
|
||||
|
||||
'mrcjkb/rustaceanvim')
|
||||
|
||||
'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
||||
|
||||
{"nvim-lualine/lualine.nvim"})
|
||||
|
||||
{ 'neovim/nvim-lspconfig' })
|
||||
{ 'hrsh7th/nvim-cmp' })
|
||||
{ 'hrsh7th/cmp-nvim-lsp' })
|
||||
{ 'hrsh7th/cmp-buffer' })
|
||||
use {
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
requires = { { 'williamboman/mason.nvim' } }
|
||||
}
|
||||
|
||||
{'mfussenegger/nvim-jdtls'})
|
||||
|
||||
use ({"rose-pine/neovim"})
|
||||
end)
|
||||
--]]
|
Loading…
Add table
Add a link
Reference in a new issue