Rename nvim to lazyvim
This commit is contained in:
3
lazyvim/.config/nvim/lua/config/autocmds.lua
Normal file
3
lazyvim/.config/nvim/lua/config/autocmds.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
||||
9
lazyvim/.config/nvim/lua/config/keymaps.lua
Normal file
9
lazyvim/.config/nvim/lua/config/keymaps.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
--vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<leader>sx",
|
||||
-- require("telescope.builtin").resume,
|
||||
-- { noremap = false, silent = false, desc = "Resume" }
|
||||
--)
|
||||
50
lazyvim/.config/nvim/lua/config/lazy.lua
Normal file
50
lazyvim/.config/nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
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)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
4
lazyvim/.config/nvim/lua/config/options.lua
Normal file
4
lazyvim/.config/nvim/lua/config/options.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
vim.opt.winbar = "%=%m %f"
|
||||
16
lazyvim/.config/nvim/lua/plugins/alpha.lua
Normal file
16
lazyvim/.config/nvim/lua/plugins/alpha.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
opts = function(_, opts)
|
||||
local logo = [[
|
||||
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
|
||||
████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
|
||||
██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
|
||||
██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||
██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||
╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
|
||||
|
||||
[ @elijahmanor ]
|
||||
]]
|
||||
opts.section.header.val = vim.split(logo, "\n", { trimempty = true })
|
||||
end,
|
||||
}
|
||||
9
lazyvim/.config/nvim/lua/plugins/colorscheme.lua
Normal file
9
lazyvim/.config/nvim/lua/plugins/colorscheme.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {
|
||||
transparent_background = false,
|
||||
},
|
||||
}
|
||||
3
lazyvim/.config/nvim/lua/plugins/disabled.lua
Normal file
3
lazyvim/.config/nvim/lua/plugins/disabled.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
{ "windwp/nvim-spectre", enabled = false },
|
||||
}
|
||||
13
lazyvim/.config/nvim/lua/plugins/file-browser.lua
Normal file
13
lazyvim/.config/nvim/lua/plugins/file-browser.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"nvim-telescope/telescope-file-browser.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>sB",
|
||||
":Telescope file_browser path=%:p:h=%:p:h<cr>",
|
||||
desc = "Browser Files",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("telescope").load_extension("file_browser")
|
||||
end,
|
||||
}
|
||||
6
lazyvim/.config/nvim/lua/plugins/lazyvim.lua
Normal file
6
lazyvim/.config/nvim/lua/plugins/lazyvim.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "catppuccin-frappe",
|
||||
},
|
||||
}
|
||||
10
lazyvim/.config/nvim/lua/plugins/markdown-preview.lua
Normal file
10
lazyvim/.config/nvim/lua/plugins/markdown-preview.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
build = "cd app && yarn install",
|
||||
init = function()
|
||||
vim.g.mkdp_filetypes = { "markdown" }
|
||||
vim.g.mkdp_auto_start = 1
|
||||
end,
|
||||
ft = { "markdown" },
|
||||
}
|
||||
17
lazyvim/.config/nvim/lua/plugins/multicursors.lua
Normal file
17
lazyvim/.config/nvim/lua/plugins/multicursors.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"smoka7/multicursors.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvimtools/hydra.nvim",
|
||||
},
|
||||
opts = {},
|
||||
cmd = { "MCstart", "MCvisual", "MCclear", "MCpattern", "MCvisualPattern", "MCunderCursor" },
|
||||
keys = {
|
||||
{
|
||||
mode = { "v", "n" },
|
||||
"<Leader>m",
|
||||
"<cmd>MCstart<cr>",
|
||||
desc = "Create a selection for selected text or word under the cursor",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user