From 21479030d53441f87a7756e7103f0eb8d52fc251 Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 17 Apr 2024 15:31:27 +0200 Subject: [PATCH] vim: disable lazy loading, remove yaml stuff, add new plugins --- .config/nvim/init.lua | 2 +- .config/nvim/lua/config/init.lua | 2 +- .config/nvim/lua/config/yaml.lua | 6 ------ .config/nvim/lua/plugins/fugitive.lua | 6 ++++++ .config/nvim/lua/plugins/gitsigns.lua | 6 ++++++ .config/nvim/lua/plugins/monokai.lua | 3 +-- .config/nvim/lua/plugins/telescope.lua | 1 + 7 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 .config/nvim/lua/config/yaml.lua create mode 100644 .config/nvim/lua/plugins/fugitive.lua create mode 100644 .config/nvim/lua/plugins/gitsigns.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 3491802..6647526 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -15,7 +15,7 @@ vim.opt.rtp:prepend(lazypath) vim.g.mapleader = " " require("lazy").setup("plugins", { - defaults = { lazy = true }, + defaults = { lazy = false }, install = { colorscheme = { "tokyonight" } }, checker = { enabled = false }, change_detection = { notify = false }, diff --git a/.config/nvim/lua/config/init.lua b/.config/nvim/lua/config/init.lua index 75c2030..814c587 100644 --- a/.config/nvim/lua/config/init.lua +++ b/.config/nvim/lua/config/init.lua @@ -1,5 +1,5 @@ require("config.settings") -require("config.yaml") +-- require("config.yaml") -- Remaps vim.keymap.set("n", "", vim.cmd.Ex) diff --git a/.config/nvim/lua/config/yaml.lua b/.config/nvim/lua/config/yaml.lua deleted file mode 100644 index d8b0ae1..0000000 --- a/.config/nvim/lua/config/yaml.lua +++ /dev/null @@ -1,6 +0,0 @@ -vim.api.nvim_create_autocmd("FileType", { - pattern = "yaml", - callback = function() - vim.opt_local.expandtab = false - end -}) diff --git a/.config/nvim/lua/plugins/fugitive.lua b/.config/nvim/lua/plugins/fugitive.lua new file mode 100644 index 0000000..cc30fbb --- /dev/null +++ b/.config/nvim/lua/plugins/fugitive.lua @@ -0,0 +1,6 @@ +local fugitive = { + 'tpope/vim-fugitive', +} + +return fugitive + diff --git a/.config/nvim/lua/plugins/gitsigns.lua b/.config/nvim/lua/plugins/gitsigns.lua new file mode 100644 index 0000000..d7fc6a8 --- /dev/null +++ b/.config/nvim/lua/plugins/gitsigns.lua @@ -0,0 +1,6 @@ +local gitsigns = { + 'lewis6991/gitsigns.nvim', +} + +return gitsigns + diff --git a/.config/nvim/lua/plugins/monokai.lua b/.config/nvim/lua/plugins/monokai.lua index e83d477..f07f0a1 100644 --- a/.config/nvim/lua/plugins/monokai.lua +++ b/.config/nvim/lua/plugins/monokai.lua @@ -1,10 +1,9 @@ local monokai = { 'tanvirtin/monokai.nvim', - lazy = false, - priority = 1000, config = function() vim.cmd([[colorscheme monokai]]) end } return { monokai } + diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index aaed40f..e468200 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -6,3 +6,4 @@ local telescope = { } return { telescope } +