nvim: add tree and better search
This commit is contained in:
@@ -132,3 +132,6 @@ cmp.setup({
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
-- file tree
|
||||
map("n", "<C-b>", "<cmd> NvimTreeFindFileToggle<CR>", default_opts) -- Show file tree
|
||||
|
||||
@@ -285,6 +285,17 @@ return require('packer').startup(function(use)
|
||||
end
|
||||
})
|
||||
|
||||
-- file tree
|
||||
use {
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = {
|
||||
'kyazdani42/nvim-web-devicons', -- optional, for file icons
|
||||
},
|
||||
config = function ()
|
||||
require("nvim-tree").setup()
|
||||
end
|
||||
}
|
||||
|
||||
-- Automatically set up your configuration after cloning packer.nvim
|
||||
-- Put this at the end after all plugins
|
||||
if packer_bootstrap then
|
||||
|
||||
@@ -12,6 +12,8 @@ opt.showmode = false -- Disable status on most bottom row
|
||||
opt.clipboard = "unnamed" -- Copy & Paste with system clipboard
|
||||
opt.list = true -- Show trailing whitespaces
|
||||
opt.wrap = false -- Show trailing whitespaces
|
||||
opt.ignorecase = true -- Ignore case when searching
|
||||
opt.smartcase = true -- -> unless capitol letters are used
|
||||
|
||||
vim.opt.undofile = true -- Save undo history
|
||||
vim.o.mouse = 'a' -- Enable mouse
|
||||
|
||||
Reference in New Issue
Block a user