feat: nvim tree

This commit is contained in:
Tom Sorabella 2024-04-12 03:34:24 -04:00
parent b7a6606f8b
commit 3b6204cfd1
3 changed files with 29 additions and 3 deletions

View File

@ -7,7 +7,7 @@ return {
local harpoon = require 'harpoon'
harpoon:setup {}
vim.keymap.set({ 'n' }, '<leader>a', function()
harpoon:list():append()
harpoon:list():add()
end, { desc = '[A]ppend File to harpoon' })
vim.keymap.set('n', '<C-e>', function()
harpoon.ui:toggle_quick_menu(harpoon:list())

View File

@ -22,4 +22,30 @@ return {
require('nvim-ts-autotag').setup()
end,
},
{
'nvim-tree/nvim-tree.lua',
version = '*',
lazy = false,
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
require('nvim-tree').setup {
sort = {
sorter = 'case_sensitive',
},
view = {
width = 50,
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
}
vim.keymap.set({ 'n' }, '<leader>st', ':NvimTreeFindFile<CR>', { desc = '[S]earch [T]ree' })
vim.keymap.set({ 'n' }, 'xx', ':NvimTreeFindFileToggle<CR>', { desc = '[C]lose NvimTree' })
end,
},
}

View File

@ -12,8 +12,8 @@ return {
typescriptreact = { 'eslint_d' },
javascriptreact = { 'eslint_d' },
-- dockerfile = { 'hadolint' },
json = { 'jsonlint' },
text = { 'vale' },
-- json = { 'jsonlint' },
-- text = { 'vale' },
}
-- To allow other plugins to add linters to require('lint').linters_by_ft,