From b93b0bd73517f2bfd4587cda414a82fa15870c0a Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 20 Dec 2024 20:24:46 +0100 Subject: [PATCH] fix: update nvim config --- config/nvim/config/lazy.lua | 20 +++++--------------- config/nvim/config/options.lua | 2 +- config/nvim/plugins/colorscheme.lua | 2 +- config/nvim/plugins/disabled.lua | 8 ++++++-- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/config/nvim/config/lazy.lua b/config/nvim/config/lazy.lua index 62eea8d..ede6149 100644 --- a/config/nvim/config/lazy.lua +++ b/config/nvim/config/lazy.lua @@ -16,33 +16,23 @@ 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 = {}, checker = { - enabled = true, -- check for plugin updates periodically - notify = false, -- notify on update - }, -- automatically check for plugin updates + enabled = true, + notify = true, + }, performance = { rtp = { - -- disable some rtp plugins disabled_plugins = { "gzip", - -- "matchit", - -- "matchparen", - -- "netrwPlugin", + "netrwPlugin", "tarPlugin", "tohtml", "tutor", diff --git a/config/nvim/config/options.lua b/config/nvim/config/options.lua index 5236ecd..ffe07c0 100644 --- a/config/nvim/config/options.lua +++ b/config/nvim/config/options.lua @@ -1,5 +1,5 @@ -- Set some custom options. -local opt = vim.opt +local opt = vim.o local global = vim.g -- Set target text width for gww to 60. diff --git a/config/nvim/plugins/colorscheme.lua b/config/nvim/plugins/colorscheme.lua index 521c32e..ac12a3c 100644 --- a/config/nvim/plugins/colorscheme.lua +++ b/config/nvim/plugins/colorscheme.lua @@ -1,6 +1,6 @@ -- Configure rose-pine and gruvbox-material colorschemes. return { - { "rose-pine/neovim" }, + { "rose-pine/neovim", name = "rose-pine" }, { "sainnhe/gruvbox-material" }, { "LazyVim/LazyVim", diff --git a/config/nvim/plugins/disabled.lua b/config/nvim/plugins/disabled.lua index 6e249b0..999edb1 100644 --- a/config/nvim/plugins/disabled.lua +++ b/config/nvim/plugins/disabled.lua @@ -5,6 +5,7 @@ return { "folke/snacks.nvim", opts = { dashboard = { enabled = false }, + notifier = { level = vim.log.levels.WARN }, }, }, { @@ -16,6 +17,9 @@ return { }, -- Disable unused plugins. - { "flash.nvim", enabled = false }, - { "bufferline.nvim", enabled = false }, + { "folke/flash.nvim", enabled = false }, + { "folke/todo-comments.nvim", enabled = false }, + { "folke/trouble.nvim", enabled = false }, + { "MagicDuck/grug-far.nvim", enabled = false }, + { "akinsho/bufferline.nvim", enabled = false }, }