summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorChristian Segundo2024-02-18 08:19:51 +0100
committerChristian Segundo2024-02-18 08:19:51 +0100
commit85d7d7c082bd84d3c701ceec3d477ee37db5c827 (patch)
treeb78f09285c5120783f94cf9c2465a46439af2b71 /init.lua
parent7869bf2c310fbed680abd01d45a17057f857bf30 (diff)
downloadconfig-85d7d7c082bd84d3c701ceec3d477ee37db5c827.tar.gz
bootstrap
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua48
1 files changed, 48 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..b0648b1
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,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,
+--})