Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call plug#begin(stdpath('data').'/plugged')
- " Manage python virtual environments
- Plug 'rafi/vim-venom', { 'for': 'python' }
- " Integration of R
- Plug 'jalvesaq/Nvim-R'
- " Neovim 0.5.0 plugins:
- " Treesitter for better syntax highlighting
- Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
- Plug 'nvim-treesitter/playground'
- " Gruvbox colorscheme
- Plug 'rktjmp/lush.nvim' "dependency of gruvbox
- Plug 'ellisonleao/gruvbox.nvim'
- call plug#end()
- " Change the <leader> key from the default "\" to "spacebar"
- let mapleader="\<Space>"
- let maplocalleader="\<Space>"
- set completeopt=noinsert,menuone,noselect
- " Enable truecolors in nvim
- set termguicolors
- " Treesitter config
- lua <<EOF
- require'nvim-treesitter.configs'.setup {
- ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
- highlight = {
- enable = true, -- false will disable the whole extension
- -- 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,
- },
- playground = {
- enable = true,
- disable = {},
- updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
- persist_queries = false, -- Whether the query persists across vim sessions
- keybindings = {
- toggle_query_editor = 'o',
- toggle_hl_groups = 'i',
- toggle_injected_languages = 't',
- toggle_anonymous_nodes = 'a',
- toggle_language_display = 'I',
- focus_language = 'f',
- unfocus_language = 'F',
- update = 'R',
- goto_node = '<cr>',
- show_help = '?',
- },
- }
- }
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement