1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
-- 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)
|