From efaaadadd7fd95f4b1ec6785869881ee17cb4ade Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sun, 21 Feb 2021 17:16:52 +0100 Subject: installed telescope and ditched fzf, removed vim-rooter --- .config/nvim/plug-config/barbar.vim | 5 +++-- .config/nvim/plug-config/sneak.vim | 4 ++-- .config/nvim/plug-config/telescope.vim | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .config/nvim/plug-config/telescope.vim (limited to '.config/nvim/plug-config') diff --git a/.config/nvim/plug-config/barbar.vim b/.config/nvim/plug-config/barbar.vim index 57ac470..16c574a 100644 --- a/.config/nvim/plug-config/barbar.vim +++ b/.config/nvim/plug-config/barbar.vim @@ -1,4 +1,5 @@ -let g:bufferline = { 'closable': v:false } +let bufferline = get(g:, 'bufferline', {}) +"let g:bufferline = { 'closable': v:false } " Show a shadow over the editor in buffer-pick mode let bufferline.shadow = v:true @@ -23,7 +24,7 @@ let bufferline.semantic_letters = v:true " optimal for the qwerty keyboard layout but might need adjustement " for other layouts. let bufferline.letters = - \ 'asdfjkl;ghnmxcbziowerutyqpASDFJKLGHNMXCBZIOWERUTYQP' +\ 'asdfjkl;ghnmxcbziowerutyqpASDFJKLGHNMXCBZIOWERUTYQP' let bg_current = get(nvim_get_hl_by_name('Normal', 1), 'background', '#000000') let bg_visible = get(nvim_get_hl_by_name('TabLineSel', 1), 'background', '#000000') diff --git a/.config/nvim/plug-config/sneak.vim b/.config/nvim/plug-config/sneak.vim index febad68..2641dc9 100644 --- a/.config/nvim/plug-config/sneak.vim +++ b/.config/nvim/plug-config/sneak.vim @@ -15,8 +15,8 @@ highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow " Cool prompts -let g:sneak#prompt = '🕵️' -" let g:sneak#prompt = '🔎 ' +" let g:sneak#prompt = '🕵️' +let g:sneak#prompt = '🔎 ' " I like quickscope better for this since it keeps me in the scope of a single line " map f Sneak_f diff --git a/.config/nvim/plug-config/telescope.vim b/.config/nvim/plug-config/telescope.vim new file mode 100644 index 0000000..26ae819 --- /dev/null +++ b/.config/nvim/plug-config/telescope.vim @@ -0,0 +1,14 @@ +" Find files using Telescope command-line sugar. +nnoremap ff Telescope find_files +nnoremap fg Telescope live_grep +nnoremap fb Telescope buffers +nnoremap fh Telescope help_tags + +" Theme +nnoremap f :lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({})) + +" Using lua functions +"nnoremap ff lua require('telescope.builtin').find_files() +"nnoremap fg lua require('telescope.builtin').live_grep() +"nnoremap fb lua require('telescope.builtin').buffers() +"nnoremap fh lua require('telescope.builtin').help_tags() -- cgit v1.2.3-70-g09d2