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
|
-- Plugins
|
||||||
vim.keymap.set('n', '<leader>nb', ":Navbuddy<CR>", { desc = '[N]av[b]uddy' })
|
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
|
-- terminal keymaps
|
||||||
function _G.set_terminal_keymaps()
|
function _G.set_terminal_keymaps()
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
-- [[ Setting options ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.o`
|
-- See `:help vim.o`
|
||||||
|
|
||||||
|
-- disable netrw
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
-- Set highlight on search
|
-- Set highlight on search
|
||||||
vim.o.hlsearch = false
|
vim.o.hlsearch = false
|
||||||
|
|
||||||
|
|
|
@ -139,24 +139,21 @@ return {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
-- file tree
|
'projekt0n/circles.nvim',
|
||||||
'nvim-neo-tree/neo-tree.nvim',
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
version = '*',
|
opts = {
|
||||||
dependencies = {
|
icons = { empty = '●', filled = '○', lsp_prefix = '●' },
|
||||||
'nvim-lua/plenary.nvim',
|
|
||||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
|
||||||
'MunifTanjim/nui.nvim',
|
|
||||||
},
|
},
|
||||||
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 {
|
-- file menu
|
||||||
filesystem = {
|
{
|
||||||
filtered_items = {
|
'nvim-tree/nvim-tree.lua',
|
||||||
visible = true,
|
config = function()
|
||||||
hide_dotfiles = false,
|
require('nvim-tree').setup {
|
||||||
hide_gitignored = false,
|
renderer = {
|
||||||
|
icons = {
|
||||||
|
glyphs = require('circles').get_nvimtree_glyphs(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue