set nocompatible " download vim-plug if missing if empty(glob("~/.local/share/nvim/site/autoload/plug.vim")) silent! execute '!curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * silent! PlugInstall endif call plug#begin(stdpath('data') . '/plugged') Plug 'tpope/vim-sensible' Plug 'tpope/vim-surround' Plug 'tpope/vim-commentary' Plug 'tpope/vim-repeat' Plug 'tpope/vim-dispatch' Plug 'tpope/vim-abolish' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rhubarb' Plug 'tpope/vim-sexp-mappings-for-regular-people' Plug 'guns/vim-sexp' Plug 'christoomey/vim-sort-motion' Plug 'kana/vim-textobj-user' Plug 'kana/vim-textobj-indent' Plug 'kana/vim-textobj-line' Plug 'kyazdani42/nvim-web-devicons' Plug 'christoomey/vim-tmux-navigator' Plug 'preservim/nerdtree' Plug 'tversteeg/registers.nvim' Plug 'neovim/nvim-lspconfig' Plug 'williamboman/nvim-lsp-installer' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-cmdline' Plug 'hrsh7th/nvim-cmp' Plug 'jose-elias-alvarez/null-ls.nvim' Plug 'duane9/nvim-rg' Plug 'tversteeg/registers.nvim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " https://github.com/mrjones2014/dash.nvim/issues/137 Plug 'ibhagwan/fzf-lua', {'commit': '341f0641ea4b0bd1cb798d7138f1a84c90848b02'} Plug 'mrjones2014/dash.nvim', { 'do': 'make install' } Plug 'elixir-editors/vim-elixir' Plug 'khaveesh/vim-fish-syntax' Plug 'neovimhaskell/haskell-vim' Plug 'alx741/vim-hindent' Plug 'gleam-lang/gleam.vim' Plug 'benknoble/vim-racket' Plug 'vim-scripts/scribble.vim' Plug 'dracula/vim', { 'as': 'dracula' } call plug#end() syntax enable filetype plugin indent on colorscheme dracula set number set relativenumber set tabstop=2 set shiftwidth=2 set expandtab set mouse=a set cmdheight=2 set nobackup set nowritebackup set spell let mapleader=',' nnoremap ; : nnoremap q; q: vnoremap ; : vnoremap q; q: nnoremap w :w nnoremap wq :wq nnoremap q :q nnoremap :nohlsearch nnoremap :NERDTreeToggle " Copy to clipboard vnoremap y "+y nnoremap Y "+yg_ nnoremap y "+y " Paste from clipboard nnoremap p "+p nnoremap P "+P vnoremap p "+p vnoremap P "+P nnoremap ~ :split ~/.config/nvim/init.vim nnoremap so :so % nnoremap f lua require('fzf-lua').files() nnoremap a lua require('fzf-lua').grep_project() " nnoremap gs :Git nnoremap gs :Git nnoremap gp :Git push --force-with-lease -u origin head nnoremap gf :Git fetch nnoremap gr :Git rebase origin/main nnoremap gb :Git checkout -b luafile ~/.config/nvim/lua/lsp-setup.lua " lua require('gitsigns').setup() nnoremap o :only lua require('dash').setup({ file_type_keywords = { elixir = { 'ex' } } }) nnoremap d lua require('dash').search() " Terminal mode tnoremap tnoremap h tnoremap j tnoremap k tnoremap l let g:vim_markdown_frontmatter = 1 let g:vim_markdown_toml_frontmatter = 1