Created
December 3, 2022 14:11
-
-
Save qvacua/4715f4d8df30c40ff48337f03dfb92de to your computer and use it in GitHub Desktop.
init.vim
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
syntax on | |
filetype plugin indent on | |
call plug#begin('~/.vim/plugged') | |
if has("gui_vimr") | |
else | |
Plug 'christoomey/vim-tmux-navigator' | |
endif | |
Plug 'neovim/nvim-lspconfig' | |
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update | |
Plug 'ms-jpq/coq_nvim', {'branch': 'coq'} | |
Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'} | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'itchyny/lightline.vim' | |
" git | |
Plug 'airblade/vim-gitgutter' | |
Plug 'tpope/vim-fugitive' | |
Plug 'will133/vim-dirdiff' | |
Plug 'rhysd/committia.vim' | |
" fzf | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
" latex | |
"Plug 'lervag/vimtex' | |
Plug 'numToStr/Comment.nvim' | |
" colors | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'rakr/vim-one' | |
Plug 'rakr/vim-two-firewatch' | |
Plug 'endel/vim-github-colorscheme' | |
Plug 'doums/darcula' | |
Plug 'dracula/vim' | |
call plug#end() | |
set foldmethod=expr | |
set foldexpr=nvim_treesitter#foldexpr() | |
set nofoldenable | |
set nojoinspaces "no spaces when J and gq | |
set bs=2 "backspace mode | |
set hlsearch "highlight search results | |
set ignorecase "ignore case when searching, smartcase is better | |
set smartcase "if only small letters, then ignore case, if capital then, case sensitive | |
set incsearch "incremental search | |
set noshowmode "show the current mode in the status line | |
set enc=utf-8 "default encoding to utf-8 | |
set showmatch "ShowMatch (bracket) | |
set matchtime=0 "0 second to show the matching paren ( much faster ) | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set smarttab | |
set ruler | |
set inccommand=nosplit | |
set belloff=all | |
set nu | |
set splitbelow | |
set splitright | |
"set cul "hightlight current line | |
"set cuc "hightlight current column | |
"set colorcolumn=100 | |
"set autochdir | |
"set spell | |
set termguicolors | |
if has("gui_vimr") | |
"set bg=dark | |
"set bg=light | |
colorscheme darcula | |
else | |
set bg=dark | |
"colorscheme dracula | |
endif | |
let g:coq_settings = { 'auto_start': 'shut-up' } | |
lua <<EOF | |
require'lspconfig'.bashls.setup{} | |
require'lspconfig'.pyright.setup{} | |
require'lspconfig'.cmake.setup{} | |
-- require'lspconfig'.texlab.setup{} | |
require('Comment').setup() | |
EOF | |
lua <<EOF | |
require'nvim-treesitter.configs'.setup { | |
ensure_installed = "all", | |
-- Install languages synchronously (only applied to `ensure_installed`) | |
sync_install = false, | |
-- List of parsers to ignore installing | |
ignore_install = { "phpdoc" }, | |
highlight = { | |
-- `false` will disable the whole extension | |
enable = true, | |
-- list of language that will be disabled | |
-- disable = { "c", "rust" }, | |
-- Setting this to true will run `:h syntax` and tree-sitter at the same time. | |
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). | |
-- Using this option may slow down your editor, and you may see some duplicate highlights. | |
-- Instead of true it can also be a list of languages | |
additional_vim_regex_highlighting = false, | |
}, | |
} | |
EOF | |
" vimtex | |
"let g:vimtex_view_method = 'skim' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment