summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-07 16:23:41 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-07 16:23:41 +0300
commit6c52215796b04ee7e57d33007be638b82c7d6393 (patch)
treee01494899d05bf6b5e0082770b557a1d0697a8d4 /.config/nvim/lua/custom
parentb0f17bac68a172878904e0b20aeb38d713c94cb7 (diff)
Neovim: added spectre plugin
Diffstat (limited to '.config/nvim/lua/custom')
-rw-r--r--.config/nvim/lua/custom/plugins/TODO-edgy.lua38
-rw-r--r--.config/nvim/lua/custom/plugins/edgy.lua5
-rw-r--r--.config/nvim/lua/custom/plugins/utility.lua6
3 files changed, 7 insertions, 42 deletions
diff --git a/.config/nvim/lua/custom/plugins/TODO-edgy.lua b/.config/nvim/lua/custom/plugins/TODO-edgy.lua
deleted file mode 100644
index 05f0b98..0000000
--- a/.config/nvim/lua/custom/plugins/TODO-edgy.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-return {
- 'folke/edgy.nvim',
- event = 'VeryLazy',
- opts = {
- bottom = {
- 'Trouble',
- { ft = 'qf', title = 'QuickFix' },
- {
- ft = 'help',
- size = { height = 20 },
- filter = function(buf) -- only show help buffers
- return vim.bo[buf].buftype == 'help'
- end,
- },
- -- TODO: Add spectral
- -- { ft = 'spectre_panel', size = { height = 0.4 } },
- },
- left = {
- {
- title = 'Neo-Tree',
- ft = 'neo-tree',
- filter = function(buf)
- return vim.b[buf].neo_tree_source == 'filesystem'
- end,
- size = { height = 0.5 },
- },
- {
- title = 'Neo-Tree Git',
- ft = 'neo-tree',
- filter = function(buf)
- return vim.b[buf].neo_tree_source == 'git_status'
- end,
- pinned = true,
- open = 'Neotree position=right git_status',
- },
- },
- },
-}
diff --git a/.config/nvim/lua/custom/plugins/edgy.lua b/.config/nvim/lua/custom/plugins/edgy.lua
index 05f0b98..7f01245 100644
--- a/.config/nvim/lua/custom/plugins/edgy.lua
+++ b/.config/nvim/lua/custom/plugins/edgy.lua
@@ -4,7 +4,7 @@ return {
opts = {
bottom = {
'Trouble',
- { ft = 'qf', title = 'QuickFix' },
+ { ft = 'qf', title = 'QuickFix' },
{
ft = 'help',
size = { height = 20 },
@@ -12,8 +12,7 @@ return {
return vim.bo[buf].buftype == 'help'
end,
},
- -- TODO: Add spectral
- -- { ft = 'spectre_panel', size = { height = 0.4 } },
+ { ft = 'spectre_panel', size = { height = 0.4 } },
},
left = {
{
diff --git a/.config/nvim/lua/custom/plugins/utility.lua b/.config/nvim/lua/custom/plugins/utility.lua
index fe23cda..41f2925 100644
--- a/.config/nvim/lua/custom/plugins/utility.lua
+++ b/.config/nvim/lua/custom/plugins/utility.lua
@@ -50,11 +50,15 @@ return {
vim.g.undotree_DiffAutoOpen = false
vim.g.undotree_DiffpanelHeight = 0
vim.g.undotree_SetFocusWhenToggle = false
- vim.g.undotree_HelpLine = false
+ vim.g.undotree_HelpLine = false
vim.g.undotree_TreeNodeShape = ''
vim.g.undotree_TreeVertShape = '│'
vim.g.undotree_TreeSplitShape = '─┘'
vim.g.undotree_TreeReturnShape = '─┐'
end,
},
+ -- NOTE: No keybindings, use `:Spectre` or `:Spectre <file>`
+ -- Spectre has no undo, so it should be rarely used,
+ -- which is why no keybindings are defined
+ { 'nvim-pack/nvim-spectre', },
}