From fcf44b17142cbeaf1f6a4b66e5ab0eed1483ebe4 Mon Sep 17 00:00:00 2001 From: Dustin Walker Date: Thu, 16 Jan 2025 17:00:08 -0500 Subject: migration commit --- .config/nvim/init.vim | 21 +++++++++++++++++++++ .config/nvim/lua/config/treesitter.lua | 14 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .config/nvim/init.vim create mode 100644 .config/nvim/lua/config/treesitter.lua (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..af49ce8 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,21 @@ +if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p ~/.config/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif + +call plug#begin('~/.config/nvim/plugged') +Plug 'mboughaba/i3config.vim' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'itchyny/vim-gitbranch' +Plug 'tpope/vim-commentary' +Plug 'tpope/vim-fugitive' +Plug 'jreybert/vimagit' +Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} +call plug#end() + +set list +set number +lua require('config/treesitter') diff --git a/.config/nvim/lua/config/treesitter.lua b/.config/nvim/lua/config/treesitter.lua new file mode 100644 index 0000000..29f5158 --- /dev/null +++ b/.config/nvim/lua/config/treesitter.lua @@ -0,0 +1,14 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the five listed parsers should always be installed) + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "c_sharp", "python", "cpp", "gitignore", "gitattributes", "git_config", "git_rebase", "gitcommit", "html", "javascript", "make", "cmake", "zig", "bash", "asm", "json", "xml", "css" }, + + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = false, + + -- Automatically install missing parsers when entering buffer + auto_install = true, + + highlight = { + enable = true, + }, +} -- cgit v1.2.3