-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
107 lines (94 loc) · 2.4 KB
/
init.lua
File metadata and controls
107 lines (94 loc) · 2.4 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
-- line #'s
vim.opt.number = true
-- target directory
if vim.fn.argc() == 0 then
vim.api.nvim_set_current_dir("C:/Users/pretb/code")
end
-- cursort effect (neovide)
if vim.g.neovide then
vim.g.neovide_cursor_vfx_mode = "railgun"
end
-- syntax highlighting + cursor smearing + auto close brackets n stuff
-- + secret sauce (aka copilot)
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"github/copilot.vim",
event = "InsertEnter",
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}
},
{
"sphamba/smear-cursor.nvim",
event = "VimEnter",
cond = not vim.g.neovide, -- only load in Neovim, not Neovide
opts = {
smear_between_buffers = true,
smear_between_neighbor_lines = true,
scroll_buffer_space = true,
legacy_computing_symbols_support = false,
}
},
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd([[colorscheme tokyonight-night]])
end,
},
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
opts = {
ensure_installed = { "c", "cpp", "go", "lua", "vim", "vimdoc",
"python", "javascript", "html", "css", "typescript", "tsx"},
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
}
{
-- gitsigns for line-by-line status
"lewis6991/gitsigns.nvim",
event = { "BufReadPre", "BufNewFile" },
opts = {
signs = {
add = { text = '│' },
change = { text = '│' },
delete = { text = '_' },
topdelete = { text = '‾' },
changedelete = { text = '~' },
},
}
},
-- telescope for viewing project-wide git file status
{
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
dependencies = { "nvim-lua/plenary.nvim" }
}
})
-- block cursor in insert mode, blinking
vim.opt.guicursor = "i:block-blinkwait700-blinkon400-blinkoff400"
-- default tab amnt -> 4 spaces
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true