From d0ede5d4848350eb5462b0566d5995c136774250 Mon Sep 17 00:00:00 2001 From: Nydragon <6582485n@proton.me> Date: Sun, 12 Feb 2023 19:22:36 +0100 Subject: [PATCH] add neovim config file --- firefox/cookie_cache | Bin 196608 -> 196608 bytes nvim/init.vim | 4 + nvim/lua/nightfox-config.lua | 12 +++ nvim/lua/nvim-tree-config.lua | 1 + nvim/lua/plugins.lua | 62 ++++++++++++++ nvim/plugin/packer_compiled.lua | 144 ++++++++++++++++++++++++++++++++ terminatorrc | 6 +- 7 files changed, 227 insertions(+), 2 deletions(-) create mode 100644 nvim/lua/nightfox-config.lua create mode 100644 nvim/lua/nvim-tree-config.lua create mode 100644 nvim/lua/plugins.lua create mode 100644 nvim/plugin/packer_compiled.lua diff --git a/firefox/cookie_cache b/firefox/cookie_cache index c2e3744241184e0478f9862f785b3d68778511f6..35d182c0ce1f6901bd998255681c9cdb13f489ef 100644 GIT binary patch delta 2182 zcmZWqe^6A{72bQ7T^p-G;!6#n9dFP~92*^NYtp2~Jd==Usfw{qqZI5IrI0ofCz@Ctlcv!)JudAG(0|^{ z`ObIF{m!}Pp4ZV4)6o&rw-E1M*`Hhq-_G?%*Q1jPZ@h6m1$8f@$5Rw~4Ee~+z#?4`e6#cb!0htE!KEC&0hrN!*+b0~+;p8s$;*iXil zD_@*LrBOWX+NXt#!>wADdl7vJY8DTu0C0I!^<8;v=?F?vD*uXhqc}?583Tt;9xLz4 z;#A96MLX8Na|!KM^E7pH5x9iMik1CWP!-S9{+jau{N$X+$1p=IPGawk zp>*Zi_b3^w$JJ9uBk?opvgmK3cSo;{UdVsQJNT5Ssi<91PjL6S*EtuL8+kqQNMu_i z(caL$t!>igYOZMxYMM1U5r2z#EkcUOR8RG{q^ry1QSN*><^_G&#&$)r6edx7@R%e|$teI^Z9Udh+y z_J{$YA;d0Bp~NiO@tcD{9(wkmMXush1+#Lxy=}Bj3V5j~viM`@hw1d^(T9LNIB{r& zyo^(2ubZjhe@x+Xl+4zjLa|w&8q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|EY);OaXeTt#U?#q_QTS~ul1bBYOAL^Kfn(S>AAPZ7vzuM{CqRz z7}|qTFtZLq9judTytY+ozb!$IR4Edvr3h);K0=*ii*S!lxQ>@_&Bw-v@UfIow zH)p!p?02vz@xbrmWFEAzC7B)g0T&Q9?w_9kVkz#MVC~b8&zF7o$l(Tg@@Jfznr0vd zOLWuNYV_$bmNx@IfWHiO890$KZ(x(c*?5IX=dgpIrp;2+Sy5Kf@{~JaDhnF>` z0g3k%r?JijsP@59#rbxw>`!Q?8D5CPdd1ufzmoOU4884zT5K2&*vt8<C;b8gx>?M)ib+pTYLR!dwBU&j%Z3WfzZP z%5<^gf#?dtl5V}kC0XAkHXMwal~~s^=>W1@=yFgRhUT%Z!$f$Yyeh(|9=Qbd+L7xK zKqB?o5eG{x6e5w9#)Tt&z}jISk@KNLqOCMRrHDO6tG1y)<_t$P5bORZmE1M%lag&Q zqka`HUs>5WFQ4c1IP)f=BCS99`u5={$jbpGqs*0oas 0 then + fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd [[packadd packer.nvim]] + return true + end + return false +end + +local packer_bootstrap = ensure_packer() + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' + + use { + 'nvim-tree/nvim-tree.lua', + requires = { + 'nvim-tree/nvim-web-devicons', -- optional, for file icons + } + } + + use { + 'nvim-lualine/lualine.nvim', + requires = { + 'nvim-tree/nvim-web-devicons', -- optional, for file icons + } + + } + + use {'romgrk/barbar.nvim', requires = 'nvim-web-devicons'} + + use 'nvim-treesitter/nvim-treesitter' + + use 'neovim/nvim-lspconfig' -- Configurations for Nvim LSP + use 'preservim/nerdcommenter' + + use "lukas-reineke/indent-blankline.nvim" + + use "EdenEast/nightfox.nvim" + + vim.cmd([[ + augroup packer_user_config + autocmd! + autocmd BufWritePost plugins.lua source | PackerCompile + augroup end + ]]) + + + -- setup section + require('nvim-tree').setup() + + require('nightfox-config') + require('nvim-tree-config') + + if packer_bootstrap then + require('packer').sync() + end +end) + + diff --git a/nvim/plugin/packer_compiled.lua b/nvim/plugin/packer_compiled.lua new file mode 100644 index 0000000..89976bb --- /dev/null +++ b/nvim/plugin/packer_compiled.lua @@ -0,0 +1,144 @@ +-- Automatically generated packer.nvim plugin loader code + +if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then + vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') + return +end + +vim.api.nvim_command('packadd packer.nvim') + +local no_errors, error_msg = pcall(function() + +_G._packer = _G._packer or {} +_G._packer.inside_compile = true + +local time +local profile_info +local should_profile = false +if should_profile then + local hrtime = vim.loop.hrtime + profile_info = {} + time = function(chunk, start) + if start then + profile_info[chunk] = hrtime() + else + profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 + end + end +else + time = function(chunk, start) end +end + +local function save_profiles(threshold) + local sorted_times = {} + for chunk_name, time_taken in pairs(profile_info) do + sorted_times[#sorted_times + 1] = {chunk_name, time_taken} + end + table.sort(sorted_times, function(a, b) return a[2] > b[2] end) + local results = {} + for i, elem in ipairs(sorted_times) do + if not threshold or threshold and elem[2] > threshold then + results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' + end + end + if threshold then + table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') + end + + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/home/jul/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/jul/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/jul/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/jul/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/jul/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" +if not string.find(package.path, package_path_str, 1, true) then + package.path = package.path .. ';' .. package_path_str +end + +if not string.find(package.cpath, install_cpath_pattern, 1, true) then + package.cpath = package.cpath .. ';' .. install_cpath_pattern +end + +time([[Luarocks path setup]], false) +time([[try_loadstring definition]], true) +local function try_loadstring(s, component, name) + local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) + if not success then + vim.schedule(function() + vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) + end) + end + return result +end + +time([[try_loadstring definition]], false) +time([[Defining packer_plugins]], true) +_G.packer_plugins = { + ["barbar.nvim"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/barbar.nvim", + url = "https://github.com/romgrk/barbar.nvim" + }, + ["indent-blankline.nvim"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", + url = "https://github.com/lukas-reineke/indent-blankline.nvim" + }, + ["lualine.nvim"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/lualine.nvim", + url = "https://github.com/nvim-lualine/lualine.nvim" + }, + nerdcommenter = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nerdcommenter", + url = "https://github.com/preservim/nerdcommenter" + }, + ["nightfox.nvim"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nightfox.nvim", + url = "https://github.com/EdenEast/nightfox.nvim" + }, + ["nvim-lspconfig"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, + ["nvim-tree.lua"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", + url = "https://github.com/nvim-tree/nvim-tree.lua" + }, + ["nvim-treesitter"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, + ["nvim-web-devicons"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", + url = "https://github.com/nvim-tree/nvim-web-devicons" + }, + ["packer.nvim"] = { + loaded = true, + path = "/home/jul/.local/share/nvim/site/pack/packer/start/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + } +} + +time([[Defining packer_plugins]], false) + +_G._packer.inside_compile = false +if _G._packer.needs_bufread == true then + vim.cmd("doautocmd BufRead") +end +_G._packer.needs_bufread = false + +if should_profile then save_profiles() end + +end) + +if not no_errors then + error_msg = error_msg:gsub('"', '\\"') + vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') +end diff --git a/terminatorrc b/terminatorrc index 1d20cc4..24c6822 100644 --- a/terminatorrc +++ b/terminatorrc @@ -1,8 +1,9 @@ [global_config] window_state = fullscreen borderless = True + extra_styling = False tab_position = bottom - inactive_color_offset = 0.7073170731707317 + inactive_color_offset = 0.9 suppress_multiple_term_dialog = True [keybindings] next_tab = Page_Down @@ -12,9 +13,10 @@ switch_to_tab_4 = 4 [profiles] [[default]] - background_darkness = 0.8 + background_darkness = 0.9 background_type = transparent background_image = /home/jul/Downloads/debian-11.4.0-amd64-netinst.iso + font = DejaVu Sans Mono 10 foreground_color = "#ffffff" show_titlebar = False scrollbar_position = hidden