diff options
author | Christian Segundo | 2023-10-12 15:29:11 +0200 |
---|---|---|
committer | Christian Segundo | 2023-10-12 15:29:11 +0200 |
commit | 542613a0f58ccb3722c93b4b68677d7b5053fd57 (patch) | |
tree | 04a940df3e75a4b4cbe53cc3392c4e1c63fc8c6f /public/nvim/.nvim/init.lua | |
parent | 449a6f57a36862a8ff27b2a3cee0922f4e4d949e (diff) | |
download | dotfiles-542613a0f58ccb3722c93b4b68677d7b5053fd57.tar.gz |
Add nvim
Diffstat (limited to 'public/nvim/.nvim/init.lua')
-rw-r--r-- | public/nvim/.nvim/init.lua | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/public/nvim/.nvim/init.lua b/public/nvim/.nvim/init.lua new file mode 100644 index 0000000..22c8dc7 --- /dev/null +++ b/public/nvim/.nvim/init.lua @@ -0,0 +1,49 @@ +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.neorg" }, + --{ 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, +--}) |