From 227899a5a0edf9e449d0697eb5e387dd5ea942ed Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 3 Sep 2021 15:57:44 -0600 Subject: initial work on getting lua setup working --- init.lua.backup | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 init.lua.backup (limited to 'init.lua.backup') diff --git a/init.lua.backup b/init.lua.backup new file mode 100644 index 0000000..7460139 --- /dev/null +++ b/init.lua.backup @@ -0,0 +1,66 @@ +-- How to install +-- +-- 1. Run `PackerSync` +-- 2. Run TSInstall for treesitter grammar +-- 3. LspInfo to check if the language servers are working + + +-- Bootstrap packer if not installed +local fn = vim.fn +local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' +if fn.empty(fn.glob(install_path)) > 0 then + fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd 'packadd packer.nvim' +end + +-- Install My Stuff +require('settings') + +vim.cmd "nnoremap ps PackerSync" + +vim.cmd "nnoremap ff Telescope find_files" +vim.cmd "nnoremap / Telescope live_grep" +vim.cmd "nnoremap fb Telescope buffers" +vim.cmd "nnoremap fg lua require('telescope.builtin').git_status()" + +vim.cmd "let g:python3_host_prog = expand('~/venv/bin/python3')" +vim.cmd "let g:rnvimr_enable_ex = 1" +vim.cmd "let g:rnvimr_enable_picker = 1" +vim.cmd "nnoremap m :RnvimrToggle" +vim.cmd "let g:rnvimr_action = { '': 'NvimEdit tabedit' }" + + +vim.cmd "au BufWritePost lua require('lint').try_lint()" + +return require('packer').startup(function() + use 'wbthomason/packer.nvim' + use 'Thornycrackers-Forks/nord-vim' + use { + 'nvim-treesitter/nvim-treesitter', + run = ':TSUpdate', + config = function() + require "treesitterconf" + end, + } + use { + "neovim/nvim-lspconfig", + config = function() + require "lspconfigconf" + end, + } + use 'nvim-treesitter/playground' + use { + 'nvim-telescope/telescope.nvim', + requires = { {'nvim-lua/plenary.nvim'} }, + config = function() + require "telescopeconf" + end, + } + use 'kevinhwang91/rnvimr' + use { + 'jose-elias-alvarez/null-ls.nvim', + config = function() + require "nvimlintconf" + end, + } +end) -- cgit v1.2.3