" Automatic vim-plug installation if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"')) echo "Downloading junegunn/vim-plug to manage plugins..." silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/ silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim autocmd VimEnter * PlugInstall endif call plug#begin(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/plugged"')) " Appearance Plug 'Mofiqul/dracula.nvim' " dracula theme Plug 'ellisonleao/gruvbox.nvim' " gruvbox theme "Plug 'catppuccin/nvim', { 'as': 'catppuccin' } " catppuccin theme "Plug 'neanias/everforest-nvim' " everforest theme Plug 'mhinz/vim-startify' " start screen Plug 'nvim-lualine/lualine.nvim' " bottom bar Plug 'kyazdani42/nvim-web-devicons' " fancy icons Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " syntax color Plug 'p00f/nvim-ts-rainbow' " funny brackets "Plug 'lukas-reineke/indent-blankline.nvim' " funny indentation Plug 'm-demare/hlargs.nvim' " highlight arguments " LSP Support and Autocompletion Engine Plug 'neovim/nvim-lspconfig' Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-nvim-lsp-signature-help' "Plug 'hrsh7th/cmp-nvim-lsp-document-symbol' Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-calc' Plug 'ray-x/cmp-treesitter' Plug 'saadparwaiz1/cmp_luasnip' Plug 'L3MON4D3/LuaSnip', {'do': 'make install_jsregexp'} Plug 'ratakor/vim-snippets' " Misc Plug 'bronson/vim-trailing-whitespace' " FixWhitespace Plug 'airblade/vim-gitgutter' " hud for git in vim Plug 'nvim-lua/plenary.nvim' " dependency for telescope Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' } " fuzzy finder Plug 'preservim/nerdtree' " vs code be like Plug 'mbbill/undotree' " history visualizer Plug 'tpope/vim-commentary' " gc/gcc magic comment Plug 'ziglang/zig.vim' Plug 'kovetskiy/sxhkd-vim' Plug 'petertriho/nvim-scrollbar' Plug 'andrewferrier/debugprint.nvim' Plug 'm4xshen/autoclose.nvim' "Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } call plug#end() source $XDG_CONFIG_HOME/nvim/basics.vim source $XDG_CONFIG_HOME/nvim/header.vim source $XDG_CONFIG_HOME/nvim/appearance.vim source $XDG_CONFIG_HOME/nvim/lsp.vim " Telescope config nnoremap :Telescope find_files nnoremap :Telescope git_files " NerdTree config nnoremap :NERDTreeToggle " Undotree config nnoremap :UndotreeToggle " custom vim-commentary autocmd FileType zig setl commentstring=//\ %s autocmd FileType cs setl commentstring=/*\ %s\ */ lua << EOF require("debugprint").setup() EOF "let g:startify_custom_header = [ let g:cow = [ \" /\\_\\/\\_\\ _ / /\\ /\\ \\ /\\ \\ /\\ \\ _\\ \\ _\\ \\ /\\_\\ / /\\", \" / / / / //\\_\\ / / \\ / \\ \\ / \\ \\ / \\ \\ /\\__ \\ /\\__ \\ / / / _ / / \\ ", \" /\\ \\/ \\ \\/ / // / /\\ \\ / /\\ \\ \\ / /\\ \\ \\ / /\\ \\ \\ / /_ \\_\\ / /_ \\_\\ \\ \\ \\__ /\\_\\ / / /\\ \\__ ", \" / \\____\\__/ // / /\\ \\ \\ / / /\\ \\_\\ / / /\\ \\ \\ / / /\\ \\_\\ / / /\\/_/ / / /\\/_/ \\ \\___\\ / / // / /\\ \\___\\ ", \" / /\\/________// / / \\ \\ \\ / / /_/ / / / / / \\ \\_\\ / /_/_ \\/_/ / / / / / / \\__ / / / / \\ \\ \\ \\/___/ ", \" / / /\\/_// / // / /___/ /\\ \\ / / /__\\/ / / / / \\/_/ / /____/\\ / / / / / / / / / / / / \\ \\ \\ ", \" / / / / / // / /_____/ /\\ \\ / / /_____/ / / / / /\\____\\/ / / / ____ / / / ____ / / / / / /_ \\ \\ \\ ", \"/ / / / / // /_________/\\ \\ \\ / / /\\ \\ \\ / / /________ / / /______ / /_/_/ ___/\\ / /_/_/ ___/\\ / / /___/ / //_/\\__/ / / ", \"\\/_/ / / // / /_ __\\ \\_\\/ / / \\ \\ \\/ / /_________\\/ / /_______\\/_______/\\__\\//_______/\\__\\// / /____\\/ / \\ \\/___/ / ", \" \\/_/ \\_\\___\\ /____/_/\\/_/ \\_\\/\\/____________/\\/__________/\\_______\\/ \\_______\\/ \\/_________/ \\_____\\/ ", \]