diff --git a/.gitignore b/.gitignore index cc5457a..6dafc3b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,20 @@ +* +!lua/ +!lua/** +!plugin/ +!plugin/** +!.gitignore +!.neoconf.json +!LICENSE +!README.md +!init.lua +!lazy-lock.json +!lazyvim.json +!stylua.toml + tt.* .tests doc/tags debug -.repro -foo.* *.log data diff --git a/README.md b/README.md index 185280b..cc0644b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -# 💤 LazyVim +# Neovim Configuration -A starter template for [LazyVim](https://github.com/LazyVim/LazyVim). -Refer to the [documentation](https://lazyvim.github.io/installation) to get started. +Personal Neovim configuration built on [LazyVim](https://github.com/LazyVim/LazyVim). diff --git a/init.lua b/init.lua index 2514f9e..55b8979 100644 --- a/init.lua +++ b/init.lua @@ -1,2 +1 @@ --- bootstrap lazy.nvim, LazyVim and your plugins require("config.lazy") diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 4221e75..e69de29 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -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") diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 2c134f7..e69de29 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -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 diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index d73bfa1..dcdc5a7 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -16,33 +16,22 @@ 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 + version = false, }, install = { colorscheme = { "tokyonight", "habamax" } }, checker = { - enabled = true, -- check for plugin updates periodically - notify = false, -- notify on update - }, -- automatically check for plugin updates + enabled = true, + notify = false, + }, performance = { rtp = { - -- disable some rtp plugins disabled_plugins = { "gzip", - -- "matchit", - -- "matchparen", - -- "netrwPlugin", "tarPlugin", "tohtml", "tutor", diff --git a/lua/config/options.lua b/lua/config/options.lua index 475f916..4c5c22c 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -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.opt.relativenumber = false vim.keymap.set("n", "Q", "tabclose", { silent = true }) diff --git a/lua/plugins/example.lua b/lua/plugins/language-tools.lua similarity index 100% rename from lua/plugins/example.lua rename to lua/plugins/language-tools.lua diff --git a/lua/plugins/snacks-animated-scrolling-off.lua b/lua/plugins/snacks-animated-scrolling-off.lua index cbb0a58..a092ac6 100644 --- a/lua/plugins/snacks-animated-scrolling-off.lua +++ b/lua/plugins/snacks-animated-scrolling-off.lua @@ -2,7 +2,7 @@ return { "folke/snacks.nvim", opts = { scroll = { - enabled = false, -- Disable scrolling animations + enabled = false, }, }, } diff --git a/plugin/after/transparency.lua b/plugin/after/transparency.lua index add6fd6..0934d88 100644 --- a/plugin/after/transparency.lua +++ b/plugin/after/transparency.lua @@ -1,4 +1,3 @@ --- Make highlight groups transparent while preserving their other attributes local function make_transparent(name) local ok, hl = pcall(vim.api.nvim_get_hl, 0, { name = name, link = false }) if ok then @@ -8,7 +7,6 @@ local function make_transparent(name) end local groups = { - -- transparent background "Normal", "NormalFloat", "FloatBorder", @@ -26,17 +24,14 @@ local groups = { "TelescopeNormal", "TelescopePromptBorder", "TelescopePromptTitle", - -- neotree "NeoTreeNormal", "NeoTreeNormalNC", "NeoTreeVertSplit", "NeoTreeWinSeparator", "NeoTreeEndOfBuffer", - -- nvim-tree "NvimTreeNormal", "NvimTreeVertSplit", "NvimTreeEndOfBuffer", - -- notify "NotifyINFOBody", "NotifyERRORBody", "NotifyWARNBody",