Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Neovim Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kirill Schmidt
Neovim Config
Commits
30cfe6fc
Unverified
Commit
30cfe6fc
authored
1 year ago
by
Kirill Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Switch to lazy.nvim as Package Manager
Packer.nvim was deprecated while ago.
parent
54df553e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+0
-1
0 additions, 1 deletion
.gitignore
init.lua
+12
-0
12 additions, 0 deletions
init.lua
lazy-lock.json
+15
-0
15 additions, 0 deletions
lazy-lock.json
lua/options.lua
+1
-1
1 addition, 1 deletion
lua/options.lua
lua/plugins.lua
+26
-24
26 additions, 24 deletions
lua/plugins.lua
with
54 additions
and
26 deletions
.gitignore
deleted
100644 → 0
+
0
−
1
View file @
54df553e
plugin/
This diff is collapsed.
Click to expand it.
init.lua
+
12
−
0
View file @
30cfe6fc
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'
)
This diff is collapsed.
Click to expand it.
lazy-lock.json
0 → 100644
+
15
−
0
View file @
30cfe6fc
{
"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
This diff is collapsed.
Click to expand it.
lua/options.lua
+
1
−
1
View file @
30cfe6fc
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
...
...
This diff is collapsed.
Click to expand it.
lua/plugins.lua
+
26
−
24
View file @
30cfe6fc
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'
,
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment