42
42
43
43
call plug#begin (' ~/.vim/plugged' )
44
44
Plug ' junegunn/fzf'
45
- Plug ' ziglang/zig.vim'
45
+ " Plug 'ziglang/zig.vim'
46
46
Plug ' tpope/vim-surround'
47
47
Plug ' tpope/vim-eunuch' " useful for :Rename, :Move
48
48
Plug ' scrooloose/nerdcommenter'
@@ -51,12 +51,14 @@ call plug#begin('~/.vim/plugged')
51
51
Plug ' lambdalisue/suda.vim'
52
52
53
53
" colorschemes
54
- Plug ' rktjmp/lush.nvim' , {' branch' : ' main' }
55
- Plug ' ViViDboarder/wombat.nvim' , {' branch' : ' main' }
56
54
Plug ' EvitanRelta/vim-colorschemes'
55
+ " Plug 'navarasu/onedark.nvim'
57
56
Plug ' sainnhe/sonokai'
57
+ Plug ' rktjmp/lush.nvim' , {' branch' : ' main' }
58
+ Plug ' ViViDboarder/wombat.nvim' , {' branch' : ' main' }
58
59
Plug ' Mofiqul/vscode.nvim' , {' branch' : ' main' }
59
60
Plug ' EdenEast/nightfox.nvim' , {' branch' : ' main' }
61
+ Plug ' tiagovla/tokyodark.nvim'
60
62
61
63
" Plug 'mhinz/vim-grepper'
62
64
if has (' nvim' )
@@ -70,7 +72,33 @@ call plug#begin('~/.vim/plugged')
70
72
endif
71
73
call plug#end ()
72
74
73
- nnoremap <C-p> :FZF<CR>
75
+ " https://cj.rs/blog/git-ls-files-is-faster-than-fd-and-find/
76
+ " https://github.com/junegunn/fzf/blob/master/README-VIM.md
77
+ " https://github.com/junegunn/fzf/issues/31
78
+ function ! FZFExecute ()
79
+ " Remove trailing new line to make it work with tmux splits
80
+ let directory = substitute (system (' git rev-parse --show-toplevel' ), ' \n$' , ' ' , ' ' )
81
+ if ! v: shell_error
82
+ call fzf#run ({' sink' : ' e' , ' dir' : directory , ' source' : ' git ls-files -c --exclude-standard' , ' window' : { ' width' : 0.9 , ' height' : 0.6 } })
83
+ else
84
+ FZF
85
+ endif
86
+ endfunction
87
+ command ! FZFExecute call FZFExecute ()
88
+
89
+ function ! FZFCWDExecute ()
90
+ " Remove trailing new line to make it work with tmux splits
91
+ if ! v: shell_error
92
+ call fzf#run ({' sink' : ' e' , ' dir' : ' .' , ' window' : { ' width' : 0.9 , ' height' : 0.6 } })
93
+ else
94
+ FZF
95
+ endif
96
+ endfunction
97
+ command ! FZFCWDExecute call FZFCWDExecute ()
98
+
99
+ let $FZF_DEFAULT_COMMAND = ' fd --type f --exclude .git'
100
+ nnoremap <C-p> :FZFExecute<CR>
101
+ nnoremap <C-.> :FZFCWDExecute<CR>
74
102
75
103
let g: vim_markdown_folding_disabled = 1
76
104
let g: vim_markdown_new_list_item_indent = 0
@@ -97,6 +125,7 @@ require'lspconfig'.clangd.setup{}
97
125
98
126
-- https: // github.com /nvim-treesitter/ nvim- treesitter
99
127
require' nvim-treesitter.configs' .setup {
128
+ ensure_installed = { " java" , " cpp" , " python" , " javascript" , " bash" },
100
129
highlight = {
101
130
enable = true,
102
131
-- Setting this to true will run `:h syntax ` and tree- sitter at the same time.
0 commit comments