Advertisement
Guest User

minimal init.vim

a guest
Sep 14th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.87 KB | None | 0 0
  1. call plug#begin(stdpath('data').'/plugged')
  2.  
  3. " Manage python virtual environments
  4. Plug 'rafi/vim-venom', { 'for': 'python' }
  5.  
  6. " Integration of R
  7. Plug 'jalvesaq/Nvim-R'
  8.  
  9. " Neovim 0.5.0 plugins:
  10.  
  11. " Treesitter for better syntax highlighting
  12. Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
  13. Plug 'nvim-treesitter/playground'
  14.  
  15. " Gruvbox colorscheme
  16. Plug 'rktjmp/lush.nvim' "dependency of gruvbox
  17. Plug 'ellisonleao/gruvbox.nvim'
  18.  
  19. call plug#end()
  20.  
  21. " Change the <leader> key from the default "\" to "spacebar"
  22. let mapleader="\<Space>"
  23. let maplocalleader="\<Space>"
  24.  
  25. set completeopt=noinsert,menuone,noselect
  26. " Enable truecolors in nvim
  27. set termguicolors
  28.  
  29. " Treesitter config
  30. lua <<EOF
  31. require'nvim-treesitter.configs'.setup {
  32.   ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
  33.   highlight = {
  34.   enable = true, -- false will disable the whole extension
  35.   -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
  36.   -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
  37.   -- Using this option may slow down your editor, and you may see some duplicate highlights.
  38.   -- Instead of true it can also be a list of languages
  39.   additional_vim_regex_highlighting = false,
  40.   },
  41.   playground = {
  42.     enable = true,
  43.     disable = {},
  44.     updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
  45.     persist_queries = false, -- Whether the query persists across vim sessions
  46.     keybindings = {
  47.       toggle_query_editor = 'o',
  48.       toggle_hl_groups = 'i',
  49.       toggle_injected_languages = 't',
  50.       toggle_anonymous_nodes = 'a',
  51.       toggle_language_display = 'I',
  52.       focus_language = 'f',
  53.       unfocus_language = 'F',
  54.       update = 'R',
  55.       goto_node = '<cr>',
  56.       show_help = '?',
  57.     },
  58.   }
  59. }
  60. EOF
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement