Skip to content

Instantly share code, notes, and snippets.

@thevillagehacker
Created October 16, 2024 03:34
Show Gist options
  • Select an option

  • Save thevillagehacker/1a3d0fa80c9721cd2abfa4bc4e3a87a7 to your computer and use it in GitHub Desktop.

Select an option

Save thevillagehacker/1a3d0fa80c9721cd2abfa4bc4e3a87a7 to your computer and use it in GitHub Desktop.

Revisions

  1. thevillagehacker created this gist Oct 16, 2024.
    91 changes: 91 additions & 0 deletions init.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,91 @@
    " Plugins

    call plug#begin()

    Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
    Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
    Plug 'https://github.com/preservim/nerdtree' ", {'on': 'NERDTreeToggle'}
    Plug 'https://github.com/vim-airline/vim-airline' " Status bar
    Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons
    Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal
    Plug 'https://github.com/scottmckendry/cyberdream.nvim' " Color Schemes
    Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme
    Plug 'https://github.com/preservim/tagbar', {'on': 'TagbarToggle'} " Tagbar for code navigation
    Plug 'https://github.com/dkarter/bullets.vim'
    Plug 'https://github.com/junegunn/fzf.vim' " Fuzzy Finder, Needs Silversearcher-ag for :Ag
    Plug 'https://github.com/junegunn/fzf'
    Plug 'https://github.com/glepnir/dashboard-nvim'
    Plug 'https://github.com/davidhalter/jedi-vim'
    Plug 'github/copilot.vim'
    Plug 'https://github.com/mbbill/undotree'
    " Plug 'https://github.com/numirias/semshi' " Commenting out semshi as it's causing errors
    Plug 'https://github.com/tpope/vim-fugitive'
    Plug 'https://github.com/catppuccin/nvim' "colorscheme plugin ++
    Plug 'https://github.com/RRethy/base16-nvim' "base-16 colorscheme

    " Treesitter plugin for syntax highlighting
    Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}

    call plug#end()

    " General Configuration

    set number
    set mouse=a
    set autoindent
    set smarttab
    set encoding=UTF-8

    :colorscheme cyberdream
    let g:airline_theme='onedark'

    " NERDTree Configuration

    let g:NERDTreeDirArrowExpandable="+"
    let g:NERDTreeDirArrowCollapsible="~"
    let g:python_highlight_all = 1

    nnoremap <C-f> :NERDTreeFocus<CR>
    nnoremap <C-n> :NERDTree<CR>
    nnoremap <C-t> :NERDTreeToggle<CR>
    nnoremap <C-l> :UndotreeToggle<CR>
    " VIM AIRLINE CONFIGURATION

    let g:airline_powerline_fonts = 1

    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif

    let g:bullets_enabled_file_types = [
    \ 'markdown',
    \ 'text'
    \]

    let g:airline_left_sep = ''
    let g:airline_left_alt_sep = ''
    let g:airline_right_sep = ''
    let g:airline_right_alt_sep = ''
    let g:airline_symbols.branch = ''
    let g:airline_symbols.readonly = ''
    let g:airline_symbols.linenr = ''

    " Tagbar

    nmap <F8> :TagbarToggle<CR>
    " Dashboard

    let g:dashboard_default_executive ='fzf'

    " Treesitter Configuration
    lua <<EOF
    require'nvim-treesitter.configs'.setup {
    ensure_installed = { "python", "lua", "javascript" }, -- Add other languages if needed
    highlight = {
    enable = true, -- false will disable the whole extension
    additional_vim_regex_highlighting = false,
    },
    }
    EOF