mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(vim): add nvim-tree and configuration
This commit is contained in:
@@ -21,6 +21,8 @@ source ~/.config/nvim/plugins/prettier.vim
|
||||
source ~/.config/nvim/plugins/sidebar.lua
|
||||
source ~/.config/nvim/plugins/speeddating.vim
|
||||
source ~/.config/nvim/plugins/telescope.lua
|
||||
source ~/.config/nvim/plugins/tree.lua
|
||||
source ~/.config/nvim/plugins/trouble.lua
|
||||
source ~/.config/nvim/plugins/ultisnips.vim
|
||||
source ~/.config/nvim/plugins/vim-easymotion.vim
|
||||
source ~/.config/nvim/plugins/web-devicons.lua
|
||||
|
||||
@@ -44,7 +44,10 @@ Plug 'gbrlsnchs/telescope-lsp-handlers.nvim'
|
||||
Plug 'dhruvmanila/telescope-bookmarks.nvim'
|
||||
Plug 'tami5/sqlite.lua'
|
||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'lewis6991/gitsigns.nvim'
|
||||
Plug 'nvim-lua/popup.nvim'
|
||||
Plug 'ThePrimeagen/harpoon'
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production', 'branch': 'release/0.x' }
|
||||
|
||||
|
||||
12
nvim/plugins/tree.lua
Normal file
12
nvim/plugins/tree.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- nvim-tree.lua
|
||||
-- https://github.com/kyazdani42/nvim-tree.lua
|
||||
|
||||
local status, nvim_tree = pcall(require, 'nvim-tree')
|
||||
if (not status) then return end
|
||||
|
||||
nvim_tree.setup({})
|
||||
|
||||
--- Mappings
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader>nt', [[<Cmd>:NvimTreeToggle<CR>]], opts)
|
||||
Reference in New Issue
Block a user