nvim: add tree and better search
This commit is contained in:
@@ -134,4 +134,12 @@ cmp.setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- file tree
|
-- 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" },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
@@ -74,7 +74,13 @@ return require('packer').startup(function(use)
|
|||||||
lualine_b = {
|
lualine_b = {
|
||||||
'branch',
|
'branch',
|
||||||
},
|
},
|
||||||
lualine_c = { 'filename', require('nvim-navic').get_location },
|
lualine_c = {
|
||||||
|
{
|
||||||
|
'filename',
|
||||||
|
path = 1,
|
||||||
|
},
|
||||||
|
require('nvim-navic').get_location
|
||||||
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
'lsp_progress',
|
'lsp_progress',
|
||||||
{
|
{
|
||||||
@@ -134,10 +140,11 @@ return require('packer').startup(function(use)
|
|||||||
selection_caret = " ",
|
selection_caret = " ",
|
||||||
entry_prefix = " ",
|
entry_prefix = " ",
|
||||||
sorting_strategy = "ascending",
|
sorting_strategy = "ascending",
|
||||||
layout_strategy = "horizontal",
|
layout_strategy = "vertical",
|
||||||
layout_config = {
|
layout_config = {
|
||||||
horizontal = {
|
vertical = {
|
||||||
prompt_position = "top",
|
prompt_position = "top",
|
||||||
|
mirror = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user