diff options
author | aktersnurra <gustaf.rydholm@gmail.com> | 2021-02-21 17:16:52 +0100 |
---|---|---|
committer | aktersnurra <gustaf.rydholm@gmail.com> | 2021-02-21 17:16:52 +0100 |
commit | efaaadadd7fd95f4b1ec6785869881ee17cb4ade (patch) | |
tree | a8ad82169476e07b106c4b33b28606615da8d445 /.config/nvim/plug-config | |
parent | ac940115366bae51bb232b46ffa98ec00ffa6c14 (diff) |
installed telescope and ditched fzf, removed vim-rooter
Diffstat (limited to '.config/nvim/plug-config')
-rw-r--r-- | .config/nvim/plug-config/barbar.vim | 5 | ||||
-rw-r--r-- | .config/nvim/plug-config/sneak.vim | 4 | ||||
-rw-r--r-- | .config/nvim/plug-config/telescope.vim | 14 |
3 files changed, 19 insertions, 4 deletions
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 <Plug>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 <Leader>ff <cmd>Telescope find_files<cr> +nnoremap <Leader>fg <cmd>Telescope live_grep<cr> +nnoremap <Leader>fb <cmd>Telescope buffers<cr> +nnoremap <Leader>fh <cmd>Telescope help_tags<cr> + +" Theme +nnoremap <Leader>f :lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({}))<cr> + +" Using lua functions +"nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr> +"nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep()<cr> +"nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr> +"nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr> |