From 39a13f1a5693e548eb58f8f017960191c153211c Mon Sep 17 00:00:00 2001 From: connorgmeean Date: Fri, 15 Jul 2022 00:15:10 +1000 Subject: [PATCH] refact: Renamed helper tools folder`contribute/` to `tools/` --- README.md | 2 +- docs/contributing.md | 8 +- {contribute => tools}/Dockerfile | 0 {contribute => tools}/README.md | 16 +- {contribute => tools}/_docker_entry.sh | 0 {contribute => tools}/install.sh | 0 .../plugin/packer_compiled.lua | 203 ++++++++++++++++++ ...m%.config%nvim%lua%doom%modules%config.vim | 37 ++++ .../sessions/%home%doom%.config%nvim.vim | 47 ++++ .../%home%doom%workspace%neonz-ar-launch.vim | 52 +++++ .../sessions/%home%doom%workspace.vim | 48 +++++ {contribute => tools}/start_docker.sh | 0 {contribute => tools}/update_dependencies.sh | 0 13 files changed, 400 insertions(+), 13 deletions(-) rename {contribute => tools}/Dockerfile (100%) rename {contribute => tools}/README.md (79%) rename {contribute => tools}/_docker_entry.sh (100%) rename {contribute => tools}/install.sh (100%) create mode 100644 tools/local-share-nvim/plugin/packer_compiled.lua create mode 100644 tools/local-share-nvim/sessions/%home%doom%.config%nvim%lua%doom%modules%config.vim create mode 100644 tools/local-share-nvim/sessions/%home%doom%.config%nvim.vim create mode 100644 tools/local-share-nvim/sessions/%home%doom%workspace%neonz-ar-launch.vim create mode 100644 tools/local-share-nvim/sessions/%home%doom%workspace.vim rename {contribute => tools}/start_docker.sh (100%) rename {contribute => tools}/update_dependencies.sh (100%) diff --git a/README.md b/README.md index 0b46b09..4596a3f 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Some of the defining features that make this project unique are: ### Mac OS / Linux ```bash -bash <(curl -s https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/next/contribute/install.sh) +bash <(curl -s https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/next/tools/install.sh) ``` ### Manual (Mac OS / Linux) diff --git a/docs/contributing.md b/docs/contributing.md index 6f025a9..3d58852 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -32,7 +32,7 @@ will have less settings and plugins than you personal branch and therefore it wi not work as expected otherwise. Eg. you will see 'Dashboard' text on vim load instead of 'Doom'. -> Alternatively you can setup an isolated dev environment for contributing using our docker image [here](../contribute/README.md#doom-contrib-docker-image-start_dockersh). +> Alternatively you can setup an isolated dev environment for contributing using our docker image [here](../tools/README.md#doom-contrib-docker-image-start_dockersh). ## Reporting issues @@ -121,10 +121,10 @@ your pull request :) ### Tools -A range of tools for contributors are currently housed in the `contribute/` folder. -Read the detailed [documentation](../contribute/README.md). +A range of tools for contributors are currently housed in the `tools/` folder. +Read the detailed [documentation](../tools/README.md). #### Notable Tools - - [`contribute/start_docker.sh`](../contribute/README.md#doom-contrib-docker-image-start_dockersh) Sets up a dev environment for contributing to doom-nvim. Creates a git worktree to make changes and a docker image to test them within. + - [`tools/start_docker.sh`](../tools/README.md#doom-contrib-docker-image-start_dockersh) Sets up a dev environment for contributing to doom-nvim. Creates a git worktree to make changes and a docker image to test them within. diff --git a/contribute/Dockerfile b/tools/Dockerfile similarity index 100% rename from contribute/Dockerfile rename to tools/Dockerfile diff --git a/contribute/README.md b/tools/README.md similarity index 79% rename from contribute/README.md rename to tools/README.md index 809570f..d0a8224 100644 --- a/contribute/README.md +++ b/tools/README.md @@ -1,6 +1,6 @@ # Contributing Tools for Doom Neovim -This directory stores various tools and automations to help contributors or develpers of doom-nvim. +This directory stores various tools and automations to help contributors or develpers of doom-nvim. ## Doom Contrib Docker Image `./start_docker.sh` @@ -19,13 +19,13 @@ options: -h Shows this help menu ``` -The script will start an instance of neovim that uses `./contribute/doom-nvim-contrib/` for configuration. +The script will start an instance of neovim that uses `./tools/doom-nvim-contrib/` for configuration. You will then be able to start making changes within `doom-nvim-contrib` without breaking your existing config. ### What this script does 1. On first execution it will setup a git worktree of doom-nvim, this means your main config and this copy of the repo will share the same git history. - - This worktree will be placed in the `contribute/doom-nvim-contrib` folder inside of this repository. + - This worktree will be placed in the `tools/doom-nvim-contrib` folder inside of this repository. - Because they share history you wont be able to checkout the same branch on both copies of the repository. Unless specified, a new branch called `doom-nvim-contrib` will be created off the latest version of `develop`. 2. It will setup a new docker image to run this config within (if necessary). 3. It will then start the docker image and enter you into neovim. @@ -34,13 +34,13 @@ You will then be able to start making changes within `doom-nvim-contrib` without These are the folders used by this docker image, they will be auto generated when `./start_docker.sh` is run -`contribute/doom-nvim-contrib/` - Git worktree for doom-nvim contributions -`contribute/local-share-nvim/` - Stores the data from `~/.local/share/nvim/` -`contribute/workspace/` - Directory to store test files and project that you want to test your changes upon +`tools/doom-nvim-contrib/` - Git worktree for doom-nvim contributions +`tools/local-share-nvim/` - Stores the data from `~/.local/share/nvim/` +`tools/workspace/` - Directory to store test files and project that you want to test your changes upon ## Pinned Dependencies `./update_dependencies.sh` -This script parses the `lua/doom/modules/init.lua` file and pins each plugin to the latest commit in the default branch. +This script parses the `lua/doom/modules/init.lua` file and pins each plugin to the latest commit in the default branch. We should update these dependencies with each release of doom-nvim, and test everything working together to ensure a stable experience for users. Pinned/frozen dependencies can be disabled using the `freeze_dependencies` configuration option in `doom_config.lua`. @@ -48,7 +48,7 @@ Pinned/frozen dependencies can be disabled using the `freeze_dependencies` confi Run the following command in the root of the neovim folder. ```bash -cd contribute && ./update_dependencies.sh` +cd tools && ./update_dependencies.sh` ``` ### Issues diff --git a/contribute/_docker_entry.sh b/tools/_docker_entry.sh similarity index 100% rename from contribute/_docker_entry.sh rename to tools/_docker_entry.sh diff --git a/contribute/install.sh b/tools/install.sh similarity index 100% rename from contribute/install.sh rename to tools/install.sh diff --git a/tools/local-share-nvim/plugin/packer_compiled.lua b/tools/local-share-nvim/plugin/packer_compiled.lua new file mode 100644 index 0000000..259aac1 --- /dev/null +++ b/tools/local-share-nvim/plugin/packer_compiled.lua @@ -0,0 +1,203 @@ +-- 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() + + local time + local profile_info + local should_profile = true + 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 + + _G._packer = _G._packer or {} + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/home/doom/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?.lua;/home/doom/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?/init.lua;/home/doom/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?.lua;/home/doom/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/doom/.cache/nvim/packer_hererocks/2.0.5/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 = { + aniseed = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/aniseed", + url = "https://github.com/Olical/aniseed" + }, + ["nest.nvim"] = { + config = { "\27LJ\1\2þ\1\0\0\6\0\v\0\0284\0\0\0%\1\1\0>\0\2\0027\1\2\0004\2\0\0%\3\3\0>\2\2\0027\3\4\0024\4\0\0%\5\5\0>\4\2\0=\3\0\1\16\3\1\0%\4\6\0>\3\2\2\14\0\3\0T\3\6€4\3\0\0%\4\a\0>\3\2\0027\4\4\2\16\5\3\0>\4\2\0017\3\b\0024\4\t\0007\4\n\4>\3\2\1G\0\1\0\nbinds\tdoom\17applyKeymaps\31nest.integrations.whichkey\rwhichkey\29nest.integrations.mapper\venable\tnest\23is_plugin_disabled\15doom.utils\frequire\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + load_after = {}, + loaded = true, + needs_bufread = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/nest.nvim", + url = "https://github.com/LuigiPiucco/nest.nvim" + }, + ["nvim-mapper"] = { + after = { "nest.nvim" }, + loaded = true, + only_config = true + }, + ["nvim-tree-docs"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + load_after = {}, + loaded = false, + needs_bufread = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/nvim-tree-docs", + url = "https://github.com/nvim-treesitter/nvim-tree-docs" + }, + ["nvim-treesitter"] = { + after = { "nvim-ts-autotag", "nvim-ts-context-commentstring", "nvim-tree-docs" }, + loaded = true, + only_config = true + }, + ["nvim-ts-autotag"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + load_after = {}, + loaded = false, + needs_bufread = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/nvim-ts-autotag", + url = "https://github.com/windwp/nvim-ts-autotag" + }, + ["nvim-ts-context-commentstring"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + load_after = {}, + loaded = false, + needs_bufread = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/nvim-ts-context-commentstring", + url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" + }, + ["packer.nvim"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + loaded = false, + needs_bufread = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + }, + ["plenary.nvim"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/plenary.nvim", + url = "https://github.com/nvim-lua/plenary.nvim" + }, + ["popup.nvim"] = { + config = { "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/doom/.local/share/nvim/site/pack/packer/opt/popup.nvim", + url = "https://github.com/nvim-lua/popup.nvim" + } +} + +time([[Defining packer_plugins]], false) +local module_lazy_loads = { + ["^plenary"] = "plenary.nvim", + ["^popup"] = "popup.nvim", + aniseed = "aniseed" +} +local lazy_load_called = {['packer.load'] = true} +local function lazy_load_module(module_name) + local to_load = {} + if lazy_load_called[module_name] then return nil end + lazy_load_called[module_name] = true + for module_pat, plugin_name in pairs(module_lazy_loads) do + if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then + to_load[#to_load + 1] = plugin_name + end + end + + if #to_load > 0 then + require('packer.load')(to_load, {module = module_name}, _G.packer_plugins) + local loaded_mod = package.loaded[module_name] + if loaded_mod then + return function(modname) return loaded_mod end + end + end +end + +if not vim.g.packer_custom_loader_enabled then + table.insert(package.loaders, 1, lazy_load_module) + vim.g.packer_custom_loader_enabled = true +end + +-- Config for: nvim-mapper +time([[Config for nvim-mapper]], true) +try_loadstring("\27LJ\1\2V\0\0\2\0\6\0\t4\0\0\0%\1\1\0>\0\2\0027\0\2\0004\1\3\0007\1\4\0017\1\5\1>\0\2\1G\0\1\0\vmapper\tcore\tdoom\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper") +try_loadstring("\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "config", "nvim-mapper") +time([[Config for nvim-mapper]], false) +-- Config for: nvim-treesitter +time([[Config for nvim-treesitter]], true) +try_loadstring("\27LJ\1\2é\3\0\0\a\0\17\0%4\0\0\0%\1\1\0>\0\2\0024\1\0\0%\2\2\0>\1\2\0027\2\3\0013\3\b\0004\4\4\0007\4\5\0047\4\6\4%\5\a\0>\4\2\2;\4\1\3>\2\2\0024\3\4\0007\3\5\0037\3\t\3\16\4\2\0\a\2\n\0T\5\2€%\5\v\0T\6\1€%\5\f\0$\4\5\4>\3\2\0028\3\1\3\16\5\3\0007\4\r\3%\6\14\0>\4\3\2\15\0\4\0T\5\3€7\4\15\0%\5\16\0>\4\2\1G\0\1\0¾\1doom-treesitter: clang has poor compatibility compiling treesitter parsers. We recommend using gcc, see issue #246 for details. (https://github.com/NTBBloodbath/doom-nvim/issues/246)\twarn\nclang\nmatch\15 --version\5\acl\15systemlist\1\a\0\0\0\acc\bgcc\nclang\acl\bzig\aCC\vgetenv\afn\bvim\28find_executable_in_path\15doom.utils\23doom.utils.logging\frequire“\2\1\0\t\0\17\0\0304\0\0\0%\1\1\0>\0\2\0027\0\2\0004\1\0\0%\2\3\0>\1\2\0027\1\4\0014\2\5\0007\2\6\2%\3\a\0004\4\b\0007\4\t\0047\4\n\0043\5\14\0003\6\f\0\16\a\0\0%\b\v\0>\a\2\2\17\a\a\0:\a\r\6:\6\v\5>\2\4\0=\1\0\0014\1\5\0007\1\15\0011\2\16\0'\3è\3>\1\3\1G\0\1\0\0\rdefer_fn\1\0\0\venable\1\0\0\14autopairs\15treesitter\tcore\tdoom\nforce\20tbl_deep_extend\bvim\nsetup\28nvim-treesitter.configs\23is_plugin_disabled\15doom.utils\frequire\0", "config", "nvim-treesitter") +try_loadstring("\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "config", "nvim-treesitter") +time([[Config for nvim-treesitter]], false) +-- Load plugins in order defined by `after` +time([[Sequenced loading]], true) +vim.cmd [[ packadd nest.nvim ]] + +-- Config for: nest.nvim +try_loadstring("\27LJ\1\2þ\1\0\0\6\0\v\0\0284\0\0\0%\1\1\0>\0\2\0027\1\2\0004\2\0\0%\3\3\0>\2\2\0027\3\4\0024\4\0\0%\5\5\0>\4\2\0=\3\0\1\16\3\1\0%\4\6\0>\3\2\2\14\0\3\0T\3\6€4\3\0\0%\4\a\0>\3\2\0027\4\4\2\16\5\3\0>\4\2\0017\3\b\0024\4\t\0007\4\n\4>\3\2\1G\0\1\0\nbinds\tdoom\17applyKeymaps\31nest.integrations.whichkey\rwhichkey\29nest.integrations.mapper\venable\tnest\23is_plugin_disabled\15doom.utils\frequire\0", "config", "nest.nvim") +try_loadstring("\27LJ\1\2\v\0\0\1\0\0\0\1G\0\1\0\0", "config", "nest.nvim") + +time([[Sequenced loading]], false) +if should_profile then save_profiles() end + +end) + +if not no_errors then + 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/tools/local-share-nvim/sessions/%home%doom%.config%nvim%lua%doom%modules%config.vim b/tools/local-share-nvim/sessions/%home%doom%.config%nvim%lua%doom%modules%config.vim new file mode 100644 index 0000000..c49b7c2 --- /dev/null +++ b/tools/local-share-nvim/sessions/%home%doom%.config%nvim%lua%doom%modules%config.vim @@ -0,0 +1,37 @@ +let SessionLoad = 1 +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~/.config/nvim/lua/doom/modules/config +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +0 doom-whichkey.lua +argglobal +%argdel +$argadd doom-whichkey.lua +edit doom-whichkey.lua +argglobal +let s:l = 17 - ((16 * winheight(0) + 11) / 23) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 17 +normal! 019| +tabnext 1 +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0&& getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=ifncaTFstOolxI +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +set hlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/tools/local-share-nvim/sessions/%home%doom%.config%nvim.vim b/tools/local-share-nvim/sessions/%home%doom%.config%nvim.vim new file mode 100644 index 0000000..d5ec156 --- /dev/null +++ b/tools/local-share-nvim/sessions/%home%doom%.config%nvim.vim @@ -0,0 +1,47 @@ +let SessionLoad = 1 +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~/.config/nvim +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +1 doom_modules.lua +argglobal +%argdel +$argadd doom_modules.lua +edit doom_modules.lua +argglobal +setlocal fdm=manual +setlocal fde=0 +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal fen +silent! normal! zE +let &fdl = &fdl +let s:l = 1 - ((0 * winheight(0) + 19) / 39) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 1 +normal! 0 +tabnext 1 +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0&& getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=ifncaTFstOolxI +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +set hlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/tools/local-share-nvim/sessions/%home%doom%workspace%neonz-ar-launch.vim b/tools/local-share-nvim/sessions/%home%doom%workspace%neonz-ar-launch.vim new file mode 100644 index 0000000..b01d96c --- /dev/null +++ b/tools/local-share-nvim/sessions/%home%doom%workspace%neonz-ar-launch.vim @@ -0,0 +1,52 @@ +let SessionLoad = 1 +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~/workspace/neonz-ar-launch +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +5 src/App.vue +badd +5 src/views/Home.vue +badd +23 ~/workspace/neonz-ar-launch/src/components/NeonzLauncher.vue +badd +44 ~/workspace/neonz-ar-launch/src/stores/WalletStore.ts +argglobal +%argdel +$argadd src/App.vue +edit ~/workspace/neonz-ar-launch/src/components/NeonzLauncher.vue +argglobal +balt ~/workspace/neonz-ar-launch/src/stores/WalletStore.ts +setlocal fdm=manual +setlocal fde=0 +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal fen +silent! normal! zE +let &fdl = &fdl +let s:l = 23 - ((22 * winheight(0) + 27) / 54) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 23 +normal! 021| +tabnext 1 +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0&& getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=ifncaTFstOolxI +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +set hlsearch +nohlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/tools/local-share-nvim/sessions/%home%doom%workspace.vim b/tools/local-share-nvim/sessions/%home%doom%workspace.vim new file mode 100644 index 0000000..1394b43 --- /dev/null +++ b/tools/local-share-nvim/sessions/%home%doom%workspace.vim @@ -0,0 +1,48 @@ +let SessionLoad = 1 +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~/workspace +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +1 file.js +argglobal +%argdel +$argadd file.js +edit file.js +argglobal +setlocal fdm=manual +setlocal fde=0 +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal fen +silent! normal! zE +let &fdl = &fdl +let s:l = 1 - ((0 * winheight(0) + 11) / 23) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 1 +normal! 0 +tabnext 1 +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0&& getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=ifncaTFstOolxI +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +set hlsearch +nohlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/contribute/start_docker.sh b/tools/start_docker.sh similarity index 100% rename from contribute/start_docker.sh rename to tools/start_docker.sh diff --git a/contribute/update_dependencies.sh b/tools/update_dependencies.sh similarity index 100% rename from contribute/update_dependencies.sh rename to tools/update_dependencies.sh