aboutsummaryrefslogtreecommitdiff
path: root/init.lua.backup
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua.backup')
-rw-r--r--init.lua.backup66
1 files changed, 66 insertions, 0 deletions
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 <langauge> 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 <space>ps <cmd>PackerSync<cr>"
+
+vim.cmd "nnoremap <space>ff <cmd>Telescope find_files<cr>"
+vim.cmd "nnoremap <space>/ <cmd>Telescope live_grep<cr>"
+vim.cmd "nnoremap <space>fb <cmd>Telescope buffers<cr>"
+vim.cmd "nnoremap <space>fg <cmd>lua require('telescope.builtin').git_status()<cr>"
+
+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 <space>m :RnvimrToggle<CR>"
+vim.cmd "let g:rnvimr_action = { '<CR>': 'NvimEdit tabedit' }"
+
+
+vim.cmd "au BufWritePost <buffer> 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)