11-- This file can be loaded by calling `lua require('plugins')` from your init.vim
2- print (' init plugins' )
32
43local builtin = require (' telescope.builtin' )
54vim .keymap .set (' n' , ' <leader>ff' , builtin .find_files , {})
@@ -19,40 +18,48 @@ function search_word_all()
1918end
2019vim .keymap .set (' n' , ' <leader>fa' , search_word_all , {})
2120
21+ vim .keymap .set (" n" , " <leader>rn" , function ()
22+ return " :IncRename " .. vim .fn .expand (" <cword>" )
23+ end , { expr = true })
24+
2225
2326return require (' packer' ).startup (function (use )
2427 -- packers
2528 use ' wbthomason/packer.nvim'
26- use {
27- " williamboman/mason.nvim" ,
28- run = " :MasonUpdate" -- :MasonUpdate updates registry contents
29- }
29+
30+ -- autocomple, go to reference/declaration
3031 use {' neoclide/coc.nvim' , branch = ' release' }
3132
3233 -- navigation
3334 use {
34- ' nvim-telescope/telescope.nvim' , tag = ' 0.1.1 ' ,
35+ ' nvim-telescope/telescope.nvim' ,
3536 requires = { {' nvim-lua/plenary.nvim' } }
3637 }
3738 use { ' junegunn/fzf' , run = " :call fzf#install()" }
3839 use { ' junegunn/fzf.vim' }
3940 use " smartpde/telescope-recent-files"
4041 use " preservim/nerdtree"
4142
42-
43- -- ts
44- use " leafgarland/typescript-vim"
45- use " tpope/vim-surround"
43+ -- git
4644 use " tpope/vim-fugitive"
45+
46+ -- Rename var globally
4747 use {
48- " prettier/vim-prettier" ,
49- run = ' npx yarn install --frozen-lockfile --production'
50- }
51- use " neovim/nvim-lspconfig"
52- use " marilari88/twoslash-queries.nvim"
53- use " jiangmiao/auto-pairs"
48+ " smjonas/inc-rename.nvim" ,
49+ config = function ()
50+ require (" inc_rename" ).setup ()
51+ end ,
52+ }
53+
54+
55+ -- Style
56+ use ' Mofiqul/dracula.nvim'
57+
58+ -- Terminal
59+ use {" akinsho/toggleterm.nvim" , tag = ' *' , config = function ()
60+ require (" toggleterm" ).setup ()
61+ end }
62+
5463
55- -- other languages
56- use " wuelnerdotexe/vim-astro"
5764
5865end )
0 commit comments