vim: remove old cruft

This commit is contained in:
Gabriel Ebner 2021-05-24 11:54:11 +02:00
parent f506b8ee51
commit d73b38a8a9

39
vimrc

@ -36,8 +36,6 @@ Plug 'digitaltoad/vim-jade'
Plug 'ledger/vim-ledger'
Plug 'dag/vim2hs'
Plug 'eagletmt/ghcmod-vim'
Plug 'eagletmt/neco-ghc'
" clojure
Plug 'tpope/vim-leiningen'
@ -51,11 +49,9 @@ Plug 'Blackrush/vim-gocode'
Plug 'zah/nimrod.vim'
Plug 'wting/rust.vim'
Plug 'racer-rust/vim-racer', { 'for': 'rust' }
Plug 'cespare/vim-toml'
Plug 'derekwyatt/vim-scala'
" Plug 'ensime/ensime-vim'
Plug 'dogrover/vim-pentadactyl'
Plug 'superbrothers/vim-vimperator'
@ -63,11 +59,9 @@ Plug 'superbrothers/vim-vimperator'
Plug 'idris-hackers/idris-vim'
Plug 'tpope/vim-fugitive' " git integration
Plug 'jreybert/vimagit'
Plug 'airblade/vim-gitgutter'
Plug 'lervag/vimtex'
" Plug 'ludovicchabant/vim-gutentags'
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-indent'
@ -174,10 +168,6 @@ au BufNewFile,BufRead *.smt2 setl ft=smt
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
au BufReadCmd *.FCStd call zip#Browse(expand("<amatch>"))
au FileType scala nnoremap <silent> <c-]> :EnDeclaration<cr>
au syntax haskell setl omnifunc=necoghc#omnifunc
let g:necoghc_enable_detailed_browse=1
let g:haskell_conceal = 0
call tcomment#type#Define('nix', '# %s')
@ -201,21 +191,6 @@ lua <<EOF
treesitter = {},
lsp = {
on_attach = function(client, bufnr)
-- See https://github.com/neovim/nvim-lspconfig#keybindings-and-completion
-- for detailed examples of what you may want to do here.
--
-- Mapping a key (typically K) to `vim.lsp.buf.hover()`
-- is highly recommended for Lean, since the hover LSP command
-- is where you'll see the current goal state.
--
-- You may furthermore want to add an `autocmd` to run it on
-- `CursorHoldI`, which will show the goal state any time the
-- cursor is unmoved in insert mode.
--
-- In the future, this plugin may offer a recommended "complete
-- setup" for easy enabling of the above.
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
vim.api.nvim_exec([[
augroup lsp_document_highlight
autocmd!
@ -318,21 +293,7 @@ nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<CR>
endif
let g:gutentags_cache_dir="~/.config/nvim/gutentags"
let g:tex_flavor = 'latex'
let g:vimtex_compiler_progname = 'nvr'
let g:vimtex_indent_enabled = 0
au syntax tex setl indentexpr= " disable vim crap: https://github.com/lervag/vimtex/issues/2007#issuecomment-808768783
augroup my_cm_setup
autocmd!
autocmd User CmSetup call cm#register_source({
\ 'name' : 'vimtex',
\ 'priority': 8,
\ 'scoping': 1,
\ 'scopes': ['tex'],
\ 'abbreviation': 'tex',
\ 'cm_refresh_patterns': g:vimtex#re#ncm,
\ 'cm_refresh': {'omnifunc': 'vimtex#complete#omnifunc'},
\ })
augroup END