Last active
January 2, 2023 20:19
-
-
Save nonrice/f8b2273371ab34cece4128d77fc76a40 to your computer and use it in GitHub Desktop.
can't believe I used to use this
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
"Run :PlugInstall when opening for the first time, then relaunch nvim | |
"important thing | |
filetype plugin indent on | |
"utility binds | |
nmap <C-i> <Cmd>:bnext<CR> | |
tnoremap <Esc> <C-\><C-n> | |
nnoremap <F6> <Cmd>:vsp<CR>:wincmd l<CR>:e ~/in.txt<CR> | |
"cpp run debug | |
let g:cpp_f = "-Wall -Wextra -fsanitize=address -std=c++17 -fsanitize=undefined" | |
let g:cpp_r = ":te g++ % " . cpp_f . " -O2 -o %< && ./%< \< ~/in.txt" | |
let g:cpp_db = ":te g++ % " . cpp_f . " -gdwarf-2 -o %< && lldb ./%<" | |
au filetype cpp nnoremap <F5> <Cmd>:w<CR>:vsp<CR>:wincmd l<CR>:exe cpp_r<CR>i | |
au filetype cpp nnoremap <F17> <Cmd>:w<CR>:vsp<CR>:wincmd l<CR>:exe cpp_db<CR>i | |
"functionality | |
set tabstop=4 | |
set softtabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
set autoindent | |
let g:pear_tree_repeatable_expand=0 | |
"plugins | |
call plug#begin("~/.config/nvim/plugged") | |
"cosmetics | |
Plug 'nvim-treesitter/nvim-treesitter' | |
Plug 'lukas-reineke/indent-blankline.nvim' | |
Plug 'nonrice/skyline.vim/', { 'branch': 'patch-1' } "guy wont merge my pr | |
Plug 'nonrice/palefly.vim' | |
"functionality | |
Plug 'tmsvg/pear-tree' | |
Plug 'tpope/vim-fugitive' | |
Plug 'neovim/nvim-lspconfig' | |
call plug#end() | |
"syntax highlighting | |
lua <<EOF | |
require('nvim-treesitter.configs').setup { | |
ensure_installed = {'cpp', 'python'}, | |
highlight = {enable = true} | |
} | |
require('lspconfig').clangd.setup{ | |
cmd = { | |
'clangd', | |
'--suggest-missing-includes', | |
} | |
} | |
EOF | |
set termguicolors | |
syntax enable | |
colorscheme palefly | |
"misc cosmetics | |
let g:netrw_banner=0 | |
set relativenumber | |
set cursorline | |
set laststatus=3 | |
highlight WinSeparator guibg=None | |
let g:skyline_fugitive = 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment