Neovim: refactored more files, including trouble, neotree, edgy and oil
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
- TODO: Remove the vsc*de snippets/completions and make my own luasnip snippets [tutorial](https://www.youtube.com/watch?v=FmHhonPjvvA)
|
||||
- TODO: Setup [nvim spectre](https://github.com/nvim-pack/nvim-spectre)
|
||||
|
||||
- TODO: learn what dot repeat is
|
||||
|
||||
# VERY IMPORTANT
|
||||
|
||||
## TODO: Code actions
|
||||
|
||||
@@ -12,7 +12,8 @@ return {
|
||||
return vim.bo[buf].buftype == 'help'
|
||||
end,
|
||||
},
|
||||
{ ft = 'spectre_panel', size = { height = 0.4 } },
|
||||
-- TODO: Add spectral
|
||||
-- { ft = 'spectre_panel', size = { height = 0.4 } },
|
||||
},
|
||||
left = {
|
||||
{
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
return {
|
||||
{ 'Bilal2453/luvit-meta', lazy = true },
|
||||
{
|
||||
'folke/lazydev.nvim',
|
||||
ft = 'lua',
|
||||
opts = {
|
||||
library = {
|
||||
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
38
.config/nvim/lua/custom/plugins/edgy.lua
Normal file
38
.config/nvim/lua/custom/plugins/edgy.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
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',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -12,9 +12,14 @@ return {
|
||||
'ggandor/leap.nvim',
|
||||
dependencies = { 'tpope/vim-repeat' },
|
||||
config = function()
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, 's', '<Plug>(leap-forward)')
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, 'S', '<Plug>(leap-backward)')
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, 'gs', '<Plug>(leap-from-window)')
|
||||
-- vim.keymap.set({ 'n', 'x', 'o' }, 's', '<Plug>(leap-forward)')
|
||||
-- vim.keymap.set({ 'n', 'x', 'o' }, 'S', '<Plug>(leap-backward)')
|
||||
-- vim.keymap.set({ 'n', 'x', 'o' }, 'gs', '<Plug>(leap-from-window)')
|
||||
|
||||
vim.keymap.set('n', 's', '<Plug>(leap)')
|
||||
vim.keymap.set('n', 'S', '<Plug>(leap-from-window)')
|
||||
vim.keymap.set({ 'x', 'o' }, 's', '<Plug>(leap-forward)')
|
||||
vim.keymap.set({ 'x', 'o' }, 'S', '<Plug>(leap-backward)')
|
||||
|
||||
-- Define equivalence classes for brackets and quotes, in addition to
|
||||
-- the default whitespace group.
|
||||
@@ -68,8 +73,8 @@ return {
|
||||
vim.keymap.set('v', '{', '<Plug>(nvim-surround-visual){')
|
||||
vim.keymap.set('v', '}', '<Plug>(nvim-surround-visual)}')
|
||||
-- I still want to be able to do < and > for indentation
|
||||
-- vim.keymap.set('v', '<', '<Plug>(nvim-surround-visual)<', opts)
|
||||
-- vim.keymap.set('v', '>', '<Plug>(nvim-surround-visual)>', opts)
|
||||
-- vim.keymap.set('v', '<', '<Plug>(nvim-surround-visual)<')
|
||||
-- vim.keymap.set('v', '>', '<Plug>(nvim-surround-visual)>')
|
||||
vim.keymap.set('v', '[', '<Plug>(nvim-surround-visual)[')
|
||||
vim.keymap.set('v', ']', '<Plug>(nvim-surround-visual)]')
|
||||
vim.keymap.set('v', "'", "<Plug>(nvim-surround-visual)'")
|
||||
|
||||
@@ -10,6 +10,8 @@ return {
|
||||
['<C-k>'] = false,
|
||||
['<C-j>'] = false,
|
||||
['<M-h>'] = 'actions.select_split',
|
||||
['<C-r>'] = 'actions.refresh',
|
||||
['<C-q>'] = "actions.close"
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
|
||||
@@ -2,9 +2,12 @@ return {
|
||||
'folke/trouble.nvim',
|
||||
opts = {},
|
||||
cmd = 'Trouble',
|
||||
-- TODO: Consider maybe using this for outlines (code structure)
|
||||
-- and also configuring some of the keys to better fit me
|
||||
-- and probably removing most of them in the process
|
||||
keys = {
|
||||
{
|
||||
'<leader>xx',
|
||||
'<leader>xx',
|
||||
'<cmd>Trouble diagnostics toggle<cr>',
|
||||
desc = 'Diagnostics (Trouble)',
|
||||
},
|
||||
@@ -37,4 +37,10 @@ return {
|
||||
vim.keymap.set('n', '<leader>nc', ':Telescope neoclip plus<cr>', { desc = '[N]eo[c]lip History' })
|
||||
end,
|
||||
},
|
||||
{ 'Bilal2453/luvit-meta', lazy = true },
|
||||
{
|
||||
'folke/lazydev.nvim',
|
||||
ft = 'lua',
|
||||
opts = { library = { { path = 'luvit-meta/library', words = { 'vim%.uv' } } } },
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user