From 359dafd75ec2bb38c6bb5afd9708177250889a9f Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Sat, 9 Mar 2024 22:33:19 +0530 Subject: [PATCH] NVIM - Housekeeping --- .../nvim/lua/plugins/coding-generic.lua | 52 ------------------ common/.config/nvim/lua/plugins/editor.lua | 55 ++++++++++++++++++- 2 files changed, 53 insertions(+), 54 deletions(-) diff --git a/common/.config/nvim/lua/plugins/coding-generic.lua b/common/.config/nvim/lua/plugins/coding-generic.lua index c4b54d8..a1a95e8 100644 --- a/common/.config/nvim/lua/plugins/coding-generic.lua +++ b/common/.config/nvim/lua/plugins/coding-generic.lua @@ -1,8 +1,4 @@ return { - { "tpope/vim-repeat" }, - { "easymotion/vim-easymotion" }, - { "machakann/vim-highlightedyank" }, - -- Better surround than tpope/vim-surround { "kylechui/nvim-surround", @@ -32,54 +28,6 @@ return { opts = {}, }, - -- indent guides for Neovim - { - "lukas-reineke/indent-blankline.nvim", - opts = { - indent = { char = "│", tab_char = "│" }, - scope = { enabled = false }, - exclude = { - filetypes = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - }, - }, - }, - main = "ibl", - }, - - -- Highlights the current level of indentation, and animates the highlighting. - { - "echasnovski/mini.indentscope", - opts = { symbol = "│", options = { try_as_border = true } }, - init = function() - vim.api.nvim_create_autocmd("FileType", { - pattern = { - "help", - "neo-tree", - "Trouble", - "trouble", - "lazy", - "mason", - "notify", - "toggleterm", - }, - callback = function() - vim.b.miniindentscope_disable = true - end, - }) - end, - }, - -- Finds and lists all of the TODO, HACK, BUG, etc comment { "folke/todo-comments.nvim", diff --git a/common/.config/nvim/lua/plugins/editor.lua b/common/.config/nvim/lua/plugins/editor.lua index 2655b44..dc986a7 100644 --- a/common/.config/nvim/lua/plugins/editor.lua +++ b/common/.config/nvim/lua/plugins/editor.lua @@ -1,5 +1,10 @@ return { + { "tpope/vim-repeat" }, + { "easymotion/vim-easymotion" }, + { "machakann/vim-highlightedyank" }, + { "unblevable/quick-scope" }, + -- Changes the Nvim root to git root { "airblade/vim-rooter", @@ -8,6 +13,54 @@ return { end, }, + -- indent guides for Neovim + { + "lukas-reineke/indent-blankline.nvim", + opts = { + indent = { char = "│", tab_char = "│" }, + scope = { enabled = false }, + exclude = { + filetypes = { + "help", + "alpha", + "dashboard", + "neo-tree", + "Trouble", + "trouble", + "lazy", + "mason", + "notify", + "toggleterm", + "lazyterm", + }, + }, + }, + main = "ibl", + }, + + -- Highlights the current level of indentation, and animates the highlighting. + { + "echasnovski/mini.indentscope", + opts = { symbol = "│", options = { try_as_border = true } }, + init = function() + vim.api.nvim_create_autocmd("FileType", { + pattern = { + "help", + "neo-tree", + "Trouble", + "trouble", + "lazy", + "mason", + "notify", + "toggleterm", + }, + callback = function() + vim.b.miniindentscope_disable = true + end, + }) + end, + }, + -- File Explorer { "nvim-neo-tree/neo-tree.nvim", @@ -310,8 +363,6 @@ return { -- Set lualine as statusline { "nvim-lualine/lualine.nvim", - -- See `:help lualine.txt` - -- init = function() vim.g.lualine_laststatus = vim.o.laststatus if vim.fn.argc(-1) > 0 then