nvim: add tree and better search

This commit is contained in:
Marco Thomas
2022-08-18 10:33:53 +02:00
parent 10e2603063
commit 32b4699199
2 changed files with 20 additions and 5 deletions

View File

@@ -134,4 +134,12 @@ cmp.setup({
})
-- file tree
map("n", "<C-b>", "<cmd> NvimTreeFindFileToggle<CR>", default_opts) -- Show file tree
map("n", "<C-t>", "<cmd> NvimTreeFindFileToggle<CR>", default_opts) -- Show file tree
map("n", "<leader>tc", "<cmd> NvimTreeCollapse<CR>", default_opts) -- Collapse tree
wk.register({
["<leader>"] = {
t = {
c = { "Collapse Tree" },
}
}
})

View File

@@ -74,7 +74,13 @@ return require('packer').startup(function(use)
lualine_b = {
'branch',
},
lualine_c = { 'filename', require('nvim-navic').get_location },
lualine_c = {
{
'filename',
path = 1,
},
require('nvim-navic').get_location
},
lualine_x = {
'lsp_progress',
{
@@ -134,10 +140,11 @@ return require('packer').startup(function(use)
selection_caret = " ",
entry_prefix = " ",
sorting_strategy = "ascending",
layout_strategy = "horizontal",
layout_strategy = "vertical",
layout_config = {
horizontal = {
vertical = {
prompt_position = "top",
mirror = true,
}
}
},