Add nvim-tree and hop, with key binds. Disable netrw (for nvim-tree)

This commit is contained in:
Edward Litherland-Smith 2022-09-23 17:48:12 +01:00
parent 4c4113803c
commit 482b3c2632
2 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,7 @@
-- Disable netrw
vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1
-- lualine config -- lualine config
require('lualine').setup{ require('lualine').setup{
options = { options = {
@ -11,6 +15,14 @@ require('lualine').setup{
extensions = {'aerial', 'fugitive', 'fzf', 'nerdtree', 'toggleterm'} extensions = {'aerial', 'fugitive', 'fzf', 'nerdtree', 'toggleterm'}
} }
-- nvim-tree setup
require('nvim-tree').setup{
filters = { custom = { "^.git$" } }
}
-- hop setup
require('hop').setup()
-- toggleterm config -- toggleterm config
require('toggleterm').setup{ require('toggleterm').setup{
open_mapping = [[\t]], open_mapping = [[\t]],

View file

@ -25,6 +25,7 @@ Plug 'tpope/vim-commentary'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'nvim-lualine/lualine.nvim' Plug 'nvim-lualine/lualine.nvim'
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
Plug 'kyazdani42/nvim-tree.lua'
Plug 'christoomey/vim-tmux-navigator' Plug 'christoomey/vim-tmux-navigator'
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v2.*'} Plug 'akinsho/toggleterm.nvim', {'tag' : 'v2.*'}
Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-nvim-lsp'
@ -38,6 +39,7 @@ Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
Plug 'rcarriga/nvim-notify' Plug 'rcarriga/nvim-notify'
Plug 'michaelb/sniprun', {'do': 'bash install.sh'} Plug 'michaelb/sniprun', {'do': 'bash install.sh'}
Plug 'phaazon/hop.nvim'
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
@ -104,8 +106,9 @@ nnoremap <leader>fe <cmd>Telescope diagnostics<cr>
nnoremap <leader>fn <cmd>Telescope notify<cr> nnoremap <leader>fn <cmd>Telescope notify<cr>
nnoremap <leader>ft <cmd>Telescope treesitter<cr> nnoremap <leader>ft <cmd>Telescope treesitter<cr>
nnoremap <leader>fz <cmd>Telescope current_buffer_fuzzy_find<cr> nnoremap <leader>fz <cmd>Telescope current_buffer_fuzzy_find<cr>
nnoremap <leader>hl <cmd>HopLine<cr>
nnoremap <leader>hw <cmd>HopWord<cr>
nnoremap <leader>nt <cmd>NvimTreeToggle<cr>
set splitbelow set splitbelow
set splitright set splitright
let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+'