-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
106 lines (91 loc) · 2.45 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
set path+=**
""" enable syntax highlighting and filetype highlighting
syntax on
filetype on
filetype plugin on
filetype plugin indent on
""" begin 'normal' settings
set exrc
set relativenumber
set nu
set guicursor=
set noerrorbells
set nohlsearch
set hidden
set nowrap
set incsearch
set termguicolors
set scrolloff=8
""" don't display the mode in the 'cmd' area
set noshowmode
set signcolumn=yes
" tab settings
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
""" misc
set cmdheight=2
set colorcolumn=82
set updatetime=50
set wildmode=longest,list,full
set wildmenu
set shortmess+=c
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
""" use :PlugInstall
call plug#begin(stdpath('data') . '/plugged')
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/playground'
Plug 'romgrk/nvim-treesitter-context'
" telescope and telescope deps
Plug 'nvim-lua/plenary.nvim'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-fzy-native.nvim'
Plug 'mbbill/undotree'
Plug 'rust-lang/rust.vim'
" lsp plugins
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/nvim-cmp'
Plug 'onsails/lspkind-nvim'
Plug 'nvim-lua/lsp_extensions.nvim'
if has('win32')
Plug 'tzachar/cmp-tabnine', { 'do': './install.ps1' }
else
Plug 'tzachar/cmp-tabnine', { 'do': './install.sh' }
endif
" addt code completion stuffs
Plug 'L3MON4D3/LuaSnip'
Plug 'rafamadriz/friendly-snippets'
Plug 'darrikonn/vim-gofmt'
Plug 'sbdchd/neoformat'
" copilot
Plug 'github/copilot.vim'
" theme stuff
Plug 'dracula/vim',{'as':'dracula'}
Plug 'gruvbox-community/gruvbox',{'as':'gruvbox'}
call plug#end()
""" require the lua folder
lua require("co1e")
""" leader directives
nnoremap <leader>dd :Lexplore %:p:h<CR>
nnoremap <leader>da :Lexplore<CR>
nnoremap <leader>pv :E<CR>
""" telescope remaps
nnoremap <leader>ps :lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For > ")})<CR>
nnoremap <C-p> :lua require('telescope.builtin').git_files()<CR>
nnoremap <Leader>pf :lua require('telescope.builtin').find_files()<CR>
nnoremap <leader>pb :lua require('telescope.builtin').buffers()<CR>
nnoremap <leader>vh :lua require('telescope.builtin').help_tags()<CR>
let loaded_matchparen = 1
"let mapleader = " "
"nnoremap <leader>cmp :call ColorMyPencils()<CR>
""" Color settings
colorscheme gruvbox
highlight Normal guibg=None
"highlight Visual guibg='Purple'