Advertisement
deusbog

my-nvim-config

Aug 26th, 2022
1,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.31 KB | Source Code | 0 0
  1. call plug#begin()
  2. Plug 'dracula/vim'
  3. Plug 'scrooloose/nerdtree'
  4. Plug 'ryanoasis/vim-devicons'
  5. Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
  6. Plug 'junegunn/fzf.vim'
  7. Plug 'neoclide/coc.nvim', {'branch': 'release'}
  8. Plug 'rust-lang/rust.vim'
  9. Plug 'vim-airline/vim-airline'
  10. Plug 'vim-airline/vim-airline-themes'
  11. Plug 'morhetz/gruvbox'
  12. Plug 'Raimondi/delimitMate'
  13. Plug 'neovim/nvim-lspconfig'
  14. Plug 'hrsh7th/nvim-cmp'
  15. Plug 'hrsh7th/cmp-nvim-lsp'
  16. Plug 'saadparwaiz1/cmp_luasnip'
  17. Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
  18. Plug 'L3MON4D3/LuaSnip'
  19. Plug 'rafamadriz/friendly-snippets'
  20. Plug 'mfussenegger/nvim-lint'
  21. Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
  22. Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
  23. Plug 'yuezk/vim-js'
  24. Plug 'maxmellon/vim-jsx-pretty'
  25. Plug 'leafgarland/typescript-vim'
  26. Plug 'ap/vim-css-color'
  27. Plug 'tc50cal/vim-terminal'
  28. Plug 'ekalinin/Dockerfile.vim'
  29. Plug 'hashivim/vim-terraform'
  30. Plug 'xolox/vim-colorscheme-switcher'
  31. Plug 'xolox/vim-misc'
  32. Plug 'godlygeek/tabular'
  33. Plug 'preservim/vim-markdown'
  34. Plug 'cespare/vim-toml', { 'branch': 'main' }
  35. Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
  36. call plug#end()
  37. colorscheme dracula
  38. let g:NERDTreeShowHidden = 1
  39. let g:NERDTreeMinimalUI = 1
  40. let g:NERDTreeIgnore = []
  41. let g:NERDTreeStatusline = ''
  42. autocmd BufEnter NERD_tree_* | execute 'normal R'
  43. au CursorHold * if exists("t:NerdTreeBufName") | call <SNR>15_refreshRoot() | endif
  44. set background=dark
  45. set clipboard=unnamedplus
  46. set completeopt=noinsert,menuone,noselect
  47. set cursorline
  48. filetype plugin indent on
  49. syntax on
  50. syntax enable
  51. set autoindent
  52. set smarttab
  53. set t_Co=256
  54. set tabstop=4
  55. set shiftwidth=4
  56. set wildmenu
  57. set number
  58. set mouse=a
  59. set title
  60. set softtabstop=4  
  61. set noswapfile
  62. set termguicolors
  63. set expandtab
  64. set autoindent
  65. set fileformat=unix
  66. nmap <C-f> :NERDTree<CR>
  67. nnoremap <C-Left> <C-w>h
  68. nnoremap <C-Right> <C-w>l
  69. autocmd StdinReadPre * let s:std_in=1
  70. autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
  71. set encoding=UTF-8
  72. let g:airline#extensions#tabline#enabled = 1
  73. let g:airline#extensions#tabline#left_sep = ' '
  74. let g:airline#extensions#tabline#left_alt_sep = '|'
  75. let g:airline#extensions#tabline#formatter = 'unique_tail'
  76. if !exists('g:airline_symbols')
  77.   let g:airline_symbols = {}
  78. endif
  79. let g:airline_left_sep = ''
  80. let g:airline_left_alt_sep = ''
  81. let g:airline_right_sep = ''
  82. let g:airline_right_alt_sep = ''
  83. let g:airline_symbols.branch = ''
  84. let g:airline_symbols.readonly = ''
  85. let g:airline_symbols.linenr = '☰'
  86. let g:airline_symbols.maxlinenr = ''
  87. let g:airline_symbols.dirty='⚡'
  88. let g:airline_powerline_fonts = 1
  89. let g:coc_global_extensions = ['coc-python', 'coc-go', 'coc-html', 'coc-css', 'coc-json', 'coc-tsserver', 'coc-eslint', 'coc-tslint-plugin', 'coc-styled-components', 'coc-react-refactor', 'coc-yaml', 'coc-sh']
  90. nmap <S-Left> :bprevious<CR>
  91. nmap <S-Right> :bnext<CR>
  92. inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
  93. autocmd VimEnter * NERDTree
  94. inoremap jk <esc>
  95. inoremap < <><Left>
  96. set colorcolumn=120
  97. nmap <C-r> <Plug>(coc-codeaction-selected)
  98. let g:terraform_fmt_on_save = 1
  99. let g:mkdp_auto_start = 1
  100. let g:mkdp_refresh_slow = 1
  101. let g:mkdp_open_to_the_world = 1
  102. nmap <C-p> <Plug>MarkdownPreview
  103. wincmd w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement