diff --git a/init.lua b/init.lua index 5bfadb49..abbd8fd6 100644 --- a/init.lua +++ b/init.lua @@ -27,3 +27,13 @@ function _lazygit_toggle() end vim.api.nvim_set_keymap("n", ",g", "lua _lazygit_toggle()", {noremap = true, silent = true}) + +-- aerial telescope integration +require('telescope').load_extension('aerial') + +-- SnipRun config +require('sniprun').setup{ + display = { + "NvimNotify" + } +} diff --git a/init.vim b/init.vim index ae7fd672..25f5ec86 100644 --- a/init.vim +++ b/init.vim @@ -13,13 +13,11 @@ call plug#begin() " Make sure you use single quotes +Plug 'nvim-lua/plenary.nvim' Plug 'neovim/nvim-lspconfig' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'sonph/onehalf', {'rtp': 'vim/'} Plug 'mileszs/ack.vim' -Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } -Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } -Plug 'junegunn/fzf.vim' Plug 'stevearc/aerial.nvim' Plug 'tpope/vim-unimpaired' Plug 'tpope/vim-fugitive' @@ -36,6 +34,10 @@ Plug 'hrsh7th/cmp-cmdline' Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/vim-vsnip' +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'} " Initialize plugin system call plug#end() @@ -46,7 +48,6 @@ let g:python3_host_prog = '~/.pyenv/versions/neovim3/bin/python' luafile ~/.vim/init.lua luafile ~/.vim/lsp_config.lua -map ; :Files if executable('ag') let g:ackprg = 'ag --vimgrep' endif @@ -88,16 +89,13 @@ filetype plugin indent on imap jk command Bd b# | bd # command! BufOnly silent! execute "%bd|e#|bd#" -nnoremap b :buffers:buffer -nnoremap n :NERDTreeFocus -nnoremap ; :call aerial#fzf() -nnoremap :NERDTree -nnoremap :NERDTreeToggle -nnoremap :NERDTreeFind nnoremap a :Ack! - -" Exit Vim if NERDTree is the only window remaining in the only tab. -autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif +nnoremap ff Telescope find_files +nnoremap fg Telescope live_grep +nnoremap fb Telescope buffers +nnoremap fh Telescope help_tags +nnoremap fk Telescope aerial +nnoremap fd Telescope lsp_document_symbols set splitbelow set splitright