common: change from neotree to nvim-tree
This commit is contained in:
parent
36c96d4e31
commit
f54bc8e7d8
|
@ -33,7 +33,7 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist)
|
|||
|
||||
-- Plugins
|
||||
vim.keymap.set('n', '<leader>nb', ":Navbuddy<CR>", { desc = '[N]av[b]uddy' })
|
||||
vim.keymap.set('n', '<leader>nt', ":NeoTreeShowToggle<CR>", { desc = '[N]av[b]uddy' })
|
||||
vim.keymap.set('n', '<leader>nt', ":NvimTreeToggle<CR>", { desc = '[N]vim[T]ree' })
|
||||
|
||||
-- terminal keymaps
|
||||
function _G.set_terminal_keymaps()
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
-- [[ Setting options ]]
|
||||
-- See `:help vim.o`
|
||||
|
||||
-- disable netrw
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- Set highlight on search
|
||||
vim.o.hlsearch = false
|
||||
|
||||
|
|
|
@ -139,24 +139,21 @@ return {
|
|||
},
|
||||
|
||||
{
|
||||
-- file tree
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
version = '*',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||
'MunifTanjim/nui.nvim',
|
||||
'projekt0n/circles.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
icons = { empty = '●', filled = '○', lsp_prefix = '●' },
|
||||
},
|
||||
config = function()
|
||||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||
vim.cmd [[ let g:neo_tree_remove_legacy_commands = 1 ]]
|
||||
},
|
||||
|
||||
require('neo-tree').setup {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignored = false,
|
||||
-- file menu
|
||||
{
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
config = function()
|
||||
require('nvim-tree').setup {
|
||||
renderer = {
|
||||
icons = {
|
||||
glyphs = require('circles').get_nvimtree_glyphs(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue