summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-11-14 14:57:18 +0100
committerDaniel Weipert <code@drogueronin.de>2021-11-14 14:57:18 +0100
commitb349d7d1264004796ec6f895755d1334cef4fe6e (patch)
treef8e74477c4523a7a65cccb4bd9f223bae3370a59 /.config/nvim
parent9853c1211438d076381595bda55271592c71682f (diff)
Adds Telescope and replaces pipewire with alsa
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index d6745cc..f246e68 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -9,6 +9,9 @@ Plug 'gruvbox-community/gruvbox'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
+Plug 'nvim-lua/plenary.nvim'
+Plug 'nvim-telescope/telescope.nvim'
+
call plug#end()
@@ -16,6 +19,9 @@ call plug#end()
" Config
" "
+nnoremap <SPACE> <Nop>
+let mapleader=" "
+
set shiftwidth=4
set nu rnu
set mouse=a
@@ -30,7 +36,11 @@ let g:NERDTreeShowHidden=1
" Keys
" "
-map <C-b> :NERDTreeToggle<CR>
+map <C-b> <cmd>NERDTreeToggle<CR>
+
+nnoremap <leader>ff <cmd>Telescope find_files<CR>
+nnoremap <leader>fg <cmd>Telescope live_grep<CR>
+nnoremap <leader><leader> <cmd>Telescope buffers<CR>
nnoremap <A-Left> <C-w><Left>
nnoremap <A-Up> <C-w><Up>