mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-22 13:04:18 +00:00
Add snapshotting
This commit is contained in:
parent
08a50b1621
commit
53efd0ff51
@ -17,350 +17,344 @@ local function config_dark_notify()
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
return require("packer").startup({
|
local packer = require("packer")
|
||||||
function(use)
|
local packer_util = require("packer.util")
|
||||||
-- Load things faster!
|
local use = packer.use
|
||||||
use({ "lewis6991/impatient.nvim", config = [[require('impatient')]] })
|
|
||||||
|
|
||||||
-- Let Packer manage and lazyload itself
|
packer.init({
|
||||||
use({
|
-- Always load default
|
||||||
"wbthomason/packer.nvim",
|
snapshot = "latest",
|
||||||
cmd = {
|
snapshot_path = packer_util.join_paths(vim.fn.stdpath("config"), "packer_snapshots"),
|
||||||
"PackerClean",
|
display = {
|
||||||
"PackerCompile",
|
open_fn = function()
|
||||||
"PackerInstall",
|
return packer_util.float({ border = "single" })
|
||||||
"PackerLoad",
|
end,
|
||||||
"PackerProfile",
|
},
|
||||||
"PackerStatus",
|
})
|
||||||
"PackerSync",
|
|
||||||
"PackerUpdate",
|
|
||||||
},
|
|
||||||
config = [[require("plugins")]],
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Colorschemes
|
-- Load things faster!
|
||||||
use({
|
use({ "lewis6991/impatient.nvim", config = [[require('impatient')]] })
|
||||||
"vim-scripts/wombat256.vim",
|
|
||||||
{ "ViViDboarder/wombat.nvim", requires = "rktjmp/lush.nvim" },
|
|
||||||
{ "ViViDboarder/wombuddy.nvim", requires = "tjdevries/colorbuddy.vim" },
|
|
||||||
"ishan9299/nvim-solarized-lua",
|
|
||||||
{
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
run = 'fish -c \'echo "set --path --prepend fish_themes_path "(pwd)"/extras" > ~/.config/fish/conf.d/tokyonight.fish\' || true', -- luacheck: no max line length
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Auto and ends to some ifs and dos
|
-- Let Packer manage and lazyload itself
|
||||||
use("tpope/vim-endwise")
|
use({
|
||||||
|
"wbthomason/packer.nvim",
|
||||||
|
cmd = {
|
||||||
|
"PackerClean",
|
||||||
|
"PackerCompile",
|
||||||
|
"PackerInstall",
|
||||||
|
"PackerLoad",
|
||||||
|
"PackerProfile",
|
||||||
|
"PackerStatus",
|
||||||
|
"PackerSync",
|
||||||
|
"PackerUpdate",
|
||||||
|
},
|
||||||
|
config = [[require("plugins")]],
|
||||||
|
})
|
||||||
|
|
||||||
-- Unix commands from vim? Yup!
|
-- Colorschemes
|
||||||
use("tpope/vim-eunuch")
|
use({
|
||||||
|
"vim-scripts/wombat256.vim",
|
||||||
|
{ "ViViDboarder/wombat.nvim", requires = "rktjmp/lush.nvim" },
|
||||||
|
{ "ViViDboarder/wombuddy.nvim", requires = "tjdevries/colorbuddy.vim" },
|
||||||
|
"ishan9299/nvim-solarized-lua",
|
||||||
|
{
|
||||||
|
"folke/tokyonight.nvim",
|
||||||
|
run = 'fish -c \'echo "set --path --prepend fish_themes_path "(pwd)"/extras" > ~/.config/fish/conf.d/tokyonight.fish\' || true', -- luacheck: no max line length
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Adds repeats for custom motions
|
-- Auto and ends to some ifs and dos
|
||||||
use("tpope/vim-repeat")
|
use("tpope/vim-endwise")
|
||||||
|
|
||||||
-- Readline shortcuts
|
-- Unix commands from vim? Yup!
|
||||||
use("tpope/vim-rsi")
|
use("tpope/vim-eunuch")
|
||||||
|
|
||||||
-- Surround motions
|
-- Adds repeats for custom motions
|
||||||
use("tpope/vim-surround")
|
use("tpope/vim-repeat")
|
||||||
|
|
||||||
-- Better netrw
|
-- Readline shortcuts
|
||||||
use("tpope/vim-vinegar")
|
use("tpope/vim-rsi")
|
||||||
|
|
||||||
-- Easier jumping to lines
|
-- Surround motions
|
||||||
use("vim-scripts/file-line")
|
use("tpope/vim-surround")
|
||||||
|
|
||||||
-- Auto ctags generation
|
-- Better netrw
|
||||||
use("ludovicchabant/vim-gutentags")
|
use("tpope/vim-vinegar")
|
||||||
|
|
||||||
-- Make it easier to discover some of my keymaps
|
-- Easier jumping to lines
|
||||||
use({
|
use("vim-scripts/file-line")
|
||||||
"folke/which-key.nvim",
|
|
||||||
config = function()
|
|
||||||
require("plugins.whichkey").configure()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Better commenting
|
-- Auto ctags generation
|
||||||
use({
|
use("ludovicchabant/vim-gutentags")
|
||||||
"tomtom/tcomment_vim",
|
|
||||||
config = function()
|
|
||||||
vim.api.nvim_set_keymap("n", "//", ":TComment<CR>", { silent = true, noremap = true })
|
|
||||||
vim.api.nvim_set_keymap("v", "//", ":TCommentBlock<CR>", { silent = true, noremap = true })
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Allow wrapping and joining of arguments across multiple lines
|
-- Make it easier to discover some of my keymaps
|
||||||
use({
|
use({
|
||||||
"FooSoft/vim-argwrap",
|
"folke/which-key.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>a", "<cmd>ArgWrap<CR>", { silent = true, noremap = true })
|
require("plugins.whichkey").configure()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Adds git operations to vim
|
-- Better commenting
|
||||||
use({
|
use({
|
||||||
"tpope/vim-fugitive",
|
"tomtom/tcomment_vim",
|
||||||
config = function()
|
config = function()
|
||||||
local opts = { silent = true, noremap = true }
|
vim.api.nvim_set_keymap("n", "//", ":TComment<CR>", { silent = true, noremap = true })
|
||||||
vim.api.nvim_set_keymap("n", "gb", "<cmd>Gblame<CR>", opts)
|
vim.api.nvim_set_keymap("v", "//", ":TCommentBlock<CR>", { silent = true, noremap = true })
|
||||||
vim.api.nvim_set_keymap("n", "gc", "<cmd>Gcommit<CR>", opts)
|
end,
|
||||||
vim.api.nvim_set_keymap("n", "gd", "<cmd>Gdiff<CR>", opts)
|
})
|
||||||
vim.api.nvim_set_keymap("n", "gs", "<cmd>Git<CR>", opts)
|
|
||||||
vim.api.nvim_set_keymap("n", "gw", "<cmd>Gwrite<CR>", opts)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Quick toggling of Location and Quickfix lists
|
-- Allow wrapping and joining of arguments across multiple lines
|
||||||
use({
|
use({
|
||||||
"milkypostman/vim-togglelist",
|
"FooSoft/vim-argwrap",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_set_keymap(
|
vim.api.nvim_set_keymap("n", "<Leader>a", "<cmd>ArgWrap<CR>", { silent = true, noremap = true })
|
||||||
"n",
|
end,
|
||||||
"<F6>",
|
})
|
||||||
":call ToggleQuickfixList()<CR>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<F7>",
|
|
||||||
":call ToggleLocationList()<CR>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Find text everywhere!
|
-- Adds git operations to vim
|
||||||
use({
|
use({
|
||||||
"mhinz/vim-grepper",
|
"tpope/vim-fugitive",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.grepper")
|
local opts = { silent = true, noremap = true }
|
||||||
end,
|
vim.api.nvim_set_keymap("n", "gb", "<cmd>Gblame<CR>", opts)
|
||||||
})
|
vim.api.nvim_set_keymap("n", "gc", "<cmd>Gcommit<CR>", opts)
|
||||||
|
vim.api.nvim_set_keymap("n", "gd", "<cmd>Gdiff<CR>", opts)
|
||||||
|
vim.api.nvim_set_keymap("n", "gs", "<cmd>Git<CR>", opts)
|
||||||
|
vim.api.nvim_set_keymap("n", "gw", "<cmd>Gwrite<CR>", opts)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Highlight inline colors
|
-- Quick toggling of Location and Quickfix lists
|
||||||
use({
|
use({
|
||||||
"norcalli/nvim-colorizer.lua",
|
"milkypostman/vim-togglelist",
|
||||||
config = function()
|
config = function()
|
||||||
require("colorizer").setup()
|
vim.api.nvim_set_keymap("n", "<F6>", ":call ToggleQuickfixList()<CR>", { silent = true, noremap = true })
|
||||||
end,
|
vim.api.nvim_set_keymap("n", "<F7>", ":call ToggleLocationList()<CR>", { silent = true, noremap = true })
|
||||||
})
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Custom status line
|
-- Find text everywhere!
|
||||||
use({ "SmiteshP/nvim-gps", requires = "nvim-treesitter/nvim-treesitter" })
|
use({
|
||||||
use({
|
"mhinz/vim-grepper",
|
||||||
"nvim-lualine/lualine.nvim",
|
config = function()
|
||||||
config = function()
|
require("plugins.grepper")
|
||||||
require("plugins.lualine").config_lualine()
|
end,
|
||||||
end,
|
})
|
||||||
requires = {
|
|
||||||
-- Show my current location in my status bar
|
|
||||||
-- { "SmiteshP/nvim-gps", requires = "nvim-treesitter/nvim-treesitter" },
|
|
||||||
},
|
|
||||||
after = {
|
|
||||||
"nvim-gps",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- On Mac, update colors when dark mode changes
|
-- Highlight inline colors
|
||||||
use({
|
use({
|
||||||
"cormacrelf/dark-notify",
|
"norcalli/nvim-colorizer.lua",
|
||||||
disable = not vim.g.is_mac,
|
config = function()
|
||||||
-- Download latest release on install
|
require("colorizer").setup()
|
||||||
run = "curl -s https://api.github.com/repos/cormacrelf/dark-notify/releases/latest | jq '.assets[].browser_download_url' | xargs curl -Ls | tar xz -C ~/.local/bin/", -- luacheck: no max line length
|
end,
|
||||||
config = config_dark_notify,
|
})
|
||||||
requires = "nvim-lualine/lualine.nvim",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Custom start screen
|
-- Custom status line
|
||||||
use({
|
use({ "SmiteshP/nvim-gps", requires = "nvim-treesitter/nvim-treesitter" })
|
||||||
"mhinz/vim-startify",
|
use({
|
||||||
config = function()
|
"nvim-lualine/lualine.nvim",
|
||||||
require("utils").require_with_local("plugins.startify")
|
config = function()
|
||||||
end,
|
require("plugins.lualine").config_lualine()
|
||||||
})
|
end,
|
||||||
|
requires = {
|
||||||
|
-- Show my current location in my status bar
|
||||||
|
-- { "SmiteshP/nvim-gps", requires = "nvim-treesitter/nvim-treesitter" },
|
||||||
|
},
|
||||||
|
after = {
|
||||||
|
"nvim-gps",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- LSP
|
-- On Mac, update colors when dark mode changes
|
||||||
|
use({
|
||||||
|
"cormacrelf/dark-notify",
|
||||||
|
disable = not vim.g.is_mac,
|
||||||
|
-- Download latest release on install
|
||||||
|
run = "curl -s https://api.github.com/repos/cormacrelf/dark-notify/releases/latest | jq '.assets[].browser_download_url' | xargs curl -Ls | tar xz -C ~/.local/bin/", -- luacheck: no max line length
|
||||||
|
config = config_dark_notify,
|
||||||
|
requires = "nvim-lualine/lualine.nvim",
|
||||||
|
})
|
||||||
|
|
||||||
-- Configure language servers
|
-- Custom start screen
|
||||||
use("neovim/nvim-lspconfig")
|
use({
|
||||||
|
"mhinz/vim-startify",
|
||||||
|
config = function()
|
||||||
|
require("utils").require_with_local("plugins.startify")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Install language servers
|
-- LSP
|
||||||
use({
|
|
||||||
"williamboman/nvim-lsp-installer",
|
|
||||||
requires = "neovim/nvim-lspconfig",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Lua dev for vim
|
-- Configure language servers
|
||||||
use("folke/lua-dev.nvim")
|
use("neovim/nvim-lspconfig")
|
||||||
|
|
||||||
-- Better display of lsp diagnostics
|
-- Install language servers
|
||||||
use("folke/trouble.nvim")
|
use({
|
||||||
|
"williamboman/nvim-lsp-installer",
|
||||||
|
requires = "neovim/nvim-lspconfig",
|
||||||
|
})
|
||||||
|
|
||||||
-- Generic linter/formatters in diagnostics API
|
-- Lua dev for vim
|
||||||
use({
|
use("folke/lua-dev.nvim")
|
||||||
"jose-elias-alvarez/null-ls.nvim",
|
|
||||||
commit = utils.map_version_rule({
|
|
||||||
[">=0.6.0"] = nil,
|
|
||||||
[">=0.5.1"] = "739a98c12bedaa2430c4a3c08d1d22ad6c16513e",
|
|
||||||
[">=0.5.0"] = "3e7390735501d0507bf2c2b5c2e7a16f58deeb81",
|
|
||||||
}),
|
|
||||||
requires = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Fancy LSP UIs
|
-- Better display of lsp diagnostics
|
||||||
use({
|
use("folke/trouble.nvim")
|
||||||
"glepnir/lspsaga.nvim",
|
|
||||||
requires = "neovim/nvim-lspconfig",
|
|
||||||
-- NOTE: Disabled because it's got issues with Neovim 0.6.0
|
|
||||||
disable = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Writing
|
-- Generic linter/formatters in diagnostics API
|
||||||
-- abolish/pencil
|
use({
|
||||||
use({
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
"preservim/vim-pencil",
|
commit = utils.map_version_rule({
|
||||||
cmd = { "Pencil" },
|
[">=0.6.0"] = nil,
|
||||||
})
|
[">=0.5.1"] = "739a98c12bedaa2430c4a3c08d1d22ad6c16513e",
|
||||||
use({
|
[">=0.5.0"] = "3e7390735501d0507bf2c2b5c2e7a16f58deeb81",
|
||||||
"preservim/vim-textobj-sentence",
|
}),
|
||||||
requires = "kana/vim-textobj-user",
|
requires = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
|
||||||
})
|
})
|
||||||
use({
|
|
||||||
"junegunn/goyo.vim",
|
|
||||||
cmd = { "Goyo", "Zen" },
|
|
||||||
config = [[require("plugins.goyo-limelight")]],
|
|
||||||
requires = { "junegunn/limelight.vim", cmd = "Limelight" },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Treesitter
|
-- Fancy LSP UIs
|
||||||
use({
|
use({
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"glepnir/lspsaga.nvim",
|
||||||
run = ":TSUpdate",
|
requires = "neovim/nvim-lspconfig",
|
||||||
config = function()
|
-- NOTE: Disabled because it's got issues with Neovim 0.6.0
|
||||||
require("plugins.treesitter").setup()
|
disable = true,
|
||||||
end,
|
})
|
||||||
})
|
|
||||||
use({
|
|
||||||
"nvim-treesitter/nvim-treesitter-refactor",
|
|
||||||
requires = "nvim-treesitter/nvim-treesitter",
|
|
||||||
})
|
|
||||||
use({
|
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
|
||||||
requires = "nvim-treesitter/nvim-treesitter",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Completion
|
-- Writing
|
||||||
use({
|
-- abolish/pencil
|
||||||
"hrsh7th/nvim-cmp",
|
use({
|
||||||
config = function()
|
"preservim/vim-pencil",
|
||||||
require("plugins.completion").config_cmp()
|
cmd = { "Pencil" },
|
||||||
end,
|
})
|
||||||
requires = {
|
use({
|
||||||
{ "hrsh7th/cmp-nvim-lsp", after = "nvim-cmp" },
|
"preservim/vim-textobj-sentence",
|
||||||
{ "hrsh7th/cmp-buffer", after = "nvim-cmp" },
|
requires = "kana/vim-textobj-user",
|
||||||
{ "f3fora/cmp-spell", after = "nvim-cmp" },
|
})
|
||||||
{ "saadparwaiz1/cmp_luasnip", after = "nvim-cmp" },
|
use({
|
||||||
"L3MON4D3/LuaSnip",
|
"junegunn/goyo.vim",
|
||||||
},
|
cmd = { "Goyo", "Zen" },
|
||||||
event = "InsertEnter *",
|
config = [[require("plugins.goyo-limelight")]],
|
||||||
})
|
requires = { "junegunn/limelight.vim", cmd = "Limelight" },
|
||||||
|
})
|
||||||
|
|
||||||
-- Add snippets
|
-- Treesitter
|
||||||
use({
|
use({
|
||||||
"rafamadriz/friendly-snippets",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
requires = "L3MON4D3/LuaSnip",
|
run = ":TSUpdate",
|
||||||
after = "LuaSnip",
|
config = function()
|
||||||
config = function()
|
require("plugins.treesitter").setup()
|
||||||
require("luasnip.loaders.from_vscode").load()
|
end,
|
||||||
end,
|
})
|
||||||
})
|
use({
|
||||||
|
"nvim-treesitter/nvim-treesitter-refactor",
|
||||||
|
requires = "nvim-treesitter/nvim-treesitter",
|
||||||
|
})
|
||||||
|
use({
|
||||||
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
|
requires = "nvim-treesitter/nvim-treesitter",
|
||||||
|
})
|
||||||
|
|
||||||
-- Fuzzy Finder
|
-- Completion
|
||||||
use({
|
use({
|
||||||
"nvim-telescope/telescope.nvim",
|
"hrsh7th/nvim-cmp",
|
||||||
requires = {
|
config = function()
|
||||||
"nvim-lua/plenary.nvim",
|
require("plugins.completion").config_cmp()
|
||||||
"nvim-lua/popup.nvim",
|
end,
|
||||||
"nvim-telescope/telescope-file-browser.nvim",
|
requires = {
|
||||||
},
|
{ "hrsh7th/cmp-nvim-lsp", after = "nvim-cmp" },
|
||||||
tag = utils.map_version_rule({
|
{ "hrsh7th/cmp-buffer", after = "nvim-cmp" },
|
||||||
[">=0.6.0"] = nil,
|
{ "f3fora/cmp-spell", after = "nvim-cmp" },
|
||||||
["<0.6.0"] = "nvim-0.5.1",
|
{ "saadparwaiz1/cmp_luasnip", after = "nvim-cmp" },
|
||||||
["==0.5.0"] = "nvim-0.5.0",
|
"L3MON4D3/LuaSnip",
|
||||||
}),
|
},
|
||||||
config = function()
|
event = "InsertEnter *",
|
||||||
require("plugins.telescope")
|
})
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Filetypes
|
-- Add snippets
|
||||||
use("ViViDboarder/vim-forcedotcom")
|
use({
|
||||||
use("rust-lang/rust.vim")
|
"rafamadriz/friendly-snippets",
|
||||||
use("hsanson/vim-android")
|
requires = "L3MON4D3/LuaSnip",
|
||||||
use({
|
after = "LuaSnip",
|
||||||
"sheerun/vim-polyglot",
|
config = function()
|
||||||
config = function()
|
require("luasnip.loaders.from_vscode").load()
|
||||||
vim.cmd([[
|
end,
|
||||||
augroup polyglot_fts
|
})
|
||||||
|
|
||||||
|
-- Fuzzy Finder
|
||||||
|
use({
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
requires = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-lua/popup.nvim",
|
||||||
|
"nvim-telescope/telescope-file-browser.nvim",
|
||||||
|
},
|
||||||
|
tag = utils.map_version_rule({
|
||||||
|
[">=0.6.0"] = nil,
|
||||||
|
["<0.6.0"] = "nvim-0.5.1",
|
||||||
|
["==0.5.0"] = "nvim-0.5.0",
|
||||||
|
}),
|
||||||
|
config = function()
|
||||||
|
require("plugins.telescope")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Filetypes
|
||||||
|
use("ViViDboarder/vim-forcedotcom")
|
||||||
|
use("rust-lang/rust.vim")
|
||||||
|
use("hsanson/vim-android")
|
||||||
|
use({
|
||||||
|
"sheerun/vim-polyglot",
|
||||||
|
config = function()
|
||||||
|
vim.cmd([[
|
||||||
|
augroup polyglot_fts
|
||||||
au BufRead,BufNewFile */playbooks/*.yml,*/playbooks/*.yaml set filetype=yaml.ansible
|
au BufRead,BufNewFile */playbooks/*.yml,*/playbooks/*.yaml set filetype=yaml.ansible
|
||||||
au BufRead,BufNewFile go.mod,go.sum set filetype=gomod
|
au BufRead,BufNewFile go.mod,go.sum set filetype=gomod
|
||||||
augroup end
|
augroup end
|
||||||
]])
|
]])
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
use({
|
|
||||||
"dense-analysis/ale",
|
|
||||||
config = function()
|
|
||||||
require("plugins.ale")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Debuging nvim config
|
|
||||||
use({
|
|
||||||
"tweekmonster/startuptime.vim",
|
|
||||||
cmd = { "StartupTime" },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Fancy todo highlighting
|
|
||||||
use({
|
|
||||||
"folke/todo-comments.nvim",
|
|
||||||
requires = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("plugins.todo")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Fancy notifications
|
|
||||||
use({
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
config = function()
|
|
||||||
require("notify").setup({
|
|
||||||
icons = {
|
|
||||||
ERROR = "🔥",
|
|
||||||
WARN = "⚠️",
|
|
||||||
DEBUG = "🤔",
|
|
||||||
INFO = "*",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
vim.notify = require("notify")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Auto sync after bootstrapping on a fresh box
|
|
||||||
if packer_bootstrap then
|
|
||||||
require("packer").sync()
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
config = {
|
|
||||||
display = {
|
|
||||||
open_fn = function()
|
|
||||||
return require("packer.util").float({ border = "single" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
use({
|
||||||
|
"dense-analysis/ale",
|
||||||
|
config = function()
|
||||||
|
require("plugins.ale")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Debuging nvim config
|
||||||
|
use({
|
||||||
|
"tweekmonster/startuptime.vim",
|
||||||
|
cmd = { "StartupTime" },
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Fancy todo highlighting
|
||||||
|
use({
|
||||||
|
"folke/todo-comments.nvim",
|
||||||
|
requires = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("plugins.todo")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Fancy notifications
|
||||||
|
use({
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
config = function()
|
||||||
|
require("notify").setup({
|
||||||
|
icons = {
|
||||||
|
ERROR = "🔥",
|
||||||
|
WARN = "⚠️",
|
||||||
|
DEBUG = "🤔",
|
||||||
|
INFO = "*",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
vim.notify = require("notify")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Auto sync after bootstrapping on a fresh box
|
||||||
|
if packer_bootstrap then
|
||||||
|
packer.sync()
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user