switch from nvimtree to neotree
This commit is contained in:
parent
615e8a4aae
commit
690372bd88
13 changed files with 69 additions and 69 deletions
|
|
@ -8,7 +8,8 @@ return {
|
|||
indicator = { style = "icon", icon = "▎" },
|
||||
diagnostics = 'nvim_lsp', -- | "nvim_lsp" | "coc",
|
||||
diagnostics_update_in_insert = false,
|
||||
offsets = { { filetype = "NvimTree", text = "File Explorer", padding = 1 } },
|
||||
-- offsets = { { filetype = "NvimTree", text = "File Explorer", padding = 1 } },
|
||||
offsets = { { filetype = "neo-tree", text = "File Explorer", padding = 1 } },
|
||||
separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' },
|
||||
always_show_bufferline = true,
|
||||
sort_by = "insert_at_end"
|
||||
|
|
|
|||
31
lua/custom/plugins/file-explorer.lua
Normal file
31
lua/custom/plugins/file-explorer.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
local ntree = require 'neo-tree'
|
||||
ntree.setup({
|
||||
close_if_last_window = true,
|
||||
window = {
|
||||
width = 30,
|
||||
mappings = {
|
||||
["o"] = "open",
|
||||
["F"] = "clear_filter",
|
||||
['e'] = function() vim.api.nvim_command('Neotree focus filesystem left') end,
|
||||
['b'] = function() vim.api.nvim_command('Neotree focus buffers left') end,
|
||||
['g'] = function() vim.api.nvim_command('Neotree focus git_status left') end,
|
||||
}
|
||||
},
|
||||
filesystem = {
|
||||
follow_current_file = true
|
||||
},
|
||||
source_selector = {
|
||||
winbar = true
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
|
|
@ -2,12 +2,17 @@
|
|||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
|
||||
return {
|
||||
'fatih/vim-go',
|
||||
'famiu/bufdelete.nvim',
|
||||
'ThePrimeagen/harpoon',
|
||||
'ThePrimeagen/vim-be-good',
|
||||
'stevearc/dressing.nvim',
|
||||
"onsails/lspkind.nvim"
|
||||
-- "rafamadriz/friendly-snippets"
|
||||
"onsails/lspkind.nvim",
|
||||
'lukas-reineke/cmp-rg',
|
||||
'onsails/diaglist.nvim',
|
||||
config = function()
|
||||
require('diaglist').init()
|
||||
end
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
return {
|
||||
'ray-x/lsp_signature.nvim',
|
||||
config = function()
|
||||
require('lsp_signature').setup {}
|
||||
config = function()
|
||||
local cfg = {
|
||||
floating_window_above_cur_line = true,
|
||||
doc_lines = 0,
|
||||
}
|
||||
require('lsp_signature').setup(cfg)
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup {
|
||||
filters = { custom = { "^.git$" } },
|
||||
}
|
||||
end,
|
||||
}
|
||||
}
|
||||
2
lua/custom/plugins/snippets.lua
Normal file
2
lua/custom/plugins/snippets.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
return {
|
||||
}
|
||||
|
|
@ -4,7 +4,6 @@ return {
|
|||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
config = function()
|
||||
require("trouble").setup {
|
||||
}
|
||||
require("trouble").setup {}
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue