lazy.nvim working
This commit is contained in:
35
lua/config/lazy.lua
Normal file
35
lua/config/lazy.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
-- vim.g.mapleader = " "
|
||||
-- vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
3
lua/plugins/commentary.lua
Normal file
3
lua/plugins/commentary.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
'tpope/vim-commentary',
|
||||
}
|
||||
4
lua/plugins/hologram.lua
Normal file
4
lua/plugins/hologram.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
'edluffy/hologram.nvim',
|
||||
auto_display = true, -- WIP automatic markdown image display, may be prone to breaking
|
||||
}
|
||||
5
lua/plugins/iris.lua
Normal file
5
lua/plugins/iris.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
'soywod/iris.vim',
|
||||
},
|
||||
}
|
||||
15
lua/plugins/neogit.lua
Normal file
15
lua/plugins/neogit.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Plugin: NeogitOrg/neogit
|
||||
-- Installed via store.nvim
|
||||
|
||||
return {
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim", -- required
|
||||
"sindrets/diffview.nvim", -- optional - Diff integration
|
||||
-- Only one of these is needed.
|
||||
"nvim-telescope/telescope.nvim", -- optional
|
||||
"ibhagwan/fzf-lua", -- optional
|
||||
"nvim-mini/mini.pick", -- optional
|
||||
"folke/snacks.nvim" -- optional
|
||||
}
|
||||
}
|
||||
5
lua/plugins/obsidian.lua
Normal file
5
lua/plugins/obsidian.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
'obsidian-nvim/obsidian.nvim',
|
||||
},
|
||||
}
|
||||
23
lua/plugins/presence.lua
Normal file
23
lua/plugins/presence.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
'andweeb/presence.nvim',
|
||||
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
|
||||
neovim_image_text = 'The One True Text Editor', -- Text displayed when hovered over the Neovim image
|
||||
main_image = 'neovim', -- Main image display (either "neovim" or "file")
|
||||
-- client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
|
||||
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
|
||||
debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
|
||||
enable_line_number = false, -- Displays the current line number instead of the current project
|
||||
blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
|
||||
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
|
||||
file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
|
||||
show_time = true, -- Show the timer
|
||||
|
||||
-- Rich Presence text options
|
||||
editing_text = 'Editing %s', -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
file_explorer_text = 'Browsing %s', -- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
|
||||
git_commit_text = 'Committing changes', -- Format string rendered when committing changes in git (either string or function(filename: string): string)
|
||||
plugin_manager_text = 'Managing plugins', -- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
|
||||
reading_text = 'Reading %s', -- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
workspace_text = 'Working on %s', -- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
|
||||
line_number_text = 'Line %s out of %s', -- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
|
||||
}
|
||||
5
lua/plugins/render-markdown.lua
Normal file
5
lua/plugins/render-markdown.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
'tpope/vim-commentary',
|
||||
},
|
||||
}
|
||||
11
lua/plugins/resize.lua
Normal file
11
lua/plugins/resize.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
'0xm4n/resize.nvim',
|
||||
|
||||
keys = {
|
||||
-- Format: { 'key', 'command', desc = 'description', [opts]
|
||||
{ '<M-Left>', "<cmd>lua require('resize').ResizeLeft()<CR>", { silent = true } },
|
||||
{ '<M-Right>', "<cmd>lua require('resize').ResizeRight()<CR>", { silent = true } },
|
||||
{ '<M-Up>', "<cmd>lua require('resize').ResizeUp()<CR>", { silent = true } },
|
||||
{ '<M-Down>', "<cmd>lua require('resize').ResizeDown()<CR>", { silent = true } },
|
||||
},
|
||||
}
|
||||
6
lua/plugins/store.lua
Normal file
6
lua/plugins/store.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
'alex-popov-tech/store.nvim',
|
||||
dependencies = { 'OXY2DEV/markview.nvim' },
|
||||
opts = {},
|
||||
cmd = 'Store',
|
||||
}
|
||||
55
lua/plugins/themery.nvim.lua
Normal file
55
lua/plugins/themery.nvim.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
-- Plugin: zaldih/themery.nvim
|
||||
-- Installed via store.nvim
|
||||
|
||||
return {
|
||||
'zaldih/themery.nvim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('themery').setup {
|
||||
themes = {
|
||||
'zellner',
|
||||
'zaibatsu',
|
||||
'wildcharm',
|
||||
'vim',
|
||||
'unokai',
|
||||
'torte',
|
||||
'tokyonight-storm',
|
||||
'tokyonight-night',
|
||||
'tokyonight-day',
|
||||
'sorbet',
|
||||
'slate',
|
||||
'shine',
|
||||
'root-loops-old',
|
||||
'root-loops-dark',
|
||||
'root-loops',
|
||||
'ron',
|
||||
'retrobox',
|
||||
'randomhue',
|
||||
'quiet',
|
||||
'peachpuff',
|
||||
'pablo',
|
||||
'murphy',
|
||||
'morning',
|
||||
'miniwinter',
|
||||
'minisummer',
|
||||
'minispring',
|
||||
'minischeme',
|
||||
'minicyan',
|
||||
'miniautumn',
|
||||
'lunaperche',
|
||||
'koehler',
|
||||
'industry',
|
||||
'habamax',
|
||||
'evening',
|
||||
'elflord',
|
||||
'desert',
|
||||
'delek',
|
||||
'default',
|
||||
'darkblue',
|
||||
'blue',
|
||||
'tokyonight-moon',
|
||||
},
|
||||
livePreview = true,
|
||||
}
|
||||
end,
|
||||
}
|
||||
3
lua/plugins/tmux-status.lua
Normal file
3
lua/plugins/tmux-status.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
'vimpostor/vim-tpipeline',
|
||||
}
|
||||
5
lua/plugins/vim-indent-object.lua
Normal file
5
lua/plugins/vim-indent-object.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
'michaeljsmith/vim-indent-object',
|
||||
},
|
||||
}
|
||||
3
lua/plugins/vim-signature.lua
Normal file
3
lua/plugins/vim-signature.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
'kshenoy/vim-signature',
|
||||
}
|
||||
5
lua/plugins/vim-visual-multi.lua
Normal file
5
lua/plugins/vim-visual-multi.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
'mg979/vim-visual-multi',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user