-
-
Save pyrmont/0c14be6eabe22eca55b8d1fc043afd49 to your computer and use it in GitHub Desktop.
Neovim Configuration
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
" Plugins | |
call plug#begin('~/.config/nvim/plugged') | |
" Clojure Plugins | |
Plug 'Olical/conjure', { 'tag': 'v4.10.0' } | |
Plug 'guns/vim-clojure-static' | |
" Janet Plugins | |
" Plug '~/development/janet.vim' | |
Plug 'janet-lang/janet.vim' | |
" Utility Plugins | |
Plug 'tpope/vim-commentary' | |
Plug 'bronson/vim-trailing-whitespace' | |
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
" Parentheses Wrangling | |
" Plug '~/development/parinfer-rust', { 'do': 'cargo build --release'} | |
Plug 'eraserhd/parinfer-rust', { 'do': 'cargo build --release'} | |
" Plug 'kien/rainbow_parentheses.vim' | |
" Modeline Plugins | |
Plug 'vim-airline/vim-airline' | |
" Plug 'vim-airline/vim-airline-themes' | |
" Theme Plugins | |
Plug 'joshdick/onedark.vim' | |
call plug#end() | |
" Rainbow | |
" let g:rainbow_active = 0 | |
" Colours | |
let g:onedark_color_overrides = { | |
\ "black": {"gui": "#2F343F", "cterm": "0", "cterm16": "0" }, | |
\} | |
" Theming | |
set background=dark | |
colorscheme onedark | |
set noshowmode | |
" WildMenu | |
set wildmenu | |
set wildmode=full | |
" Syntax Highlighting | |
syntax on | |
" Popup windows | |
highlight Pmenu ctermbg=234 | |
" Wrapping and Scrolling | |
set nowrap | |
set scrolloff=3 | |
" Line numbers | |
set relativenumber | |
" Indenting | |
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab | |
set smartindent | |
set autoindent | |
filetype indent on | |
" Language indentation | |
autocmd Filetype c setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
autocmd Filetype cpp setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
autocmd Filetype go setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
" Keystrokes | |
set backspace=indent,eol,start | |
" Key Mapping | |
let maplocalleader = "-" | |
" This unsets the "last search pattern" register by hitting return | |
nnoremap <CR> :noh<CR><CR> | |
" Parentheses highlighting | |
" augroup rainbow_lisp | |
" autocmd! | |
" autocmd FileType clojure,janet RainbowParenthesesToggle | |
" augroup END | |
" vim-plug | |
let g:plug_window = "abo new" | |
" Airline | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#whitespace#enabled=0 | |
" Deoplete | |
" let g:deoplete#enable_at_startup = 1 | |
" inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" | |
" autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | silent! pclose | endif | |
" Conjure | |
let g:conjure_config = {"log.botright?": v:true} | |
" Vim Static Clojure Highlight | |
let g:clojure_syntax_keywords = { | |
\ 'clojureMacro': ["defproject", "s/def", "s/fdef"], | |
\ 'clojureFunc': ["string/join", "string/replace"] | |
\ } | |
" " Vim Static Clojure Indentation | |
let g:clojure_fuzzy_indent = 1 | |
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let', '^fdef'] | |
let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment