-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from speshak/lazy
Replace packer.nvim with lazy.nvim
- Loading branch information
Showing
17 changed files
with
409 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Safely require files | ||
local function safe_require(module) | ||
local success, loaded_module = pcall(require, module) | ||
if success then | ||
return loaded_module | ||
end | ||
vim.cmd.echo('Error loading ' .. module) | ||
end | ||
|
||
safe_require('core.options') | ||
safe_require('core.keymaps') | ||
safe_require('core.autocommands') | ||
safe_require('core.bootstrap') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
-- vim:ft=lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-- 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 opts = { | ||
git = { | ||
log = { '--since=3 days ago' }, | ||
timeout = 60, | ||
}, | ||
ui = { custom_keys = { false } }, | ||
install = { colorscheme = { 'tokyonight' } }, | ||
checker = { enabled = true }, | ||
performance = { | ||
rtp = { | ||
disabled_plugins = { | ||
'gzip', | ||
'netrwPlugin', | ||
'tarPlugin', | ||
'tohtml', | ||
'tutor', | ||
'zipPlugin', | ||
'rplugin', | ||
'matchparen', | ||
'matchit', | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
-- Load the plugins and options | ||
require('lazy').setup('plugins', opts) | ||
|
||
-- vim:ft=lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
local cmd = vim.cmd | ||
local g = vim.g | ||
|
||
-- vim:ft=lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
-- Programming specific plugins | ||
return { | ||
-- Skeletons and snippets | ||
{'pgilad/vim-skeletons', | ||
dependencies = {'SirVer/ultisnips'}, | ||
config = function(plugin) | ||
vim.cmd("let skeletons#autoRegister = 1") | ||
end | ||
}, | ||
{'SirVer/ultisnips', | ||
dependencies = {'honza/vim-snippets'} | ||
}, | ||
|
||
'github/copilot.vim', | ||
|
||
-- Python | ||
'majutsushi/tagbar', | ||
'psf/black', | ||
|
||
-- (Java|Type)Script | ||
'Quramy/tsuquyomi', | ||
'Quramy/vim-js-pretty-template', | ||
'leafgarland/typescript-vim', | ||
|
||
-- Dev Ops stuff | ||
'digitalrounin/vim-yaml-folds', | ||
{'hashivim/vim-terraform', | ||
config = function(plugin) | ||
vim.cmd([[silent! autocmd! filetypedetect BufRead,BufNewFile *.tf]]) | ||
vim.cmd([[autocmd BufRead,BufNewFile *.hcl set filetype=hcl]]) | ||
vim.cmd([[autocmd BufRead,BufNewFile .terraformrc,terraform.rc set filetype=hcl]]) | ||
vim.cmd([[autocmd BufRead,BufNewFile *.tf,*.tfvars set filetype=terraform]]) | ||
vim.cmd([[autocmd BufRead,BufNewFile *.tfstate,*.tfstate.backup set filetype=json]]) | ||
|
||
vim.g.terraform_fmt_on_save = 1 | ||
vim.g.terraform_align = 1 | ||
end | ||
}, | ||
'juliosueiras/vim-terraform-completion', | ||
'speshak/vim-cfn', | ||
'hashicorp/sentinel.vim', | ||
|
||
'ynkdir/vim-vimlparser', | ||
'syngan/vim-vimlint', | ||
|
||
-- Speed up loading/set custom filetypes | ||
-- See https://github.com/nathom/filetype.nvim#customization for info on | ||
-- setting custom types | ||
'nathom/filetype.nvim', | ||
|
||
'ryanoasis/vim-devicons', | ||
'rhysd/committia.vim', | ||
|
||
-- Optimiser | ||
"lewis6991/impatient.nvim", | ||
} | ||
|
||
-- vim:ft=lua |
Oops, something went wrong.