Created
June 30, 2021 08:18
-
-
Save zoomlogo/f5df763f973df48719f0d56f1d94bcb7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" --------------------------------------- | |
" (_)___ (_) /__ __(_)___ ___ | |
" / / __ \/ / __/ | / / / __ `__ \ | |
" / / / / / / /__| |/ / / / / / / / | |
" /_/_/ /_/_/\__(_)___/_/_/ /_/ /_/ | |
" ---------------------------------------- | |
set guifont=Iosevka\ Kalki,DejaVuSansMono\ NF,Unifont:h16 | |
set clipboard=unnamedplus | |
set updatetime=40 | |
set wildmenu | |
set signcolumn=yes | |
set nohlsearch | |
set ruler | |
set relativenumber | |
set numberwidth=2 | |
set termguicolors | |
set noshowmode showcmd | |
set mouse=a | |
set hidden | |
set noswapfile | |
hi clear | |
syntax enable | |
filetype plugin indent on | |
set fixendofline | |
set cmdheight=2 | |
set showtabline=2 | |
set shortmess+=c | |
set scrolloff=1 | |
set encoding=utf-8 | |
set nobackup | |
set nowritebackup | |
set mousehide | |
set expandtab | |
set tabstop=4 shiftwidth=4 | |
set list | |
set listchars=tab:\โ\ ,trail:ยท | |
autocmd BufReadPost * silent! normal! g`"zv | |
noremap <space> <nop> | |
let mapleader=" " | |
nmap <leader>w :w<CR> | |
imap <c-s> <cmd>w<CR> | |
nmap <leader>v :vsplit<CR> | |
nmap <leader>h :split<CR> | |
nmap <c-t> :tabnew<CR> | |
nmap <c-p> :tabnext<CR> | |
inoremap <c-j> <esc>ji | |
inoremap <c-k> <esc>ki | |
inoremap <c-h> <esc>i | |
inoremap <c-l> <esc>la | |
fun! TrimWhitespace() | |
let l:save = winsaveview() | |
keeppatterns %s/\s\+$//e | |
call winrestview(l:save) | |
endfun | |
autocmd BufWritePre * :call TrimWhitespace() | |
nmap Q @q | |
call plug#begin("C:/Users/maanas/AppData/Local/nvim/plugged") | |
" Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' } | |
" let g:semshi#mark_selected_nodes=0 | |
" let g:semshi#error_sign=v:false | |
Plug 'PyGamer0/nvim-web', { 'do': ':UpdateRemotePlugins' } | |
Plug 'mhinz/vim-startify' | |
Plug 'mg979/vim-visual-multi' | |
Plug 'RRethy/vim-illuminate' | |
" Plug 'itchyny/vim-cursorword' | |
Plug 'skywind3000/vim-terminal-help' | |
Plug 'bluz71/vim-moonfly-statusline' | |
Plug 'andymass/vim-matchup' | |
Plug 'tpope/vim-surround' | |
Plug 'alvan/vim-closetag' | |
Plug 'norcalli/nvim-colorizer.lua' | |
Plug 'junegunn/vim-easy-align' | |
Plug 'AndrewRadev/splitjoin.vim' | |
Plug 'airblade/vim-rooter' | |
Plug 'akinsho/nvim-bufferline.lua' | |
Plug 'machakann/vim-swap' | |
Plug 'lukas-reineke/indent-blankline.nvim', { 'branch': 'lua' } | |
Plug 'drzel/vim-gui-zoom' | |
Plug 'tpope/vim-commentary' | |
Plug 'nvim-lua/plenary.nvim' | |
Plug 'TaDaa/vimade' | |
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } | |
Plug 'airblade/vim-matchquote' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'haya14busa/incsearch.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'PyGamer0/font_changer.vim' | |
Plug 'NoahTheDuke/vim-just' | |
Plug 'simeji/winresizer' | |
Plug 'Xuyuanp/scrollbar.nvim' | |
Plug 'machakann/vim-highlightedyank' | |
let g:highlightedyank_highlight_duration=150 | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
" Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} | |
" Plug 'JoosepAlviste/nvim-ts-context-commentstring' | |
Plug 'neovim/nvim-lspconfig' | |
Plug 'hrsh7th/nvim-compe' | |
Plug 'hrsh7th/vim-vsnip-integ' | |
Plug 'hrsh7th/vim-vsnip' | |
Plug 'rafamadriz/friendly-snippets' | |
Plug 'onsails/lspkind-nvim' | |
Plug 'preservim/nerdtree' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'fxn/vim-monochrome' | |
Plug 'franbach/miramare' | |
Plug 'dracula/vim' | |
Plug 'PyGamer0/defined.nvim' | |
Plug 'lifepillar/vim-gruvbox8' | |
Plug 'axvr/photon.vim' | |
Plug 'patstockwell/vim-monokai-tasty' | |
Plug 'PyGamer0/darc.nvim' | |
Plug 'rktjmp/lush.nvim' | |
Plug 'lewis6991/gitsigns.nvim' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'fedorenchik/VimCalc3' | |
Plug 'alec-gibson/nvim-tetris' | |
Plug 'dansomething/vim-hackernews' | |
call plug#end() | |
let g:monochrome_italic_comments=1 | |
let g:miramare_enable_italic=1 | |
colorscheme defined | |
let g:moonflyWithGitBranch=1 | |
let g:moonflyWithGitBranchCharacter=1 | |
let g:moonflyWithNvimLspIndicator=1 | |
let g:moonflyWithNerdIcon=1 | |
let g:neovide_animate_command_line=0 | |
let g:neovide_cursor_animation_length=0.04 | |
" let g:font_changer_fonts=['Iosevka\ Kalki,DejaVuSansMono\ NF,Unifont:h16', 'Unifont,Cozette:h18', 'Agave,Iosevka\ Kalki,DejaVuSansMono\ NF,Unifont:h16', 'Fira\ Code,Deja:h14'] | |
let g:font_changer_fonts=[ | |
\ 'Iosevka\ Kalki,DejaVuSansMono\ NF,Unifont:h16', | |
\ 'Unifont,Cozette:h18', | |
\ 'Cozette,Unifont:h16', | |
\ 'Agave,DejaVuSansMono\ NF,Unifont:h16', | |
\ 'Fira\ Code,DejaVuSansMono\ NF,Unifont:h14' | |
\ ] | |
nmap <leader>cf :ChangeFont<CR> | |
nnoremap gD <Cmd>lua vim.lsp.buf.declaration()<CR> | |
nnoremap gd <Cmd>lua vim.lsp.buf.definition()<CR> | |
nnoremap gh <Cmd>lua vim.lsp.buf.hover()<CR> | |
nnoremap <space>rn <Cmd>lua vim.lsp.buf.rename()<CR> | |
xmap ga <Plug>(EasyAlign) | |
nmap ga <Plug>(EasyAlign) | |
augroup ScrollbarInit | |
autocmd! | |
autocmd CursorMoved * silent! lua require('scrollbar').show() | |
autocmd WinEnter,FocusGained * silent! lua require('scrollbar').show() | |
autocmd WinLeave,FocusLost,BufLeave,BufWinLeave,VimResized,QuitPre * silent! lua require 'scrollbar'.clear() | |
augroup end | |
nmap <c-=> :ZoomIn<CR> | |
nmap <c--> :ZoomOut<CR> | |
let g:indent_blankline_char='โ' | |
nmap <leader>news :HackerNews<CR> | |
nmap <leader>ff :Files<CR> | |
nmap <leader>fc :Colors<CR> | |
nmap <leader>fb :Buffers<CR> | |
nmap <leader>n :NERDTreeToggle<CR> | |
let g:terminal_shell='zsh' | |
let g:terminal_edit='viedit' | |
let g:rooter_patterns = ['.git', 'Makefile', '*.sln', 'build/env.sh', 'src', 'CMakeLists.txt', 'build.sh', 'Cargo.toml', 'setup.py'] | |
let g:vimade = {} | |
let g:vimade.fadelevel = 0.8 | |
let g:compe={} | |
let g:compe.preselect='always' | |
let g:compe.throttle_time=25 | |
let g:compe.source_timeout=250 | |
let g:compe.source={} | |
let g:compe.source.path=v:true | |
let g:compe.source.buffer=v:true | |
let g:compe.source.calc=v:true | |
let g:compe.source.nvim_lsp=v:true | |
let g:compe.source.nvim_lua=v:true | |
let g:compe.source.vsnip=v:true | |
inoremap <silent><expr> <C-Space> compe#complete() | |
inoremap <silent><expr> <CR> compe#confirm('<CR>') | |
inoremap <silent><expr> <C-e> compe#close('<C-e>') | |
inoremap <silent><expr> <C-f> compe#scroll({ 'delta': +4 }) | |
inoremap <silent><expr> <C-d> compe#scroll({ 'delta': -4 }) | |
set completeopt=menuone,noselect | |
imap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>' | |
smap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>' | |
imap <expr> <Tab> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<Tab>' | |
smap <expr> <Tab> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<Tab>' | |
imap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<S-Tab>' | |
smap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<S-Tab>' | |
" Lua config | |
lua << EOF | |
require 'lspconfig'.pyright.setup{} | |
require 'lspconfig'.rust_analyzer.setup{} | |
require 'lspconfig'.clangd.setup{} | |
require 'lspconfig'.html.setup{} | |
vim.g.scrollbar_shape = { | |
head ='โ', -- ๐ฎ | |
body ='โ', | |
tail ='โ', | |
} | |
-- require'nvim-treesitter.configs'.setup { | |
-- ensure_installed = "maintained", | |
-- highlight = { | |
-- enable = true, | |
-- }, | |
-- indent = { | |
-- enable = true, | |
-- }, | |
-- context_commentstring = { | |
-- enable = true, | |
-- } | |
-- } | |
require'colorizer'.setup() | |
require 'gitsigns'.setup{} | |
require 'lspkind' .init({ | |
with_text = true, | |
preset = 'codicons', | |
symbol_map = { | |
Text = '๎', | |
Method = 'ฦ', | |
Function = '๏', | |
Constructor = '๎', | |
Variable = '๎', | |
Class = '๎', | |
Interface = '๏ฐฎ', | |
Module = '๏ฃ', | |
Property = '๎ค', | |
Unit = '๏ต', | |
Value = '๏ข', | |
Enum = 'ไบ', | |
Keyword = '๏ ', | |
Snippet = '๏ฌ', | |
Color = '๎ซ', | |
File = '๏ ', | |
Folder = '๏', | |
EnumMember = '๏ ', | |
Constant = '๎ฌ', | |
Struct = '๏' | |
}, | |
}) | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment