Add nvim-tree and hop, with key binds. Disable netrw (for nvim-tree)
This commit is contained in:
parent
4c4113803c
commit
482b3c2632
12
init.lua
12
init.lua
|
@ -1,3 +1,7 @@
|
|||
-- Disable netrw
|
||||
vim.g.loaded = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- lualine config
|
||||
require('lualine').setup{
|
||||
options = {
|
||||
|
@ -11,6 +15,14 @@ require('lualine').setup{
|
|||
extensions = {'aerial', 'fugitive', 'fzf', 'nerdtree', 'toggleterm'}
|
||||
}
|
||||
|
||||
-- nvim-tree setup
|
||||
require('nvim-tree').setup{
|
||||
filters = { custom = { "^.git$" } }
|
||||
}
|
||||
|
||||
-- hop setup
|
||||
require('hop').setup()
|
||||
|
||||
-- toggleterm config
|
||||
require('toggleterm').setup{
|
||||
open_mapping = [[\t]],
|
||||
|
|
7
init.vim
7
init.vim
|
@ -25,6 +25,7 @@ Plug 'tpope/vim-commentary'
|
|||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'nvim-lualine/lualine.nvim'
|
||||
Plug 'kyazdani42/nvim-web-devicons'
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v2.*'}
|
||||
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 'rcarriga/nvim-notify'
|
||||
Plug 'michaelb/sniprun', {'do': 'bash install.sh'}
|
||||
Plug 'phaazon/hop.nvim'
|
||||
|
||||
" Initialize plugin system
|
||||
call plug#end()
|
||||
|
@ -104,8 +106,9 @@ nnoremap <leader>fe <cmd>Telescope diagnostics<cr>
|
|||
nnoremap <leader>fn <cmd>Telescope notify<cr>
|
||||
nnoremap <leader>ft <cmd>Telescope treesitter<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 splitright
|
||||
|
||||
let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+'
|
||||
|
|
Loading…
Reference in a new issue