2022-11-01 04:38:19 +00:00
|
|
|
" Asara's neovim config
|
|
|
|
|
|
|
|
" enable syntax highlighting
|
|
|
|
syntax enable
|
|
|
|
set number
|
|
|
|
set cursorline
|
|
|
|
filetype plugin indent on
|
|
|
|
set lazyredraw
|
|
|
|
set showmatch
|
|
|
|
set hlsearch
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
" `\ ` will remove search highlighting
|
|
|
|
nnoremap <leader><space> :nohlsearch<CR>
|
|
|
|
|
|
|
|
" remape jk to escape
|
|
|
|
inoremap jk <esc>
|
|
|
|
|
|
|
|
" highlight extra whitespace
|
|
|
|
:hi ExtraWhitespace ctermbg=blue
|
|
|
|
:match ExtraWhitespace /\s\+$\| \+\ze\t/
|
|
|
|
|
|
|
|
" set status line colors since my theme doesn't set them
|
|
|
|
:hi StatusLine ctermbg=grey ctermfg=black
|
|
|
|
|
|
|
|
" limit viminfo line memory
|
|
|
|
set viminfo='100,<1000,s100,h
|
|
|
|
|
|
|
|
" enable some plugins
|
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
|
|
|
Plug 'godlygeek/tabular'
|
2023-07-25 18:48:20 +00:00
|
|
|
" Plug 'preservim/vim-markdown'
|
2022-11-01 04:38:19 +00:00
|
|
|
Plug 'fladson/vim-kitty'
|
|
|
|
Plug 'hashivim/vim-terraform'
|
|
|
|
Plug 'rhadley-recurly/vim-terragrunt'
|
2023-07-25 18:48:20 +00:00
|
|
|
Plug 'nvim-treesitter/nvim-treesitter'
|
|
|
|
Plug 'nvim-orgmode/orgmode'
|
2022-11-01 04:38:19 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" terraform fmt/hclfmt on save
|
|
|
|
let g:terraform_fmt_on_save=1
|
|
|
|
let g:hcl_fmt_autosave = 1
|
2023-07-25 18:48:20 +00:00
|
|
|
|
|
|
|
"orgmode
|
|
|
|
lua << EOF
|
|
|
|
require('orgmode').setup_ts_grammar()
|
|
|
|
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = {'org'},
|
|
|
|
},
|
|
|
|
ensure_installed = {'org'},
|
|
|
|
}
|
|
|
|
|
|
|
|
require('orgmode').setup({
|
|
|
|
org_agenda_files = {'~/org/*'},
|
|
|
|
org_default_notes_file = '~/org/refile.org',
|
|
|
|
})
|
|
|
|
|
|
|
|
EOF
|