add fzf and telescope-nvim
This commit is contained in:
parent
843c3da087
commit
74766b9571
3
Makefile
3
Makefile
@ -35,8 +35,7 @@ alacritty:
|
||||
ln -s $(PWD)/sub/alacritty/alacritty.yml ~/.config/alacritty/
|
||||
|
||||
vim:
|
||||
echo "sudo pacman -S npm ctags; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright"
|
||||
echo "go install golang.org/x/tools/gopls@latest"
|
||||
echo "sudo pacman -S npm ctags fzf; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright"
|
||||
echo "set editing-mode vi" >> ~/.inputrc
|
||||
test -d ~/.vim || \
|
||||
ln -s $(PWD)/sub/vim ~/.vim
|
||||
|
||||
@ -125,3 +125,6 @@ for _, lsp in ipairs(servers) do
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
require('telescope').load_extension('fzf')
|
||||
|
||||
@ -100,12 +100,14 @@ call vundle#begin()
|
||||
Plugin 'hrsh7th/cmp-nvim-lsp'
|
||||
Plugin 'saadparwaiz1/cmp_luasnip'
|
||||
Plugin 'L3MON4D3/LuaSnip'
|
||||
Plugin 'nvim-lua/plenary.nvim'
|
||||
|
||||
Plugin 'powerman/vim-plugin-ruscmd' " Russian navigation
|
||||
|
||||
" golang
|
||||
" Plugin 'fatih/vim-go'
|
||||
|
||||
Plugin 'nvim-telescope/telescope.nvim'
|
||||
Plugin 'nvim-telescope/telescope-fzf-native.nvim', {'do': 'make'}
|
||||
|
||||
call vundle#end()
|
||||
|
||||
@ -131,6 +133,7 @@ nnoremap <silent> <special> <F3> :Ranger <CR>
|
||||
|
||||
let g:ranger_replace_netrw = 1 " open ranger when vim open a directory
|
||||
let g:ranger_map_keys = 0
|
||||
let g:ranger_open_new_tab = 1
|
||||
|
||||
" ctags required
|
||||
nnoremap <silent> <special> <F8> :TagbarToggle <CR>
|
||||
@ -185,4 +188,9 @@ hi DiagnosticInfo guifg=Grey
|
||||
hi DiagnosticHint guifg=Grey
|
||||
|
||||
|
||||
|
||||
nnoremap ,ff <cmd>Telescope find_files<cr>
|
||||
nnoremap ,fg <cmd>Telescope live_grep<cr>
|
||||
|
||||
|
||||
luafile ~/.config/nvim/lua/init.lua
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user