feat: nvim tree
This commit is contained in:
parent
b7a6606f8b
commit
3b6204cfd1
|
@ -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())
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue