diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-08-22 21:32:16 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-08-22 21:33:11 +0300 |
commit | f4784574f16b8730e6252007f00e3960199a9231 (patch) | |
tree | a3a553c8b8c9337701474f69015f14c34da7926a /nvim | |
parent | 8c1a386208fbccead7c641527703f9660bebf99f (diff) | |
download | dotfiles-f4784574f16b8730e6252007f00e3960199a9231.tar.gz |
feat(nvim)!: switch to nvim-tree.lua
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/init.vim | 2 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/nvim-tree.lua | 13 | ||||
-rw-r--r-- | nvim/.config/nvim/startify.vim | 5 | ||||
-rw-r--r-- | nvim/.config/nvim/vim-plug/plugins.vim | 7 |
4 files changed, 18 insertions, 9 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 71be1c6..aad7ecd 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -70,9 +70,9 @@ nnoremap <Leader>r :Telescope live_grep<CR> " Plugin-specific configuration source ~/.config/nvim/startify.vim -source ~/.config/nvim/defx.vim source ~/.config/nvim/vimwiki.vim +lua require('nvim-tree') lua require('lsp-config') lua require('completion') lua require('treesitter') diff --git a/nvim/.config/nvim/lua/nvim-tree.lua b/nvim/.config/nvim/lua/nvim-tree.lua new file mode 100644 index 0000000..57340aa --- /dev/null +++ b/nvim/.config/nvim/lua/nvim-tree.lua @@ -0,0 +1,13 @@ +local tree_cb = require'nvim-tree.config'.nvim_tree_callback + +vim.api.nvim_set_keymap('n', '<F3>', ':NvimTreeToggle', { noremap = true, silent = true }) + +vim.g.nvim_tree_auto_close = 1 +vim.g.nvim_tree_group_empty = 1 + +vim.g.nvim_tree_bindings = { + { key = "l", cb = tree_cb("edit") }, + { key = "h", cb = tree_cb("close_node") }, + { key = "cw", cb = tree_cb("rename") }, + { key = "o", cb = tree_cb("create") }, +} diff --git a/nvim/.config/nvim/startify.vim b/nvim/.config/nvim/startify.vim index f9c2d03..6361386 100644 --- a/nvim/.config/nvim/startify.vim +++ b/nvim/.config/nvim/startify.vim @@ -7,8 +7,8 @@ let g:startify_padding_left = 4 let g:startify_custom_header = startify#pad(startify#fortune#cowsay('', '═','║','╔','╗','╝','╚')) let g:startify_bookmarks = [ - \ { 'z': '~/.zshrc' }, - \ { 'r': '~/.config/nvim/init.vim' }, + \ { 'z': '~/.dotfiles/env/.zshrc' }, + \ { 'r': '~/.dotfiles/nvim/.config/nvim/init.vim' }, \ ] let g:startify_lists = [ @@ -20,6 +20,5 @@ let g:startify_lists = [ autocmd VimEnter * \ if !argc() \ | Startify - \ | Defx \ | wincmd w \ | endif diff --git a/nvim/.config/nvim/vim-plug/plugins.vim b/nvim/.config/nvim/vim-plug/plugins.vim index c83071d..e90a401 100644 --- a/nvim/.config/nvim/vim-plug/plugins.vim +++ b/nvim/.config/nvim/vim-plug/plugins.vim @@ -1,11 +1,8 @@ call plug#begin('~/.config/nvim/autoload/plugged') Plug 'vimwiki/vimwiki' Plug 'mhinz/vim-startify' - " Dark-powered file explorer - Plug 'shougo/defx.nvim', - Plug 'kristijanhusak/defx-icons' - Plug 'kristijanhusak/defx-git' - Plug 't9md/vim-choosewin' + " Lua filetree + Plug 'kyazdani42/nvim-tree.lua' " Built-in LSP Plug 'neovim/nvim-lspconfig' Plug 'hrsh7th/nvim-compe' |