Skip to content

Commit

Permalink
feat!: migrate to lazy.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Jan 13, 2023
1 parent 8101d00 commit cfe56b9
Show file tree
Hide file tree
Showing 44 changed files with 1,030 additions and 1,019 deletions.
1 change: 1 addition & 0 deletions nvim/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugin/packer_compiled.vim
lazy-lock.json
14 changes: 7 additions & 7 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ after/plugin/keymap.vim
- LSP settings and keymappings
lua/lsp
- Plugins
~/.local/share/nvim/site/pack/packer/
~/.local/share/nvim/lazy/
- Undo, logs, swap
~/.local/share/nvim/
]]

require "utils"
require "packages"
require "options"
require "autocommands"
require "mappings"
require "nvim_help"
require "filetype"
require "config.options"
require "config.lazy"
require "config.autocommands"
require "config.mappings"
require "config.nvim_help"
require "config.filetype"
44 changes: 0 additions & 44 deletions nvim/lua/config/alpha.lua

This file was deleted.

File renamed without changes.
150 changes: 0 additions & 150 deletions nvim/lua/config/cmp.lua

This file was deleted.

12 changes: 0 additions & 12 deletions nvim/lua/config/cmp_tabnine.lua

This file was deleted.

File renamed without changes.
27 changes: 0 additions & 27 deletions nvim/lua/config/hop.lua

This file was deleted.

11 changes: 0 additions & 11 deletions nvim/lua/config/indent.lua

This file was deleted.

39 changes: 0 additions & 39 deletions nvim/lua/config/indentscope.lua

This file was deleted.

46 changes: 46 additions & 0 deletions nvim/lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
end
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup("plugins", {
defaults = {
lazy = true,
},
dev = { path = "~/git" },
install = {
colorscheme = { "base16-oceanicnext", "habamax" },
},
performance = {
rtp = {
disabled_plugins = {
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"gzip",
"zip",
"zipPlugin",
"tar",
"tarPlugin",
"getscript",
"getscriptPlugin",
"vimball",
"vimballPlugin",
"2html_plugin",
"logipat",
"rrhelper",
"spellfile_plugin",
"matchit",
},
},
},
})
vim.cmd.colorscheme "base16-oceanicnext"
File renamed without changes.
20 changes: 0 additions & 20 deletions nvim/lua/config/notify.lua

This file was deleted.

File renamed without changes.
3 changes: 1 addition & 2 deletions nvim/lua/options.lua → nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-- Set theme
vim.cmd [[colorscheme base16-oceanicnext]]
vim.g.mapleader = " "

local globals = {
-- Fix vim sandwitch overriding sentence text object
Expand Down
Loading

0 comments on commit cfe56b9

Please sign in to comment.