summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim/init.lua
blob: b0648b19ed9726e9df8d18c4e81444bac8d350ae (plain) (blame)
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
require("core")
--require("plugins")

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", -- latest stable release
		lazypath,
	})
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
	spec = {
		{ import = "plugins.core" },
		{ import = "plugins.eyecandy" },
		{ import = "plugins.lsp" },
		{ import = "plugins.lang" },
		{ import = "plugins.extra.copilot" },
		{ import = "plugins.extra.vim-fugitive" },
		--{ import = "plugins.extra.feline" },
	},
	change_detection = {
		enabled = true,
		notify = false,
	},
})

--vim.api.nvim_create_autocmd({ "BufEnter", "BufRead" }, {
--pattern = { "*" },
--callback = function(args)
--local file_size = vim.fn.getfsize(args.file)
----vim.api.nvim_buf_get_lines(buf, firstline, new_lastline, false)
----nvim_buf_get_lines({buffer}, {start}, {end}, {strict_indexing})
--if file_size > 1024 * 1024 then
--pcall(vim.cmd, "TSBufDisable highlight")
--pcall(vim.cmd, "syntax off")
--pcall(vim.cmd, "syntax clear")
--pcall(vim.cmd, "IlluminatePauseBuf")
--pcall(vim.cmd, "IndentBlanklineDisable")
--pcall(vim.cmd, "NoMatchParen")
--end
--end,
--})