Created
November 28, 2022 14:06
-
-
Save stupidanon/55c8a75cc153f016e330248ba8a6eeb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"syntax on | |
set t_Co=256 | |
set cursorline | |
set number | |
set autochdir | |
set mouse=a | |
set nohlsearch | |
set relativenumber | |
"set nocompatible | |
" Plugin Manager | |
" Plug plugin manager | |
call plug#begin() | |
Plug 'mangeshrex/everblush.vim' | |
Plug 'arcticicestudio/nord-vim' | |
" Plug 'nathanaelkane/vim-indent-guides' | |
" Plug 'preservim/nerdtree' | |
Plug 'scrooloose/syntastic' | |
Plug 'shaunsingh/oxocarbon.nvim', { 'do': './install.sh' } | |
Plug 'projekt0n/github-nvim-theme' | |
Plug 'thinca/vim-quickrun' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'vim-scripts/delimitMate.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'RRethy/vim-illuminate' | |
" Plug 'vim-airline/vim-airline' | |
" Plug 'vim-airline/vim-airline-themes' | |
Plug 'lifepillar/vim-solarized8' | |
Plug 'joshdick/onedark.vim' | |
" Plug 'vim-python/python-syntax' | |
" Plug 'luochen1990/rainbow' | |
Plug 'tpope/vim-commentary' | |
Plug 'github/copilot.vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'tpope/vim-surround' | |
Plug 'nvim-treesitter/nvim-treesitter' | |
" post install (yarn install | npm install) then load plugin only for editing supported files | |
Plug 'AndrewRadev/tagalong.vim' | |
" Plug 'ap/vim-css-color' | |
" Plug 'yuezk/vim-js' | |
" Plug 'maxmellon/vim-jsx-pretty' | |
" Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" Plug 'p00f/nvim-ts-rainbow' | |
Plug 'ctrlpvim/ctrlp.vim' | |
" Plug 'neoclide/vim-jsx-improve' | |
Plug 'nvim-tree/nvim-web-devicons' " optional, for file icons | |
Plug 'nvim-tree/nvim-tree.lua' | |
Plug 'alvan/vim-closetag' | |
Plug 'windwp/nvim-autopairs' | |
Plug 'mlaursen/vim-react-snippets' | |
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons | |
Plug 'lukas-reineke/indent-blankline.nvim' | |
Plug 'folke/tokyonight.nvim', { 'branch': 'main' } | |
Plug 'itchyny/lightline.vim' | |
Plug 'folke/which-key.nvim' | |
Plug 'nvim-lua/plenary.nvim' | |
Plug 'sindrets/diffview.nvim' | |
" Plug 'nacro90/numb.nvim' | |
Plug 'folke/zen-mode.nvim' | |
Plug 'ggandor/leap.nvim' | |
Plug 'm-demare/hlargs.nvim' | |
call plug#end() | |
" Vundle plugin manager | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugin 'Valloric/YouCompleteMe' | |
" Plugin 'Vimjas/vim-python-pep8-indent' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
set updatetime=100 | |
" Airline settings | |
set laststatus=2 | |
" let g:airline_theme='onedark' | |
" Vim Script | |
" HERE TONIGHT | |
" let g:lightline = {'colorscheme': 'tokyonight'} | |
let g:lightline = {'colorscheme': 'wombat'} | |
" Hotkeys | |
nnoremap <S-t> :NvimTreeToggle<CR> | |
nnoremap <S-n> :NvimTreeRefresh<CR> | |
nnoremap <tab> <c-w>w | |
nnoremap <S-Tab> <c-W>W | |
let mapleader = "," | |
nnoremap O o<Esc> | |
tnoremap <Esc> <C-\><C-n> | |
let g:user_emmet_leader_key=',' | |
nnoremap <Leader>w :wq<CR> | |
nnoremap <Leader>q :qa!<CR> | |
noremap f <Plug>(leap-forward) | |
noremap F <Plug>(leap-backward) | |
" Vimspector settings | |
" let g:vimspector_enable_mappings = 'HUMAN' | |
" let g:vimspector_install_gadgets = ['debugpy'] | |
"source $HOME/.vim/plugged/vimspector/plugin/vimspector.vim | |
"exe 'source ' . s:vimspector_path . '/tests/vimrc' | |
" nnoremap <Leader>dd :call vimspector#Launch()<CR> | |
" nnoremap <Leader>de :call vimspector#Reset()<CR> | |
" nnoremap <Leader>dc :call vimspector#Continue()<CR> | |
" nnoremap <Leader>dt :call vimspector#ToggleBreakpoint()<CR> | |
" nnoremap <Leader>dT :call vimspector#ClearBreakpoints()<CR> | |
" nmap <Leader>dk <Plug>VimspectorRestart | |
" nmap <Leader>dh <Plug>VimspectorStepOut | |
" nmap <Leader>dl <Plug>VimspectorStepInto | |
" nmap <Leader>dj <Plug>VimspectorStepOver | |
" mnemonic 'di' = 'debug inspect' (pick your own, if you prefer!) | |
" for normal mode - the word under the cursor | |
" nmap <Leader>di <Plug>VimspectorBalloonEval | |
" " for visual mode, the visually selected text | |
" xmap <Leader>di <Plug>VimspectorBalloonEval | |
" nmap <LocalLeader><F11> <Plug>VimspectorUpFrame | |
" nmap <LocalLeader><F12> <Plug>VimspectorDownFrame | |
nnoremap = :vertical resize +1<CR> | |
nnoremap - :vertical resize -1<CR> | |
nnoremap + :resize +1<CR> | |
nnoremap _ :resize -1<CR> | |
nnoremap <Leader><CR> :find ~/.config/nvim/init.vim<CR> | |
" nnoremap <silent> <leader> :WhichKey ','<CR> | |
" nnoremap <silent> :WhichKey ''<CR> | |
set timeoutlen=1000 | |
" nnoremap <S-t> :terminal<CR> | |
"tnoremap <Esc> <C-\><C-n> | |
" Syntastic settings | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 0 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 1 | |
" VIM AIRLINE SETTINGS | |
set guifont=Liberation\ Mono\ for\ Powerline\ 10 | |
" let g:airline_powerline_fonts = 1 | |
let g:python_highlight_all = 1 | |
let g:python_highlight_string_format = 1 | |
let g:python_highlight_builtin_objs = 1 | |
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. | |
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support | |
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) | |
if (empty($TMUX)) | |
if (has("nvim")) | |
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > | |
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
endif | |
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > | |
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > | |
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > | |
endif | |
set termguicolors | |
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" | |
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" | |
" colorscheme oxocarbon | |
" " vim.o.background = "dark" -- triggers dark colorscheme | |
" " vim.o.background = "light" -- triggers light colorscheme | |
" noremap <Leader>tn :set background=dark \| colorscheme tokyonight<CR> | |
" noremap <Leader>td :set background=light \| colorscheme tokyonight<CR> | |
" BELOW UNCOMMENT WAS GOOD!!!!!! | |
" BELOW UNCOMMENT WAS GOOD!!!!!! | |
" BELOW UNCOMMENT WAS GOOD!!!!!! | |
" Example config in VimScript | |
" NOTE: Configuration needs to be set BEFORE loading the color scheme with `colorscheme` command | |
let g:github_function_style = "italic" | |
let g:github_sidebars = ["qf", "vista_kind", "terminal", "packer"] | |
" Change the "hint" color to the "orange" color, and make the "error" color bright red | |
let g:github_colors = { | |
\ 'hint': 'orange', | |
\ 'error': '#ff0000' | |
\ } | |
colorscheme github_dark_default | |
" " colorscheme | |
" let g:tokyonight_style = "night" | |
" let g:tokyonight_italic_functions = 0 | |
" " colorscheme tokyonight | |
" noremap <Leader>tn :set background=dark \| colorscheme tokyonight<CR> | |
" noremap <Leader>td :set background=light \| colorscheme tokyonight<CR> | |
let g:rainbow_active = 1 | |
" let $FZF_DEFAULT_COMMAND = 'rg --hidden -l ""' | |
let g:syntastic_python_flake8_post_args='--ignore=E501,E128,E225' | |
" let g:workspace_session_disable_on_args = 1 | |
" let g:workspace_autocreate = 1 | |
lua <<EOF | |
vim.g.loaded_netrw = 1 | |
vim.g.loaded_netrwPlugin = 1 | |
vim.opt.termguicolors = true | |
require("nvim-tree").setup() | |
EOF | |
" load lua files | |
" lua require('treesitter') | |
lua <<EOF | |
require'nvim-treesitter.configs'.setup { | |
-- ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages | |
highlight = { | |
enable = true, -- false will disable the whole extension | |
-- disable = { "c", "rust" }, -- list of language that will be disabled | |
}, | |
} | |
EOF | |
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument | |
nmap <Leader>p :Prettier<CR> | |
set t_ut= | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
autocmd VimEnter * :Copilot disable | |
" imap <silent><script><expr> <C-J> copilot#Accept("") | |
" let g:copilot_no_tab_map = v:true | |
lua << EOF | |
require("nvim-autopairs").setup {} | |
EOF | |
" lua << EOF | |
" require('numb').setup() | |
" EOF | |
lua << EOF | |
require('leap').set_default_keymaps() | |
EOF | |
" lua << EOF | |
" require('hlargs').setup() | |
" EOF | |
" lua << EOF | |
" require("nvim-tree").setup({ | |
" sort_by = "case_sensitive", | |
" view = { | |
" adaptive_size = true, | |
" mappings = { | |
" list = { | |
" { key = "u", action = "dir_up" }, | |
" { key = "<Tab>", action = "" }, | |
" { key = "<C-t>", action = "" }, | |
" }, | |
" }, | |
" }, | |
" renderer = { | |
" group_empty = true, | |
" }, | |
" filters = { | |
" dotfiles = true, | |
" }, | |
" }) | |
" EOF | |
lua << EOF | |
require("indent_blankline").setup { | |
-- for example, context is off by default, use this to turn it on | |
show_current_context = true, | |
show_current_context_start = true, | |
} | |
EOF | |
" Use <C-l> for trigger snippet expand. | |
imap <C-l> <Plug>(coc-snippets-expand) | |
" Use <C-j> for select text for visual placeholder of snippet. | |
vmap <C-j> <Plug>(coc-snippets-select) | |
" Use <C-j> for jump to next placeholder, it's default of coc.nvim | |
let g:coc_snippet_next = '<c-j>' | |
" Use <C-k> for jump to previous placeholder, it's default of coc.nvim | |
let g:coc_snippet_prev = '<c-k>' | |
" Use <C-j> for both expand and jump (make expand higher priority.) | |
imap <C-j> <Plug>(coc-snippets-expand-jump) | |
" Use <leader>x for convert visual selected code to snippet | |
xmap <leader>x <Plug>(coc-convert-snippet) | |
" let g:vimspector_base_dir='/Users/samson11/.local/share/nvim/plugged/vimspector' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment