Skip to content
Snippets Groups Projects
Unverified Commit 30cfe6fc authored by Kirill Schmidt's avatar Kirill Schmidt
Browse files

Switch to lazy.nvim as Package Manager

Packer.nvim was deprecated while ago.
parent 54df553e
No related branches found
No related tags found
No related merge requests found
plugin/
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)
require('plugins')
require('lsp')
require('options')
{
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-snippy": { "branch": "master", "commit": "6e39210aa3a74e2bf6462f492eaf0d436cd2b7d3" },
"crates.nvim": { "branch": "main", "commit": "8437522d12a8c523da2aee9db2979d070b2ecc33" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" },
"nvim-lspconfig": { "branch": "master", "commit": "36e4ffec0a9e373ac9dbf7949d3567c8f04ca3df" },
"nvim-snippy": { "branch": "master", "commit": "c3e289ee651957c44d5f62b1daa92bc1ac80ebf4" },
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"rust-tools.nvim": { "branch": "master", "commit": "0cc8adab23117783a0292a0c8a2fbed1005dc645" },
"tokyonight.nvim": { "branch": "main", "commit": "f247ee700b569ed43f39320413a13ba9b0aef0db" }
}
\ No newline at end of file
local g = vim.g -- Global variables
local opt = vim.opt -- Set options (global/buffer/windows-scoped)
vim.cmd('colorscheme dracula')
vim.cmd('colorscheme tokyonight')
opt.clipboard = 'unnamedplus' -- Copy/paste to system clipboard
opt.swapfile = false -- Don't use swapfile
opt.completeopt = 'menuone,noinsert,noselect' -- Autocomplete options
......
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- dracula colorscheme
use 'Mofiqul/dracula.nvim'
-- Configurations for Nvim LSP
use 'neovim/nvim-lspconfig'
-- Extra features for rust-analyzer
use 'simrat39/rust-tools.nvim'
-- Autocompletion
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-cmdline'
use 'hrsh7th/nvim-cmp'
use 'dcampos/nvim-snippy'
use 'dcampos/cmp-snippy'
-- Crates.io completion
use {
vim.g.mapleader = ' '
require('lazy').setup({
{ -- Colorscheme
'folke/tokyonight.nvim',
lazy = true,
priority = 1000,
opts = { style = 'moon' }
},
{ -- Crates.io completion
'saecki/crates.nvim',
tag = 'v0.2.1',
requires = { 'nvim-lua/plenary.nvim' },
tag = 'v0.4.0',
event = { 'BufRead Cargo.toml' },
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
require('crates').setup()
end,
}
end)
},
-- Configurations for Neovim LSP
'neovim/nvim-lspconfig',
-- Extra features for rust-analyzer
'simrat39/rust-tools.nvim',
-- Autocompletion
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
'hrsh7th/nvim-cmp',
'dcampos/nvim-snippy',
'dcampos/cmp-snippy',
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment