Reformat
This commit is contained in:
+14
-2
@@ -1,8 +1,20 @@
|
|||||||
|
*
|
||||||
|
!lua/
|
||||||
|
!lua/**
|
||||||
|
!plugin/
|
||||||
|
!plugin/**
|
||||||
|
!.gitignore
|
||||||
|
!.neoconf.json
|
||||||
|
!LICENSE
|
||||||
|
!README.md
|
||||||
|
!init.lua
|
||||||
|
!lazy-lock.json
|
||||||
|
!lazyvim.json
|
||||||
|
!stylua.toml
|
||||||
|
|
||||||
tt.*
|
tt.*
|
||||||
.tests
|
.tests
|
||||||
doc/tags
|
doc/tags
|
||||||
debug
|
debug
|
||||||
.repro
|
|
||||||
foo.*
|
|
||||||
*.log
|
*.log
|
||||||
data
|
data
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# 💤 LazyVim
|
# Neovim Configuration
|
||||||
|
|
||||||
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
|
Personal Neovim configuration built on [LazyVim](https://github.com/LazyVim/LazyVim).
|
||||||
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
|
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
-- 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
|
|
||||||
-- with `vim.api.nvim_create_autocmd`
|
|
||||||
--
|
|
||||||
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
|
||||||
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
-- 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
|
|
||||||
|
|||||||
+4
-15
@@ -16,33 +16,22 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
-- import/override with your plugins
|
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
defaults = {
|
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,
|
lazy = false,
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
version = false,
|
||||||
-- 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" } },
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
checker = {
|
checker = {
|
||||||
enabled = true, -- check for plugin updates periodically
|
enabled = true,
|
||||||
notify = false, -- notify on update
|
notify = false,
|
||||||
}, -- automatically check for plugin updates
|
},
|
||||||
performance = {
|
performance = {
|
||||||
rtp = {
|
rtp = {
|
||||||
-- disable some rtp plugins
|
|
||||||
disabled_plugins = {
|
disabled_plugins = {
|
||||||
"gzip",
|
"gzip",
|
||||||
-- "matchit",
|
|
||||||
-- "matchparen",
|
|
||||||
-- "netrwPlugin",
|
|
||||||
"tarPlugin",
|
"tarPlugin",
|
||||||
"tohtml",
|
"tohtml",
|
||||||
"tutor",
|
"tutor",
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
-- 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.o.exrc = true
|
vim.o.exrc = true
|
||||||
vim.opt.relativenumber = false
|
vim.opt.relativenumber = false
|
||||||
vim.keymap.set("n", "Q", "<cmd>tabclose<CR>", { silent = true })
|
vim.keymap.set("n", "Q", "<cmd>tabclose<CR>", { silent = true })
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ return {
|
|||||||
"folke/snacks.nvim",
|
"folke/snacks.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
scroll = {
|
scroll = {
|
||||||
enabled = false, -- Disable scrolling animations
|
enabled = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
-- Make highlight groups transparent while preserving their other attributes
|
|
||||||
local function make_transparent(name)
|
local function make_transparent(name)
|
||||||
local ok, hl = pcall(vim.api.nvim_get_hl, 0, { name = name, link = false })
|
local ok, hl = pcall(vim.api.nvim_get_hl, 0, { name = name, link = false })
|
||||||
if ok then
|
if ok then
|
||||||
@@ -8,7 +7,6 @@ local function make_transparent(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local groups = {
|
local groups = {
|
||||||
-- transparent background
|
|
||||||
"Normal",
|
"Normal",
|
||||||
"NormalFloat",
|
"NormalFloat",
|
||||||
"FloatBorder",
|
"FloatBorder",
|
||||||
@@ -26,17 +24,14 @@ local groups = {
|
|||||||
"TelescopeNormal",
|
"TelescopeNormal",
|
||||||
"TelescopePromptBorder",
|
"TelescopePromptBorder",
|
||||||
"TelescopePromptTitle",
|
"TelescopePromptTitle",
|
||||||
-- neotree
|
|
||||||
"NeoTreeNormal",
|
"NeoTreeNormal",
|
||||||
"NeoTreeNormalNC",
|
"NeoTreeNormalNC",
|
||||||
"NeoTreeVertSplit",
|
"NeoTreeVertSplit",
|
||||||
"NeoTreeWinSeparator",
|
"NeoTreeWinSeparator",
|
||||||
"NeoTreeEndOfBuffer",
|
"NeoTreeEndOfBuffer",
|
||||||
-- nvim-tree
|
|
||||||
"NvimTreeNormal",
|
"NvimTreeNormal",
|
||||||
"NvimTreeVertSplit",
|
"NvimTreeVertSplit",
|
||||||
"NvimTreeEndOfBuffer",
|
"NvimTreeEndOfBuffer",
|
||||||
-- notify
|
|
||||||
"NotifyINFOBody",
|
"NotifyINFOBody",
|
||||||
"NotifyERRORBody",
|
"NotifyERRORBody",
|
||||||
"NotifyWARNBody",
|
"NotifyWARNBody",
|
||||||
|
|||||||
Reference in New Issue
Block a user