nvim: add tree and better search

This commit is contained in:
Marco Thomas
2022-08-18 10:33:53 +02:00
parent 6e87fed08d
commit 10e2603063
3 changed files with 16 additions and 0 deletions

View File

@@ -132,3 +132,6 @@ cmp.setup({
}), }),
}, },
}) })
-- file tree
map("n", "<C-b>", "<cmd> NvimTreeFindFileToggle<CR>", default_opts) -- Show file tree

View File

@@ -285,6 +285,17 @@ return require('packer').startup(function(use)
end 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 -- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins -- Put this at the end after all plugins
if packer_bootstrap then if packer_bootstrap then

View File

@@ -12,6 +12,8 @@ opt.showmode = false -- Disable status on most bottom row
opt.clipboard = "unnamed" -- Copy & Paste with system clipboard opt.clipboard = "unnamed" -- Copy & Paste with system clipboard
opt.list = true -- Show trailing whitespaces opt.list = true -- Show trailing whitespaces
opt.wrap = false -- 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.opt.undofile = true -- Save undo history
vim.o.mouse = 'a' -- Enable mouse vim.o.mouse = 'a' -- Enable mouse