repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

0adb7e312a2d8f180b1f1aa9c78d15a478833711

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (97)

+3322 / −363 text lines · all files grouped into 32 bars

Diff layout

.github/workflows/codeql-analysis.yml

Deleted
deleted file mode 100644

+0 / −66 text lines

1# For most projects, this workflow file will not need changing; you simply need
2# to commit it to your repository.
3#
4# You may wish to alter this file to override the set of languages analyzed,
5# or to provide custom queries or build logic.
6#
7# ******** NOTE ********
8# We have attempted to detect the languages in your repository. Please check
9# the `language` matrix defined below to confirm you have the correct set of
10# supported CodeQL languages.
11#
12name: "CodeQL"
14on:
15 push:
16 branches: [ trunk ]
17 pull_request:
18 # The branches below must be a subset of the branches above
19 branches: [ trunk ]
20 schedule:
21 - cron: '24 20 * * 6'
23jobs:
24 analyze:
25 name: Analyze
26 runs-on: ubuntu-latest
27 permissions:
28 actions: read
29 contents: read
30 security-events: write
32 strategy:
33 fail-fast: false
34 matrix:
35 language: [ 'java' ]
36 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
39 steps:
40 - name: Checkout repository
41 uses: actions/checkout@v3
43 # Initializes the CodeQL tools for scanning.
44 - name: Initialize CodeQL
45 uses: github/codeql-action/init@v2
46 with:
47 languages: ${{ matrix.language }}
48 # If you wish to specify custom queries, you can do so here or in a config file.
49 # By default, queries listed here will override any specified in a config file.
50 # Prefix the list here with "+" to use these queries and those in the config file.
51
52 # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53 # queries: security-extended,security-and-quality
55 # ℹ️ Command-line programs to run using the OS shell.
56 # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
58 # If the Autobuild fails above, remove it and uncomment the following three lines.
59 # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
61 - run: |
62 echo "Run, Build Application using script"
63 java bootstripper.java
65 - name: Perform CodeQL Analysis
66 uses: github/codeql-action/analyze@v2

.vscode/settings.json

Added
new file mode 100644

+9 / −0 text lines

1{
2 "cSpell.words": [
3 "bootstripper",
4 "chezmoi",
5 "dorkfile",
6 "dorkfiles",
7 "tresor"
8 ]
9}No final newline

COMMANDS.md

Deleted
deleted file mode 100644

+0 / −35 text lines

1## Commands to remember
2
3- sbyte: byte editor cli
4- cbs: copy and paste
5- lswt: list wayland toplevel windows
6- dex: run and make xdg desktop files
7- ouch: compress and decompress archives
8- choose: `choose` sections from each line of files
9- handlr: manage default applications
10- sd: search and replace
11- diskonaut: explore file system visually for large files
12- btm (bottom): system overview
13- mdcat: render markdown in the terminal
14- menyoki: capture screenshots, record gifs
15- mdsh: markdown pre processor
16- tldr: tool documentation
17- grex: regular expression pattern generator
18- xh: make HTTP requests
19- viu: view images in terminal (blocky approximation)
20- licensor: print a license text
21- pastel: manage colors
22- hexyl: terminal hex viewer
23- gib: generate gitignore files
24- silicon: code pretty picture generator
25- bandwhich: show network traffic information
26- so: search Stack Exchange
27- linky: check markdown for broken links
28- comrak: render markdown to html
29- xplr: terminal file explorer
30- t-rec: terminal gifs
31- sic: image manipulation
32- vivid: generate LS_COLORS
33- chars: unicode character info
34- uggo: LoL builds

PC-00625.symlinks

Modified

+4 / −1 text lines

3232~/AppData/Roaming/helix/config.toml
3434helix/themes
35~/AppData/Roaming/helix/themesNo final newline
35~/AppData/Roaming/helix/themes
37neovim
38~/AppData/Local/nvim

README.md

Modified

+16 / −11 text lines

771. Install git
881. Install a JDK
91. git clone git@github.com:bugabinga/dotfiles
91. `git clone git@github.com:bugabinga/dotfiles`
10101. `cd dotfiles`
11111. `java bootstripper.java`
1717Initial setup on windows is a little more sophisticated, because I am used to a developers environment.
191. Enable Devoloper Mode, so that it is allowed to make symlinks without admin permissions.
191. Enable Developer Mode, so that it is allowed to make symlinks without admin permissions.
20201. Install Build Tools with C++ Option (for Rust and cargo tools)
21211. Install Git without internal SSH
22221. Start ssh-agent service
3030 The current state is a compromise reached after some experimentation.
3131- editing and applying configs is "natural"
3232 Natural in this context is to mean: as if there was no dotfiles repository used for sharing.
33 This is achieved by symlinking the files from the dotfiles repository into their normal locations.
34 So when it comes time to edit a confg file, you can stay blissfully unaware of the dotfiles repository.
33 This is achieved by sym-linking the files from the dotfiles repository into their normal locations.
34 So when it comes time to edit a config file, you can stay blissfully unaware of the dotfiles repository.
3636## handling per host differences
4040### differing locations of config files
4242For example, [NeoVim] stores its configuration at `~/.config/nvim` in Linux and at `~/AppData/Roaming/nvim` in Windows.
43In order to handle theses differences each host gets its own symlink file wiht the naming pattern `(hostname).symlinks`.
43In order to handle theses differences each host gets its own symlink file with the naming pattern `(hostname).symlinks`.
4444The format of this file is:
45```
46```txt
4647path to configuration file/directory relative to dotfiles root
4748absolute path of symlink on host
4849```
4951Each symlink path pair is to be delimited by a newline.
5052Example:
51```
54```txt
5255neovim
5356~/.config/nvim
5558foo/bar.conf
5659~/.config/foobar.conf
5760```
5862This file will be parsed by [bootstripper] in order to create those symlinks.
60### differing values in configration files
64### differing values in configuration files
62Most often, these come down to different paths of stuff, that get refered to in config files.
66Most often, these come down to different paths of stuff, that get referred to in config files.
6367For example, [topgrade], an abstraction over a bunch of package managers and updaters, might want to know the location of your git repositories, so it can pull them for you.
6468Some programs, e.g. [NeoVim], have rich configuration languages that are powerful enough for you to resolve those differences with conditionals.
6569However some programs, e.g. [topgrade], offer only declarative configuration languages, which make it impossible to resolve this problem in the config.
7377That means, that config files are completely independent per host, and as such some duplication of configuration occurs.
7478A tradeoff well worth it in my opinion.
76## secrets
80## WIP:secrets
7882Secrets are encrypted and saved as file into the `tresor` folder.
7983The name of these file is a random UUID, which I map to their original purpose somewhere else.
9397- dotfiles managers (e.g. [chezmoi])
9498 > too much work
9599- writing a bootstrap/installer with [cosmopolitan]
96 > extremely cool tech. unfortunatelly I am not a C programmer so I struggled a lot.
100 > extremely cool tech. unfortunately I am not a C programmer so I struggled a lot.
97101 > also, the resulting binary rewrites itself on first run. How do I keep a file version controlled that is allowed to change on first use, but should not result in a new modification...?
98102 > furthermore, managing the [cosmopolitan] toolchain for windows made extra work.
99103- use POSIX shell for Unix, use PowerShell for Windows
117121[PowerShell Core]: https://github.com/PowerShell/PowerShell
118122[PowerShell Windows]: https://de.wikipedia.org/wiki/PowerShell
119123[OpenBSD]: https://www.openbsd.org/
124[cosmopolitan]: https://github.com/jart/cosmopolitan

bootstripper.java

Modified

+23 / −25 text lines

55import java.nio.file.Files;
66import java.nio.file.LinkOption;
77import java.nio.file.Path;
8import java.util.regex.Pattern;
910class bootstripper {
1011 public static void main(String[] arguments) throws Throwable {
1617 throw fail();
1718 }
1819 var dorkfiles_root = Path.of(dorkfile_path_input).toRealPath();
19 log("Assuming dorkfiles root repo in {0}.", emphasize_local(dorkfiles_root.toString()));
20 log("Assuming dorkfiles root repo in {0}.",
21 emphasize_local(dorkfiles_root.toString()));
2022 decrypt_secrets(dorkfiles_root.resolve("tresor"));
2123 var hostname = hostname();
2224 log("Hostname: {0}", emphasize_global(hostname));
2426 if (Files.exists(symlinks_file)) {
2527 create_symlinks(dorkfiles_root, symlinks_file);
2628 } else {
27 throw fail("Expected a file containing symlinks at: {0}. Found nothing!", symlinks_file);
29 throw fail("Expected a file containing symlinks at: {0}. Found nothing!",
30 symlinks_file);
2831 }
2932 }
6164 var is_directory = Files.isDirectory(source_path);
6265 if (Files.exists(target_path, LinkOption.NOFOLLOW_LINKS)) {
6366 if (Files.exists(target_path)) {
64 log("\nOK {0} already exists!\nNot linking {1}.", emphasize_global(target_path.toString()),
67 log("\nOK {0} already exists!\nNot linking {1}.",
68 emphasize_global(target_path.toString()),
6569 emphasize_local(source_path.toString()));
6670 return;
6771 } else {
68 log("\nNOPE {0} exists, but it points into nirvana. Removing broken link!", target_path.toString());
72 log("\nNOPE {0} exists, but it points into nirvana. Removing broken link!",
73 target_path.toString());
6974 Files.delete(target_path);
7075 }
7176 }
7681 Files.createSymbolicLink(target_path, source_path);
7782 } catch (Exception __) {
7883 /*
79 * Creating symbolic links on Windows only recently became possible without
80 * admin rights.
81 * And even that, is only available in Developer Mode.
82 * However, most tools (including JDK) have not yet adapted to this change and
83 * still require admin rights.
84 * Until that is fixed, we escape to a system tool that is known to behave
85 * correctly in this regard.
84 * Creating symbolic links on Windows only recently became possible
85 * without admin rights. And even that, is only available in Developer
86 * Mode. However, most tools (including JDK) have not yet adapted to this
87 * change and still require admin rights. Until that is fixed, we escape
88 * to a system tool that is known to behave correctly in this regard.
8689 */
8790 var operating_system = System.getProperty("os.name");
8891 if (operating_system.toLowerCase().contains("win")) {
97100 command.add(target_path.toString());
98101 command.add(source_path.toString());
99102 log(command.toString());
100 process.inheritIO()
101 .start()
102 .onExit()
103 .join();
103 process.inheritIO().start().onExit().join();
104104 } else {
105105 __.printStackTrace();
106106 throw fail("Could not create symbolic link!");
112112 var process_builder = new ProcessBuilder().command("hostname");
113113 Process process;
114114 try {
115 process = process_builder
116 .start()
117 .onExit()
118 .join();
115 process = process_builder.start().onExit().join();
119116 } catch (IOException __) {
120117 process = new ProcessBuilder()
121 .command("hostnamectl", "hostname")
122 .start()
123 .onExit()
124 .join();
118 .command("hostnamectl", "hostname")
119 .start()
120 .onExit()
121 .join();
125122 }
126123 try (var reader = new InputStreamReader(process.getInputStream())) {
127124 int character = -1;
129126 while ((character = reader.read()) != -1) {
130127 if (character == '\n' || character == '\r')
131128 continue;
132 output.append((char) character);
129 output.append((char)character);
133130 }
134131 return output.toString();
135132 }
138135 static void usage() {
139136 log("Bootstraps bugabingas {0}.", emphasize_local("dorkfiles"));
140 log("{0}: java bootstripper.java [dotfiles root path]", emphasize_global("Usage"));
137 log("{0}: java bootstripper.java [dotfiles root path]",
138 emphasize_global("Usage"));
141139 }
143141 static String emphasize_global(String message) {

helix/config.toml

Modified

+1 / −1 text lines

66mouse = true
88line-number = "relative"
9rulers = [81,121,141]
9rulers = [81, 121, 141]
1111auto-completion = true
1212completion-trigger-len = 3

helix/themes/nugu.toml

Modified

+1 / −1 text lines

3636"markup.raw.inline" = { fg = "accent" }
3737"markup.raw.block" = { fg = "accent", modifiers = ["dim"] }
39"diff.plus" = { fg = "important_local", modifiers = ["bold"]}
39"diff.plus" = { fg = "important_local", modifiers = ["bold"] }
4040"diff.delta" = { fg = "ui_normal" }
4141"diff.minus" = { fg = "minor", modifiers = ["crossed_out"] }

justfile

Modified

+9 / −15 text lines

44 @just --list
66# validate config files
7# TODO: shell files
8# TODO: nushell files
9# TODO: json files
11# TODO: markdown files
712lint:
8 # Lua files
913 selene .
10 # toml files
1114 taplo lint
12 # shell files
13 # nushell files
14 # java files
1515 javac -Werror -Xlint:all bootstripper.java
1616 rm bootstripper.class
17 # json files
18 # markdown files
19 # links
2017 lychee .
2219# format config files
20# TODO: java files
21# TODO: nushell files
23# TODO: markdown files
2324fmt:
24 # Justfiles
2525 just --fmt --unstable
26 # lua
2726 stylua --verify .
28 # shell files
29 # toml files
3027 taplo fmt
31 # java files ?
32 # nushell files ?
33 # markdown files
3529# link dorkfiles into HOME
3630link:

neovim/README.md

Added
new file mode 100644

+18 / −0 text lines

1# Yet another neovim configuration
2
3because life is just too long...
4
5```lua
6local why_does_my_heart = "feel so bad"
7-- why does my soul...
8```
9
10<table>yoyo</table>
12```xml
13<div> some value </div>
14```
16## it must be a sickness
18_why_ do I do *this* to ~myself~ ...?

neovim/after/syntax/lua.lua

Added
new file mode 100644

+28 / −0 text lines

1-- TODO: map syntax elements to pretty symbols
2-- function = ƒn⟮
3-- return = ⏎
4-- end = ⟯
5-- ( = ⦅
6-- ) = ⦆
7-- for
8-- do = ⟮
9-- while = Ꝏ
10-- if
11-- then = ⟮
12-- else
13-- elseif
14-- { = ⎨
15-- } = ⎬
16-- ... = …
17-- .. = ‥
18-- -- = ―
19-- [[ = ⟪
20-- ]] = ⟫
22-- FIXME: conceal feature is too simple
23-- it affects all characters in comments and strings
24-- that could maybe be circumvented with complex matches and regions, but integ with TS would be more elegant
25-- it changes the highlighting of concealed stuff
26-- furthermore, i struggled to get the quoting of special character right when calling syntax command from lua
28vim.opt_local.conceallevel = 2

neovim/ftplugin/css.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/html.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/java.lua

Added
new file mode 100644

+243 / −0 text lines

1-- TODO: add kool conceals for java syntax
2-- https://github.com/alok/python-conceal/blob/master/after/syntax/python.vim
3vim.opt_local.conceallevel = 2
4
5local want = require 'bugabinga.std.want'
6want {
7 'jdtls',
8 'lsp-zero',
9 'nvim-lsp-installer',
10}(function(jdtls, zero, installer)
11 local debug_log = true
12 local syntax_server = false
13 local project = require 'bugabinga.std.project'
15 local home = vim.fn.glob('~', false, false)
16 local jdtls_root_dir = project.determine_java_project_root(home)
17 if jdtls_root_dir then
18 vim.notify('eclipse.jdt.ls java project root is ' .. jdtls_root_dir)
19 -- even when a project root as found, it does not necessarily mean it is a
20 -- `classic` java project, in the sense that eclipse.jdt.ls thinks of a "project"
21 if not project.is_java_project_root(jdtls_root_dir, home) then
22 -- support for single file mode
23 syntax_server = true
24 end
25 else
26 vim.notify('no root directory for eclipse.jdt.ls could be found.', 'warning')
27 -- support for single file mode
28 syntax_server = true
29 end
31 if syntax_server then
32 vim.notify 'starting eclipse.jdt.ls in syntaxserver mode'
33 end
35 -- TODO: refactor most jdtls setup into module
36 -- TODO: is there stuf that can be cached here?
37 -- profile this file
38 local installed, jdtls_installer = installer.get_server 'jdtls'
39 if not installed then
40 vim.notify('jdtls is not installed!', error)
41 return
42 end
43 local jdtls_install_dir = jdtls_installer.root_dir
44 local jdtls_config_dir = nil
45 local jdtls_syntax_server_config_dir = nil
46 if vim.fn.has 'mac' == 1 then
47 jdtls_config_dir = jdtls_install_dir .. '/config_mac'
48 jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_mac'
49 elseif vim.fn.has 'unix' == 1 then
50 jdtls_config_dir = jdtls_install_dir .. '/config_linux'
51 jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_linux'
52 elseif vim.fn.has 'win32' == 1 then
53 jdtls_config_dir = jdtls_install_dir .. '/config_win'
54 jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_win'
55 else
56 vim.notify('eclipse.jdt.ls cannot be configured for current system.', 'error')
57 return
58 end
60 local project_directory
61 if jdtls_root_dir ~= nil then
62 project_directory = jdtls_root_dir
63 else
64 project_directory = vim.fn.getcwd()
65 end
66 local project_name = vim.fn.fnamemodify(project_directory, ':p:h:t')
67 local nvim_data = vim.fn.stdpath 'data'
68 local jdtls_workspace_dir = nvim_data .. '/eclipse.jdt.ls.workspace/' .. project_name
69 vim.fn.mkdir(jdtls_workspace_dir, 'p')
71 local shared_configuration
72 if syntax_server then
73 shared_configuration = jdtls_syntax_server_config_dir
74 else
75 shared_configuration = jdtls_config_dir
76 end
77 --FIXME: sometimes the jdtls cannot start (code 13).
78 -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls"
79 local jdtls_command = {
80 'java',
81 '-Dsyntaxserver=' .. tostring(syntax_server),
82 '-Declipse.application=org.eclipse.jdt.ls.core.id1',
83 '-Dosgi.bundles.defaultStartLevel=4',
84 '-Declipse.product=org.eclipse.jdt.ls.core.product',
85 -- '-Dosgi.checkConfiguration=true',
86 -- '-Dosgi.sharedConfiguration.area=' .. shared_configuration,
87 -- '-Dosgi.sharedConfiguration.area.readOnly=true',
88 -- '-Dosgi.configuration.cascaded=true',
89 '-Dlog.protocol=' .. tostring(debug_log),
90 '-Dlog.level=ALL',
91 --TODO: switch to ZGC
92 '-XX:+UseParallelGC',
93 '-XX:GCTimeRatio=4',
94 '-XX:AdaptiveSizePolicyWeight=90',
95 '-Dsun.zip.disableMemoryMapping=true',
96 '-Djava.import.generatesMetadataFilesAtProjectRoot=false',
97 '-Xmx4G',
98 '-Xms100m',
99 '--add-modules=ALL-SYSTEM',
100 '--add-opens',
101 'java.base/java.util=ALL-UNNAMED',
102 '--add-opens',
103 'java.base/java.lang=ALL-UNNAMED',
104 '-jar',
105 vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false),
106 '-configuration',
107 -- vim.fn.expand('~/.config/jdtls', false, false),
108 shared_configuration,
109 '-data',
110 jdtls_workspace_dir,
111 }
113 -- FIXME: what's this? necessary?
114 local extendedClientCapabilities = jdtls.extendedClientCapabilities
115 extendedClientCapabilities.resolveAdditionalTextEditsSupport = true
117 local server_trace = 'off'
118 if debug_log then
119 server_trace = 'verbose'
120 end
122 -- See `:help vim.lsp.start_client` for an overview of the supported `config` options.
123 local config = {
124 -- The command that starts the language server
125 -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line
126 cmd = jdtls_command,
128 -- This is the default if not provided, you can remove it. Or adjust as needed.
129 -- One dedicated LSP server & client will be started per unique root_dir
130 root_dir = jdtls_root_dir,
132 -- Here you can configure eclipse.jdt.ls specific settings
133 -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request
134 -- for a list of options
135 settings = {
136 java = {
137 autobuild = true,
138 sources = {
139 organizeImports = {
140 starThreshold = 9999,
141 staticStarThreshold = 9999,
142 },
143 },
144 codeGeneration = {
145 generateComments = true,
146 hashCodeEquals = { useJava7Objects = true, useInstanceOf = true },
147 -- insertionLocation = '',
148 toString = {
149 listArrayContents = true,
150 skipNullValues = false,
151 },
152 useBlocks = true,
153 },
154 completion = {
155 enabled = true,
156 favoriteStaticMembers = {
157 'org.hamcrest.MatcherAssert.assertThat',
158 'org.hamcrest.Matchers.*',
159 'org.hamcrest.CoreMatchers.*',
160 'org.junit.jupiter.api.Assertions.*',
161 'java.util.Objects.requireNonNull',
162 'java.util.Objects.requireNonNullElse',
163 'org.mockito.Mockito.*',
164 },
165 filteredTypes = {
166 'com.sun.*',
167 'java.awt.*',
168 'sun.*',
169 },
170 guessMethodArguments = false,
171 importOrder = {
172 'java',
173 'javax',
174 'javafx',
175 'com',
176 'org',
177 'de',
178 'net',
179 },
180 overwrite = false,
181 },
182 configuration = {
184 --FIXME: configure platforms per host
185 runtimes = {
186 {
187 name = 'JavaSE-1.8',
188 path = '/usr/lib/jvm/java-8-openjdk-amd64',
189 },
190 {
191 name = 'JavaSE-11',
192 path = '/usr/lib/jvm/java-11-openjdk-amd64',
193 },
194 {
195 name = 'JavaSE-17',
196 path = '/usr/lib/jvm/java-17-openjdk-amd64',
197 default = true,
198 },
199 },
200 updateBuildConfiguration = 'automatic',
201 },
202 eclipse = { downloadSources = true },
203 errors = { incompleteClasspath = { severity = 'warning' } },
204 foldingRange = false,
205 format = {
206 enabled = true,
207 onType = false,
208 },
209 implementationsCodeLens = true,
210 inlayhints = { parameterNames = true },
211 maven = { downloadSources = true, updateSnapshots = false },
212 maxConcurrentBuilds = 8,
213 referenceCodeLens = true,
214 rename = true,
215 saveActions = { organizeImports = true },
216 selectionRange = true,
217 signatureHelp = true,
218 trace = { server = server_trace },
219 },
220 },
222 -- Language server `initializationOptions`
223 -- You need to extend the `bundles` with paths to jar files
224 -- if you want to use additional eclipse.jdt.ls plugins.
225 --
226 -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation
227 --
228 -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
229 init_options = {
230 -- TODO: integrate debug and test extensions. can those be installed via paq, even though they are not vim plugins?
231 bundles = {},
232 extendedClientCapabilities = extendedClientCapabilities,
233 },
234 flags = {
235 debounce_text_changes = 80,
236 allow_incremental_sync = true,
237 },
238 }
239 -- This starts a new client & server,
240 -- or attaches to an existing client & server depending on the `root_dir`.
241 local merged_config = zero.build_options('jdtls', config)
242 jdtls.start_or_attach(merged_config)
243end)

neovim/ftplugin/json.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/lua.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/markdown.lua

Added
new file mode 100644

+4 / −0 text lines

1-- auto save markdown files
2vim.opt_local.autowriteall = true
3-- hide code block fences
4vim.opt_local.conceallevel = 2

neovim/ftplugin/neo-tree.lua

Added
new file mode 100644

+2 / −0 text lines

1--FIXME: seems to have no effect right now, even though this file gets loaded.
2vim.opt_local.colorcolumn = {}

neovim/ftplugin/properties.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/python.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/rust.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/toml.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/xml.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/yaml.lua

Added
new file mode 100644

No text changes.

neovim/ftplugin/zig.lua

Added
new file mode 100644

No text changes.

neovim/init.lua

Added
new file mode 100644

+115 / −0 text lines

1-- A neovim configuration, again...
2--
3-- ███ ▄ ▄▀ ██ ███ ▄█ ▄ ▄▀ ██
4-- █ █ █ ▄▀ █ █ █ █ ██ █ ▄▀ █ █
5-- █ ▀ ▄ █ █ █ ▀▄ █▄▄█ █ ▀ ▄ ██ ██ █ █ ▀▄ █▄▄█
6-- █ ▄▀ █ █ █ █ █ █ █ ▄▀ ▐█ █ █ █ █ █ █ █
7-- ███ █▄ ▄█ ███ █ ███ ▐ █ █ █ ███ █
8-- ▀▀▀ █ █ ██ █
9-- ▀ ▀
11-- set general neovim editor settings
12require 'bugabinga.options'
13-- install plugin manager and declare plugins to use
14require 'bugabinga.plugins'
16-- load this before all other plugins so that they may be cached
17require 'bugabinga.module-cache'
19-- load ui stuff
20require 'bugabinga.notify'
21require 'bugabinga.colortheme'
22require 'bugabinga.colorcolumn'
23require 'bugabinga.icons'
24require 'bugabinga.fuzzy-search-ui'
25require 'bugabinga.colorizer'
26require 'bugabinga.smooth-scroll'
27require 'bugabinga.git-status'
28require 'bugabinga.start-screen'
29require 'bugabinga.registers'
30require 'bugabinga.terminal'
31require 'bugabinga.file-explorer'
32require 'bugabinga.indent-lines'
33require 'bugabinga.search'
34require 'bugabinga.replace'
35require 'bugabinga.windows'
36require 'bugabinga.problems'
38-- load editor features
39require 'bugabinga.filetype'
40require 'bugabinga.move-code'
41require 'bugabinga.last-known-position'
42require 'bugabinga.fast-navigation'
43require 'bugabinga.comments'
44require 'bugabinga.clipboard'
45require 'bugabinga.autopairs'
46require 'bugabinga.todo'
47require 'bugabinga.markdown'
48require 'bugabinga.repl'
49require 'bugabinga.surround'
51-- treesitter
52require 'bugabinga.treesitter'
54-- lsp
55require 'bugabinga.lsp'
57-- should be one of the last things to do.
58-- applies all the declared keybindings to neovim.
59local keymap_build = require('bugabinga.std.keymap').build
60keymap_build()
62-- TODO:
63-- [ ] icon facade: icon.get("name")
64-- [ ] DAP
65-- [ ] put all keybinds into facade
66-- [ ] hydra cycle buffers
67-- [ ] make keymap facade immediate and support buffer local binds
68-- [ ] change style for read only files
69-- [ ] add fstabfmt to null-ls
70-- [ ] undofile not work?
71-- [ ] why does redo not work?
72-- [ ] start a toggleterm with: watch <buffer> { clear; mdcat <buffer> }
73-- [ ] load plugins/init.lua and sync on write. reload init.lua?
74-- [ ] disable gomove in special buffers
75-- [ ] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
76-- [x] JDTLS
77-- [~] bindings for luadev
78-- [~] close toogleterms on quit
79-- [-] LSP diagnostics on save
80-- [x] make focus handle hybrid linenumbers and less jitter
81-- [x] disable shade for some buffers
82-- [~] turn off colorcolumns in certain buffers, only show in active buffer, use focus?
83-- [~] check for system dependecneis, extend checkhealth?
84-- [~] illuminate+LSP + treesitter.refactor.highlight.definitions
85-- [x] LSP
86-- [~] gf to lua modules
87-- [x] AUTOCMD
88-- [x] COMPLETION
89-- [x] JAVA, RUST, ZIG
90-- [~] MARKDOWN
91-- [~] nushell
92-- [x] XML, TOML, JSON, YAML
93-- [x] TREESITTER
94-- [~] ~~SVN~~
95-- [~] ~~VIM-ENEUCH for nvim~~
96-- [x] KEYBINDINGS
97-- [x] PAQ
98-- [x] impatient
99-- [x] icons + colorscheme
100-- [x] TELESCOPE
101-- [x] TERMINAL
102-- [x] GIT
103-- [x] TREE
104-- [x] restore last cursor position
105-- [x] bind nohl
106-- [x] configure Comment
108--
109-- PLUGINS TO TRY
110-- https://github.com/ThePrimeagen/refactoring.nvim
111-- https://github.com/windwp/windline.nvim
112-- https://github.com/hrsh7th/nvim-pasta
113-- https://github.com/VonHeikemen/project-settings.nvim
114-- https://github.com/Saecki/crates.nvim
115-- https://github.com/VonHeikemen/little-wonder

neovim/justfile

Added
new file mode 100644

+26 / −0 text lines

1set shell := ['nu', '--commands']
2
3# List available recipes.
4default:
5 @just --list
6
7# Format lua and toml files.
8fmt:
9 stylua --verify --num-threads 100 .
10 taplo fmt
12# Lint lua and toml files.
13lint:
14 selene --num-threads 100 .
15 taplo lint
17# Update neovim plugins via paq sync. Closes itself right after update.
18update:
19 nvim --headless -u NONE -c 'lua require"bugabinga.plugins.headless"'
21profile_file := `$"startuptime/(hostname | str trim)_(date now | date format '%Y_%m_%d_%H_%M_%S').txt"`
23# Profile startuptime of neovim. Depends on vim-startuptime.
24profile:
25 vim-startuptime -vimpath nvim -count 100 -warmup 10 init.lua | save {{profile_file}}
26 open {{profile_file}}

neovim/lua/bugabinga/autopairs.lua

Added
new file mode 100644

+8 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'nvim-autopairs' }(function(autopairs)
3 --FIXME integrate with cmp later
4 autopairs.setup {
5 check_ts = true,
6 disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
7 }
8end)

neovim/lua/bugabinga/clipboard.lua

Added
new file mode 100644

+4 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'neoclip' }(function(neoclip)
3 neoclip.setup()
4end)

neovim/lua/bugabinga/colorcolumn.lua

Added
new file mode 100644

+6 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'virt-column' }(function(virt_column)
3 virt_column.setup {
4 char = '│',
5 }
6end)

neovim/lua/bugabinga/colorizer.lua

Added
new file mode 100644

+15 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'colorizer' }(function(colorizer)
3 colorizer.setup({ '*' }, {
4 RGB = true, -- #RGB hex codes
5 RRGGBB = true, -- #RRGGBB hex codes
6 names = false, -- "Name" codes like Blue oe blue
7 RRGGBBAA = true, -- #RRGGBBAA hex codes
8 rgb_fn = true, -- CSS rgb() and rgba() functions
9 hsl_fn = true, -- CSS hsl() and hsla() functions
10 css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
11 css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
12 mode = 'virtualtext', -- Set the display mode.
13 virtualtext = '■', -- the virtual text block mode = 'background',
14 })
15end)

neovim/lua/bugabinga/colortheme.lua

Added
new file mode 100644

+4 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'boo-colorscheme' }(function(boo)
3 boo.use()
4end)

neovim/lua/bugabinga/comments.lua

Added
new file mode 100644

+5 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'Comment' }(function(comment)
3 --FIXME: use keymap facade instead of default bindings
4 comment.setup()
5end)

neovim/lua/bugabinga/fast-navigation.lua

Added
new file mode 100644

+5 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'leap' }(function(leap)
3 --FIXME should these bindings go into command center? or hydra?
4 leap.set_default_keymaps()
5end)

neovim/lua/bugabinga/file-explorer.lua

Added
new file mode 100644

+389 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'window-picker', 'neo-tree' }(function(picker, tree)
3 picker.setup {
4 autoselect_one = true,
5 include_current = false,
6 filter_rules = {
7 -- filter using buffer options
8 bo = {
9 -- if the file type is one of following, the window will be ignored
10 filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' },
12 -- if the buffer type is one of following, the window will be ignored
13 buftype = { 'terminal' },
14 },
15 },
16 other_win_hl_color = '#e35e4f',
17 }
19 -- Unless you are still migrating, remove the deprecated commands from v1.x
20 vim.g.neo_tree_remove_legacy_commands = 1
22 -- FIXME: use icons from devicons
23 -- FIXME: make keybinding
25 -- If you want icons for diagnostic errors, you'll need to define them somewhere:
26 vim.fn.sign_define('DiagnosticSignError', { text = ' ', texthl = 'DiagnosticSignError' })
27 vim.fn.sign_define('DiagnosticSignWarn', { text = ' ', texthl = 'DiagnosticSignWarn' })
28 vim.fn.sign_define('DiagnosticSignInfo', { text = ' ', texthl = 'DiagnosticSignInfo' })
29 vim.fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' })
31 tree.setup {
32 close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
33 -- popup_border_style is for input and confirmation dialogs.
34 -- Configurtaion of floating window is done in the individual source sections.
35 -- "NC" is a special style that works well with NormalNC set
36 close_floats_on_escape_key = true,
37 default_source = 'filesystem',
38 enable_diagnostics = true,
39 enable_git_status = true,
40 enable_modified_markers = true, -- Show markers for files with unsaved changes.
41 enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false.
42 git_status_async = true,
43 -- These options are for people with VERY large git repos
44 git_status_async_options = {
45 batch_size = 1000, -- how many lines of git status results to process at a time
46 batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run.
47 max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped.
48 -- Anything before this will be used. The last items to be processed are the untracked files.
49 },
50 log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal"
51 log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file
52 open_files_in_last_window = true, -- false = open files in top left window
53 popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid"
54 resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content
55 -- set to -1 to disable the resize timer entirely
56 -- -- NOTE: this will speed up to 50 ms for 1 second following a resize
57 sort_case_insensitive = false, -- used when sorting files and directories in the tree
58 sort_function = nil, -- uses a custom function for sorting files and directories in the tree
59 use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats.
60 use_default_mappings = true,
61 --
62 --event_handlers = {
63 -- {
64 -- event = "before_render",
65 -- handler = function (state)
66 -- -- add something to the state that can be used by custom components
67 -- end
68 -- },
69 -- {
70 -- event = "file_opened",
71 -- handler = function(file_path)
72 -- --auto close
73 -- require("neo-tree").close_all()
74 -- end
75 -- },
76 -- {
77 -- event = "file_opened",
78 -- handler = function(file_path)
79 -- --clear search after opening a file
80 -- require("neo-tree.sources.filesystem").reset_search()
81 -- end
82 -- },
83 -- {
84 -- event = "file_renamed",
85 -- handler = function(args)
86 -- -- fix references to file
87 -- print(args.source, " renamed to ", args.destination)
88 -- end
89 -- },
90 -- {
91 -- event = "file_moved",
92 -- handler = function(args)
93 -- -- fix references to file
94 -- print(args.source, " moved to ", args.destination)
95 -- end
96 -- },
97 -- {
98 -- event = "neo_tree_buffer_enter",
99 -- handler = function()
100 -- vim.cmd 'highlight! Cursor blend=100'
101 -- end
102 -- },
103 -- {
104 -- event = "neo_tree_buffer_leave",
105 -- handler = function()
106 -- vim.cmd 'highlight! Cursor guibg=#5f87af blend=0'
107 -- end
108 -- }
109 --},
110 default_component_configs = {
111 container = {
112 enable_character_fade = true,
113 },
114 indent = {
115 indent_size = 2,
116 padding = 1,
117 -- indent guides
118 with_markers = true,
119 indent_marker = '│',
120 last_indent_marker = '└',
121 highlight = 'NeoTreeIndentMarker',
122 -- expander config, needed for nesting files
123 with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
124 expander_collapsed = '',
125 expander_expanded = '',
126 expander_highlight = 'NeoTreeExpander',
127 },
128 icon = {
129 folder_closed = '',
130 folder_open = '',
131 folder_empty = 'ﰊ',
132 },
133 modified = {
134 symbol = '[+]',
135 highlight = 'NeoTreeModified',
136 },
137 name = {
138 trailing_slash = false,
139 use_git_status_colors = true,
140 highlight = 'NeoTreeFileName',
141 },
142 git_status = {
143 symbols = {
144 -- Change type
145 added = '✚', -- NOTE: you can set any of these to an empty string to not show them
146 deleted = '✖',
147 modified = '',
148 renamed = '',
149 -- Status type
150 untracked = '',
151 ignored = '',
152 unstaged = '',
153 staged = '',
154 conflict = '',
155 },
156 align = 'right',
157 },
158 },
159 renderers = {
160 directory = {
161 { 'indent' },
162 { 'icon' },
163 { 'current_filter' },
164 {
165 'container',
166 width = '100%',
167 right_padding = 1,
168 --max_width = 60,
169 content = {
170 { 'name', zindex = 10 },
171 {
172 'symlink_target',
173 zindex = 10,
174 highlight = 'NeoTreeSymbolicLinkTarget',
175 },
176 { 'clipboard', zindex = 10 },
177 { 'diagnostics', errors_only = true, zindex = 20, align = 'right' },
178 },
179 },
180 },
181 file = {
182 { 'indent' },
183 { 'icon' },
184 {
185 'container',
186 width = '100%',
187 right_padding = 1,
188 --max_width = 60,
189 content = {
190 {
191 'name',
192 use_git_status_colors = true,
193 zindex = 10,
194 },
195 {
196 'symlink_target',
197 zindex = 10,
198 highlight = 'NeoTreeSymbolicLinkTarget',
199 },
200 { 'clipboard', zindex = 10 },
201 { 'bufnr', zindex = 10 },
202 { 'modified', zindex = 20, align = 'right' },
203 { 'diagnostics', zindex = 20, align = 'right' },
204 { 'git_status', zindex = 20, align = 'right' },
205 },
206 },
207 },
208 message = {
209 { 'indent', with_markers = false },
210 { 'name', highlight = 'NeoTreeMessage' },
211 },
212 terminal = {
213 { 'indent' },
214 { 'icon' },
215 { 'name' },
216 { 'bufnr' },
217 },
218 },
219 nesting_rules = {},
220 window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for
221 -- possible options. These can also be functions that return these options.
222 position = 'left', -- left, right, float, current
223 width = 40, -- applies to left and right positions
224 popup = { -- settings that apply to float position only
225 size = {
226 height = '80%',
227 width = '50%',
228 },
229 position = '50%', -- 50% means center it
230 -- you can also specify border here, if you want a different setting from
231 -- the global popup_border_style.
232 },
233 -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands.
234 -- You can also create your own commands by providing a function instead of a string.
235 mapping_options = {
236 noremap = true,
237 nowait = true,
238 },
239 mappings = {
240 ['<space>'] = {
241 'toggle_node',
242 nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
243 },
244 ['<2-LeftMouse>'] = 'open',
245 ['<cr>'] = 'open',
246 ['S'] = 'split_with_window_picker',
247 ['s'] = 'vsplit_with_window_picker',
248 ['t'] = 'open_tabnew',
249 ['w'] = 'open_with_window_picker',
250 ['C'] = 'close_node',
251 ['z'] = 'close_all_nodes',
252 ['R'] = 'refresh',
253 ['a'] = {
254 'add',
255 -- some commands may take optional config options, see `:h neo-tree-mappings` for details
256 config = {
257 show_path = 'none', -- "none", "relative", "absolute"
258 },
259 },
260 ['A'] = 'add_directory', -- also accepts the config.show_path option.
261 ['d'] = 'delete',
262 ['r'] = 'rename',
263 ['y'] = 'copy_to_clipboard',
264 ['x'] = 'cut_to_clipboard',
265 ['p'] = 'paste_from_clipboard',
266 ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option
267 ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option
268 ['q'] = 'close_window',
269 ['?'] = 'show_help',
270 },
271 },
272 filesystem = {
273 window = {
274 mappings = {
275 ['H'] = 'toggle_hidden',
276 ['/'] = 'fuzzy_finder',
277 ['f'] = 'filter_on_submit',
278 ['<C-x>'] = 'clear_filter',
279 ['<bs>'] = 'navigate_up',
280 ['.'] = 'set_root',
281 ['[g'] = 'prev_git_modified',
282 [']g'] = 'next_git_modified',
283 },
284 },
285 async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands.
286 -- "always" means directory scans are always async.
287 -- "never" means directory scans are never async.
288 bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root
289 -- The renderer section provides the renderers that will be used to render the tree.
290 -- The first level is the node type.
291 -- For each node type, you can specify a list of components to render.
292 -- Components are rendered in the order they are specified.
293 -- The first field in each component is the name of the function to call.
294 -- The rest of the fields are passed to the function as the "config" argument.
295 filtered_items = {
296 visible = true, -- when true, they will just be displayed differently than normal items
297 force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty
298 show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry
299 hide_dotfiles = true,
300 hide_gitignored = true,
301 hide_hidden = true, -- only works on Windows for hidden files/directories
302 hide_by_name = {
303 '.DS_Store',
304 'thumbs.db',
305 'node_modules',
306 'zig-cache',
307 'target',
308 },
309 hide_by_pattern = { -- uses glob style patterns
310 --"*.meta"
311 },
312 never_show = { -- remains hidden even if visible is toggled to true
313 --".DS_Store",
314 --"thumbs.db"
315 },
316 },
317 find_by_full_path_words = false, -- `false` means it only searches the tail of a path.
318 -- `true` will change the filter into a full path
319 -- search with space as an implicit ".*", so
320 -- `fi init`
321 -- will match: `./sources/filesystem/init.lua
322 --find_command = "fd", -- this is determined automatically, you probably don't need to set it
323 --find_args = { -- you can specify extra args to pass to the find command.
324 -- fd = {
325 -- "--exclude", ".git",
326 -- "--exclude", "node_modules"
327 -- }
328 --},
329 ---- or use a function instead of list of strings
330 --find_args = function(cmd, path, search_term, args)
331 -- if cmd ~= "fd" then
332 -- return args
333 -- end
334 -- --maybe you want to force the filter to always include hidden files:
335 -- table.insert(args, "--hidden")
336 -- -- but no one ever wants to see .git files
337 -- table.insert(args, "--exclude")
338 -- table.insert(args, ".git")
339 -- -- or node_modules
340 -- table.insert(args, "--exclude")
341 -- table.insert(args, "node_modules")
342 -- --here is where it pays to use the function, you can exclude more for
343 -- --short search terms, or vary based on the directory
344 -- if string.len(search_term) < 4 and path == "/home/cseickel" then
345 -- table.insert(args, "--exclude")
346 -- table.insert(args, "Library")
347 -- end
348 -- return args
349 --end,
350 group_empty_dirs = false, -- when true, empty folders will be grouped together
351 search_limit = 50, -- max number of search results when using filters
352 follow_current_file = false, -- This will find and focus the file in the active buffer every time
353 -- the current file is changed while the tree is open.
354 hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree
355 -- in whatever position is specified in window.position
356 -- "open_current",-- netrw disabled, opening a directory opens within the
357 -- window like netrw would, regardless of window.position
358 -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs
359 use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes
360 -- instead of relying on nvim autocmd events.
361 },
362 buffers = {
363 bind_to_cwd = true,
364 follow_current_file = true, -- This will find and focus the file in the active buffer every time
365 -- the current file is changed while the tree is open.
366 group_empty_dirs = true, -- when true, empty directories will be grouped together
367 window = {
368 mappings = {
369 ['<bs>'] = 'navigate_up',
370 ['.'] = 'set_root',
371 ['bd'] = 'buffer_delete',
372 },
373 },
374 },
375 git_status = {
376 window = {
377 mappings = {
378 ['A'] = 'git_add_all',
379 ['gu'] = 'git_unstage_file',
380 ['ga'] = 'git_add_file',
381 ['gr'] = 'git_revert_file',
382 ['gc'] = 'git_commit',
383 ['gp'] = 'git_push',
384 ['gg'] = 'git_commit_and_push',
385 },
386 },
387 },
388 }
389end)

neovim/lua/bugabinga/filetype.lua

Added
new file mode 100644

+28 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'filetype' }(function(filetype)
3 -- disable builtin filetype.vim
4 vim.g.did_load_filetypes = 1
5
6 -- the filetype plugins breaks expectations by other plugins by not loading
7 -- ftdetect, like filetype.vim does.
8 -- if that turns out to be a problem, comment these lines in, to get the old
9 -- behaviour
10 --
11 -- vim.cmd[[runtime! ftdetect/*.vim]]
12 -- vim.cmd[[runtime! ftdetect/*.lua]]
14 filetype.setup {
15 overrides = {
16 extensions = {
17 service = 'systemd',
18 just = 'just',
19 },
20 literal = {
21 justfile = 'just',
22 Justfile = 'just',
23 ['.justfile'] = 'just',
24 ['.Justfile'] = 'just',
25 },
26 },
27 }
28end)

neovim/lua/bugabinga/fuzzy-search-ui.lua

Added
new file mode 100644

+78 / −0 text lines

1local map = require('bugabinga.std.keymap').add
2local want = require 'bugabinga.std.want'
3want { 'telescope', 'command_center', 'dressing' }(function(telescope, command_center, dressing)
4 -- Command Center gets loaded here to configure it in the context of Telescope.
5 -- DO NOT use it to add keybindings.
6 -- Instead, use the `bugabinga.std.keymap` facade.
7
8 map {
9 name = 'Open Command Center',
10 description = 'Opens the Command Center with Telescope to show all available keybound commands.',
11 mode = 'n',
12 map = '<C-p>',
13 map_options = {},
14 category = nil,
15 command = function()
16 telescope.extensions.command_center.command_center()
17 end,
18 }
20 telescope.setup {
21 defaults = {
22 history = {
23 path = vim.fn.stdpath 'data' .. 'telescope_history.sqlite3',
24 limit = 100,
25 },
26 },
27 extensions = {
28 command_center = {
29 -- Change what to show on telescope prompt and in which order
30 -- Currently support the following three components
31 -- Components may repeat
32 components = {
33 command_center.component.DESCRIPTION,
34 command_center.component.KEYBINDINGS,
35 -- command_center.component.COMMAND,
36 },
37 -- Change the separator used to separate each component
38 separator = ' ',
39 -- When set to false,
40 -- The description compoenent will be empty if it is not specified
41 auto_replace_desc_with_cmd = false,
42 },
43 },
44 }
46 local extensions = {
47 -- Plug Command Center into Telescope
48 'command_center',
49 -- show history of notifications
50 'notify',
51 -- save yank history
52 'neoclip',
53 -- telescope for vim.ui.select
54 'ui-select',
55 -- sort by frecency
56 'frecency',
57 -- cheat sheet
58 'cheat',
59 -- file browser
60 'file_browser',
61 -- manage projects
62 'project',
63 -- project specific history
64 'smart_history',
65 }
67 for _, extension in pairs(extensions) do
68 if not pcall(telescope.load_extension, extension) then
69 vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error')
70 end
71 end
73 dressing.setup {
74 input = { enable = true },
75 -- vim.ui.select is already handled by telescope extension
76 select = { enable = false },
77 }
78end)

neovim/lua/bugabinga/git-status.lua

Added
new file mode 100644

+6 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'gitsigns' }(function(gitsigns)
3 -- FIXME use keymap facade
4 -- FIXME integrate into null-ls
5 gitsigns.setup()
6end)

neovim/lua/bugabinga/health.lua

Added
new file mode 100644

+30 / −0 text lines

1-- use the neovim healthcheck module to integrate into :checkhealth.
2-- check the system for dependencies, that:
3-- * i like to use with neovim.
4-- * plugins need.
5
6local _ = {}
7
8local function program_installed(name_of_executable)
9 return (vim.fn.executable(name_of_executable) ~= 0)
10end
12local function check_program(name, name_of_executable)
13 vim.health.report_start(name .. ' report')
14 if program_installed(name_of_executable) then
15 vim.health.report_ok(name_of_executable .. ' found on system')
16 else
17 vim.health.report_error(name .. ' is not installed on the system')
18 end
19end
21_.check = function()
22 check_program('ripgrep', 'rg')
23 check_program('find-fd', 'fd')
24 check_program('SQLite3', 'sqlite3')
25 check_program('Nushell', 'nu')
26 check_program('vim-startuptime', 'vim-startuptime')
27 check_program('Pandoc', 'pandoc')
28end
30return _

neovim/lua/bugabinga/icons.lua

Added
new file mode 100644

+181 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'nvim-web-devicons' } (function(devicons)
3 devicons.setup {
4 override = {
5 sh = {
6 icon = '',
7 color = '#1DC123',
8 cterm_color = '59',
9 name = 'Sh',
10 },
11 toml = {
12 icon = '',
13 color = '#e24329',
14 cterm_color = '59',
15 name = 'Toml',
16 },
17 justfile = {
18 icon = 'ﮧ',
19 color = '#999eff',
20 cterm_color = '59',
21 name = 'Justfile',
22 },
23 Justfile = {
24 icon = 'ﮧ',
25 color = '#999eff',
26 cterm_color = '59',
27 name = 'Justfile',
28 },
29 ['.justfile'] = {
30 icon = 'ﮧ',
31 color = '#999eff',
32 cterm_color = '59',
33 name = 'Justfile',
34 },
35 ['.Justfile'] = {
36 icon = 'ﮧ',
37 color = '#999eff',
38 cterm_color = '59',
39 name = 'Justfile',
40 },
41 ['.gitattributes'] = {
42 icon = '',
43 color = '#e24329',
44 cterm_color = '59',
45 name = 'GitAttributes',
46 },
47 ['.gitconfig'] = {
48 icon = '',
49 color = '#e24329',
50 cterm_color = '59',
51 name = 'GitConfig',
52 },
53 ['.gitignore'] = {
54 icon = '',
55 color = '#e24329',
56 cterm_color = '59',
57 name = 'GitIgnore',
58 },
59 ['.gitlab-ci.yml'] = {
60 icon = '',
61 color = '#e24329',
62 cterm_color = '166',
63 name = 'GitlabCI',
64 },
65 ['.gitmodules'] = {
66 icon = '',
67 color = '#e24329',
68 cterm_color = '59',
69 name = 'GitModules',
70 },
71 ['diff'] = {
72 icon = '',
73 color = '#e24329',
74 cterm_color = '59',
75 name = 'Diff',
76 },
77 },
78 default = true,
79 }
80end)
82--[[ FIXME: integrate those into devicons
83return {
84 kind = {
85 Text = "",
86 Method = "m",
87 Function = "",
88 Constructor = "",
89 Field = "",
90 Variable = "",
91 Class = "",
92 Interface = "",
93 Module = "",
94 Property = "",
95 Unit = "",
96 Value = "",
97 Enum = "",
98 Keyword = "",
99 Snippet = "",
100 Color = "",
101 File = "",
102 Reference = "",
103 Folder = "",
104 EnumMember = "",
105 Constant = "",
106 Struct = "",
107 Event = "",
108 Operator = "",
109 TypeParameter = "",
110 },
111 type = {
112 Array = "",
113 Number = "",
114 String = "",
115 Boolean = "蘒",
116 Object = "",
117 },
118 documents = {
119 File = "",
120 Files = "",
121 Folder = "",
122 OpenFolder = "",
123 },
124 git = {
125 Add = "",
126 Mod = "",
127 Remove = "",
128 Ignore = "",
129 Rename = "",
130 Diff = "",
131 Repo = "",
132 },
133 ui = {
134 ArrowClosed = "",
135 ArrowOpen = "",
136 Lock = "",
137 Circle = "",
138 BigCircle = "",
139 BigUnfilledCircle = "",
140 Close = "",
141 NewFile = "",
142 Search = "",
143 Lightbulb = "",
144 Project = "",
145 Dashboard = "",
146 History = "",
147 Comment = "",
148 Bug = "",
149 Code = "",
150 Telescope = "",
151 Gear = "",
152 Package = "",
153 List = "",
154 SignIn = "",
155 SignOut = "",
156 Check = "",
157 Fire = "",
158 Note = "",
159 BookMark = "",
160 Pencil = "",
161 ChevronRight = "",
162 Table = "",
163 Calendar = "",
164 CloudDownload = "",
165 },
166 diagnostics = {
167 Error = "",
168 Warning = "",
169 Information = "",
170 Question = "",
171 Hint = "",
172 },
173 misc = {
174 Robot = "ﮧ",
175 Squirrel = "",
176 Tag = "",
177 Watch = "",
178 },
179}
180]]
181--

neovim/lua/bugabinga/indent-lines.lua

Added
new file mode 100644

+7 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'indent_blankline' }(function(indent_blankline)
3 indent_blankline.setup {
4 show_current_context = true,
5 show_current_context_start = true,
6 }
7end)

neovim/lua/bugabinga/last-known-position.lua

Added
new file mode 100644

+8 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'nvim-lastplace' }(function(lastplace)
3 lastplace.setup {
4 lastplace_ignore_buftype = { 'quickfix', 'nofile', 'help' },
5 lastplace_ignore_filetype = { 'gitcommit', 'gitrebase', 'svn', 'hgcommit' },
6 lastplace_open_folds = true,
7 }
8end)

neovim/lua/bugabinga/lsp.lua

Added
new file mode 100644

+113 / −0 text lines

1local want = require 'bugabinga.std.want'
2want {
3 'lsp-zero',
4 'null-ls',
5 'nvim-lsp-installer',
6 'lua-dev',
7 'rust-tools',
8 'nvim-navic',
9 'lsp-status',
10}(function(zero, null_ls, installer, luadev, rust, navic, lsp_status)
11 installer.settings {
12 ui = {
13 border = 'rounded',
14 },
15 }
17 zero.preset 'recommended'
19 -- setup lsp for my neovim config
20 zero.nvim_workspace {
21 -- add paths of all plugins and neovim
22 library = vim.api.nvim_get_runtime_file('', true),
23 }
24 -- Initialize rust_analyzer with rust-tools
25 rust.setup {
26 server = zero.build_options('rust_analyzer', {}),
27 }
29 -- this will prevent zero from loading this server.
30 -- Java will be managed by nvim-jdtls, which wants to do things differently.
31 -- see ftplugin/java.lua
32 zero.build_options('jdtls', {})
34 -- lua neovim lsp
35 luadev.setup {
36 lspconfig = zero.defaults.nvim_workspace(),
37 }
39 -- disable disco mode while typing
40 zero.setup_nvim_cmp {
41 completion = {
42 autocomplete = false,
43 },
44 }
46 -- Format on Save when any LSP supports it.
47 local auto = require 'bugabinga.std.auto'
48 local null_opts = zero.build_options('null-ls', {
49 on_attach = function(client)
50 if client.server_capabilities.documentFormattingProvider then
51 auto 'format_buffer_on_write' {
52 description = 'Format the current buffer before writing.',
53 events = 'BufWritePre',
54 pattern = '<buffer>',
55 callback = function(context)
56 vim.lsp.buf.format()
57 vim.notify('Formatted ' .. context.file)
58 end,
59 }
60 end
61 end,
62 })
64 local formatting = null_ls.builtins.formatting
65 local diagnostics = null_ls.builtins.diagnostics
66 local code_actions = null_ls.builtins.code_actions
67 local hover = null_ls.builtins.hover
68 local completion = null_ls.builtins.completion
70 -- run diagnostics on save
71 local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE }
72 null_ls.setup {
73 on_attach = null_opts.on_attach,
74 sources = {
75 formatting.black.with { extra_args = { '--fast' } },
76 formatting.stylua,
77 formatting.clang_format,
78 formatting.codespell,
79 formatting.jq,
80 formatting.protolint,
81 formatting.shellharden,
82 formatting.shfmt,
83 formatting.taplo,
85 hover.dictionary,
87 diagnostics.actionlint.with(diagnostics_on_save),
88 diagnostics.checkmake.with(diagnostics_on_save),
89 diagnostics.codespell.with(diagnostics_on_save),
90 diagnostics.editorconfig_checker.with(diagnostics_on_save).with { command = 'editorconfig-checker' },
91 diagnostics.gitlint.with(diagnostics_on_save),
92 diagnostics.protoc_gen_lint.with(diagnostics_on_save),
93 diagnostics.protolint.with(diagnostics_on_save),
94 diagnostics.selene.with(diagnostics_on_save),
95 diagnostics.shellcheck.with(diagnostics_on_save),
96 diagnostics.tidy.with(diagnostics_on_save),
98 code_actions.refactoring,
99 code_actions.shellcheck,
101 completion.luasnip,
102 },
103 }
105 zero.on_attach(function(client, buffer_number)
106 if client.name ~= 'null-ls' and not vim.b.lsp_attached then
107 navic.attach(client, buffer_number)
108 lsp_status.on_attach(client, buffer_number)
109 end
110 end)
112 zero.setup()
113end)

neovim/lua/bugabinga/markdown.lua

Added
new file mode 100644

+1 / −0 text lines

1-- local want = require 'bugabinga.std.want'

neovim/lua/bugabinga/module-cache.lua

Added
new file mode 100644

+3 / −0 text lines

1local impatient = require 'impatient'
2-- FIXME: enable profile only when neovim was startet with --startuptime?
3impatient.enable_profile()

neovim/lua/bugabinga/move-code.lua

Added
new file mode 100644

+14 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'gomove' } (function(move)
3 move.setup {
4 --FIXME: replace with keymap facade
5 -- whether or not to map default key bindings, (true/false)
6 map_defaults = true,
7 -- whether or not to reindent lines moved vertically (true/false)
8 reindent = true,
9 -- whether or not to undojoin same direction moves (true/false)
10 undojoin = true,
11 -- whether to not to move past end column when moving blocks horizontally, (true/false)
12 move_past_end_col = false,
13 }
14end)

neovim/lua/bugabinga/notify.lua

Added
new file mode 100644

+4 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'notify' }(function(notify)
3 vim.notify = notify
4end)

neovim/lua/bugabinga/options/autocommands.lua

Added
new file mode 100644

+31 / −0 text lines

1local auto = require 'bugabinga.std.auto'
2
3auto 'highlight_yanked_text' {
4 description = 'briefly highlight yanked text',
5 events = 'TextYankPost',
6 pattern = '*',
7 callback = function()
8 vim.highlight.on_yank { timeout = 500 }
9 end,
10}
12auto 'disable_colorcolumn_in_special_buffers' {
13 description = 'Hide colorcolumn in buffers, that do not show source code.',
14 events = { 'FileType' },
15 --FIXME: neo-tree filetype seems not to get matched, why?
16 pattern = 'Trouble,qf,neo-tree,help,toggleterm',
17 callback = function()
18 vim.opt_local.colorcolumn = {}
19 end,
20}
22auto 'change_readonly_style' {
23 description = 'Change some highlights for readonly buffers.',
24 events = { 'BufEnter' },
25 callback = function()
26 if vim.bo.readonly then
27 -- TODO: use extmark to somehow indicate this file is readonly
28 vim.notify 'this buffer is read-only'
29 end
30 end,
31}

neovim/lua/bugabinga/options/behaviour.lua

Added
new file mode 100644

+65 / −0 text lines

1-- How many milliseconds must pass before neovim decides I was "idle"
2vim.opt.updatetime = 50
3-- How long to wait between key sequences in order to chain them. e.g. <LEADER>b
4vim.opt.timeoutlen = 250
5
6-- wrap line movements, when start/end is reached
7-- vim.opt.whichwrap:append'<'
8-- vim.opt.whichwrap:append'>'
9-- vim.opt.whichwrap:append'['
10-- vim.opt.whichwrap:append']'
11-- vim.opt.whichwrap:append'h'
12-- vim.opt.whichwrap:append'l'
14-- Tabs and Spaces, i like 'em 2 spaces wide
15-- only insert spaces for tabs if language configuration explicitly declares so
16vim.opt.expandtab = false
17local tab_size = 2
18vim.opt.tabstop = tab_size
19vim.opt.shiftwidth = tab_size
20vim.opt.softtabstop = tab_size
22-- keep distance to borders while scrolling
23vim.opt.scrolloff = 8
24vim.opt.sidescrolloff = 8
26-- try to guess indentation based on context
27vim.opt.smartindent = true
28-- Keep indentation of new lines in line with previuos lines
29vim.opt.autoindent = true
30vim.opt.copyindent = true
32-- open splits to the right and below
33vim.opt.splitbelow = true
34vim.opt.splitright = true
36-- enable mouse
37vim.opt.mouse = 'a'
39-- integrate Nushell with nvim
40vim.opt.shell = 'nu'
41vim.opt.shellcmdflag = '--commands'
42vim.opt.shellpipe = '| save %s'
43vim.opt.shellredir = '| save %s'
44vim.opt.shellquote = ''
45vim.opt.shellxquote = ''
47-- insert whitespace type based on whitespace on previous line
48vim.opt.smarttab = true
49-- highlight all search matches
50vim.opt.hlsearch = true
51-- enable smart case in searches
52vim.opt.ignorecase = true
53vim.opt.smartcase = true
54vim.opt.incsearch = true
55vim.opt.showmatch = true
56vim.opt.hidden = true
57-- Show the effects of substitutions incrementally
58vim.opt.inccommand = 'nosplit'
60-- use ripgrep instead of grep
61vim.opt.grepprg = 'rg --vimgrep --no-heading --smart-case'
62-- vim.opt.grepformat = '%f:%1:%c:%m'
64-- ask me to force failed commands
65vim.opt.confirm = true

neovim/lua/bugabinga/options/file.lua

Added
new file mode 100644

+20 / −0 text lines

1-- Keep track of file changes outside of vim
2vim.opt.autoread = true
3
4-- encode files in UTF-8
5vim.opt.fileencoding = 'utf-8'
6
7-- do not create local backup files
8vim.opt.backup = false
9
10-- disable swap file. this means no recovery of files after crash.
11-- but then again multiple neovim instances are not competing for a file.
12-- and from a security standpoint, a swap file is a risk.
13-- but that point is moot, because i use persistent undo...
14vim.opt.swapfile = false
16-- enable persistent undo. save undo history across neovim instances
17vim.opt.undofile = true
19-- do not make a backup before writing to a file
20vim.opt.writebackup = false

neovim/lua/bugabinga/options/init.lua

Added
new file mode 100644

+40 / −0 text lines

1-- NEOVIM EDITOR OPTIONS
2
3require 'bugabinga.options.behaviour'
4require 'bugabinga.options.ui'
5require 'bugabinga.options.keymaps'
6require 'bugabinga.options.autocommands'
7
8-- disable some runtime providers that i will not use.
9-- keeps checkhealth clean
10-- pls stop haunting me python...
11vim.g.loaded_python3_provider = 0
12vim.g.loaded_ruby_provider = 0
13vim.g.loaded_node_provider = 0
14vim.g.loaded_perl_provider = 0
16-- Disable some in built plugins completely
17local disabled_built_ins = {
18 'netrw',
19 'netrwPlugin',
20 'netrwSettings',
21 'netrwFileHandlers',
22 'gzip',
23 'zip',
24 'zipPlugin',
25 'tar',
26 'tarPlugin',
27 'getscript',
28 'getscriptPlugin',
29 'vimball',
30 'vimballPlugin',
31 '2html_plugin',
32 'logipat',
33 'rrhelper',
34 'spellfile_plugin',
35 'matchit',
36 --'matchparen',
37}
38for _, plugin in pairs(disabled_built_ins) do
39 vim.g['loaded_' .. plugin] = 1
40end

neovim/lua/bugabinga/options/keymaps.lua

Added
new file mode 100644

+22 / −0 text lines

1-- set <SPACE> as leader key
2vim.keymap.set('', '<SPACE>', '<NOP>', { silent = true })
3vim.g.mapleader = ' '
4vim.g.maplocalleader = ' '
5
6-- disable default ENTER binding
7vim.keymap.set('', '<CR>', '<NOP>', { silent = true })
8
9-- disable command history keymap, because i fatfinger it too often
10-- FIXME: these seem to disable the binding only partially.
11-- when pressing q: "fast", it is disabled.
12-- when pausing between q and :, the binding still opens command history.
13-- this may be relatred to the timeoutlen setting?
14vim.keymap.set('', 'q:', '<NOP>', { silent = true })
15vim.keymap.set('', 'q/', '<NOP>', { silent = true })
16vim.keymap.set('', 'Q', '<NOP>', { silent = true })
18-- disable them evil arrows
19vim.keymap.set('', '<Up>', '<NOP>', { silent = true })
20vim.keymap.set('', '<Down>', '<NOP>', { silent = true })
21vim.keymap.set('', '<Left>', '<NOP>', { silent = true })
22vim.keymap.set('', '<Right>', '<NOP>', { silent = true })

neovim/lua/bugabinga/options/ui.lua

Added
new file mode 100644

+72 / −0 text lines

1-- show trailing whitespace
2vim.opt.list = true
3vim.opt.listchars:append 'trail:⋅'
4vim.opt.listchars:append 'lead:⋅'
5
6-- do not spam the cmdline with every little input
7vim.opt.showcmd = false
8vim.opt.wildmode = 'list:longest'
9
10-- virtually break lines on border
11vim.opt.wrap = true
13-- always display the signcolumn to avoid jitter
14vim.opt.signcolumn = 'yes'
16-- what is a ruler? me?
17vim.opt.ruler = false
19-- do not echo every little thing
20vim.opt.showcmd = false
22-- avoid jitter by keeping status area big
23vim.opt.laststatus = 3
25-- hide weird symbol at end of buffer
26vim.opt.fillchars:append 'eob: '
28-- hide output of insert completion popup in status
29vim.opt.shortmess:append 'c'
31-- hide cmd window to give status more room
32vim.opt.cmdheight = 0
34-- do not conceal special character, e.g. in markdown files
35vim.opt.conceallevel = 0
37-- I do not care for folding
38vim.opt.foldenable = false
40-- show visual indicators for lines too long
41vim.opt.colorcolumn = { '80', '120', '140' }
43-- highlight the current line
44vim.opt.cursorline = false
46-- pop up menu height
47vim.opt.pumheight = 10
49-- hide the mode indicator in status
50vim.opt.showmode = false
52-- always show tabs, to avoid jitter ui
53vim.opt.showtabline = 1
55-- Use true colors
56vim.opt.termguicolors = true
57vim.opt.lazyredraw = true
59-- font
60vim.opt.guifont = 'BlexMono Nerd Font:h16:antialias=true'
62-- neovide only options
63if vim.g.neovide then
64 vim.g.neovide_floating_blur_amount_x = 4.0
65 vim.g.neovide_floating_blur_amount_y = 4.0
66 vim.g.neovide_scroll_animation_length = 0.33
67 vim.g.neovide_fullscreen = true
68 vim.g.neovide_profiler = false
69 vim.g.neovide_cursor_animation_length = 0.11
70 vim.g.neovide_cursor_trail_length = 0.666
71 vim.g.neovide_cursor_vfx_mode = 'pixiedust'
72end

neovim/lua/bugabinga/plugins/headless.lua

Added
new file mode 100644

+10 / −0 text lines

1local auto = require 'bugabinga.std.auto'
2local paq = require 'bugabinga.plugins'
3
4auto 'close_neovim' {
5 description = 'Close neovim after updating plugins.',
6 events = { 'User PaqDoneSync' },
7 command = 'quit',
8}
9
10paq:sync()

neovim/lua/bugabinga/plugins/init.lua

Added
new file mode 100644

+182 / −0 text lines

1local paq = require 'bugabinga.plugins.install'
2paq {
3 -- allow paq to manage itself
4 'savq/paq-nvim',
5 -- caches other plugins for faster startup
6 'lewis6991/impatient.nvim',
7 -- faster implementation of filetypes.vim
8 'nathom/filetype.nvim',
9 -- Utilities used by some plugins, e.g. telescope
10 'nvim-lua/plenary.nvim',
11 -- collection of icons used by other plugins. needs a nerd font
12 'kyazdani42/nvim-web-devicons',
13 -- fuzzy search ui over many parts of neovim and other plugins
14 'nvim-telescope/telescope.nvim',
15 -- use telescope as `vim.ui.select`
16 'nvim-telescope/telescope-ui-select.nvim',
17 -- use telescope as `vim.ui.input`
18 'stevearc/dressing.nvim',
19 -- use frecency algorithm when sorting files. Needs sqlite3 installed
20 'nvim-telescope/telescope-frecency.nvim',
21 -- display cheat sheet with telesope
22 'nvim-telescope/telescope-cheat.nvim',
23 -- keep project specific histories in telescope
24 'nvim-telescope/telescope-smart-history.nvim',
25 -- show file browser in telescope
26 'nvim-telescope/telescope-file-browser.nvim',
27 -- manage projects via telescope
28 'nvim-telescope/telescope-project.nvim',
29 -- pick a symbol (emoji, icon, kaomoji,...) via telescope
30 'nvim-telescope/telescope-symbols.nvim',
31 -- sqplite lua bindings some plugins use
32 'tami5/sqlite.lua',
33 -- status and tablines
34 'beauwilliams/statusline.lua',
35 -- visual indicator if code actions are available
36 'kosayoda/nvim-lightbulb',
37 -- some bug fix for LSP
38 'antoinemadec/FixCursorHold.nvim',
39 -- allows statusbar plugins to query LSP
40 'nvim-lua/lsp-status.nvim',
41 -- keybindings api that integrates into telescope to make keymaps searchable
42 'gfeiyou/command-center.nvim',
43 -- search and replace
44 'nvim-pack/nvim-spectre',
45 -- automatically manage window sizes based on focus
46 'beauwilliams/focus.nvim',
47 -- avoid jitter in buffers when windows change
48 'luukvbaal/stabilize.nvim',
49 -- keybindings that require a persistent chain
50 'anuvyklack/hydra.nvim',
51 -- extends hydra with pink heads
52 'anuvyklack/keymap-layer.nvim',
53 -- configure some editor settings according to editorconfig file, if present
54 'gpanders/editorconfig.nvim',
55 -- highlight words under cursor
56 -- "RRethy/vim-illuminate",
57 -- highlight matched wors more clearly
58 'kevinhwang91/nvim-hlslens',
59 -- draw lines to indicate indentation levels
60 'lukas-reineke/indent-blankline.nvim',
61 -- move blocks of code around
62 'booperlv/nvim-gomove',
63 -- theme with colors i like
64 'rockerBOO/boo-colorscheme-nvim',
65 -- display the colorcolumn as a virtual character
66 'lukas-reineke/virt-column.nvim',
67 -- jump cursor to last known position on neovim start
68 'ethanholz/nvim-lastplace',
69 -- smooth scrolling for movement
70 'declancm/cinnamon.nvim',
71 -- fast navigation in buffer via shortcut labels
72 'ggandor/leap.nvim',
73 -- dim inactive windows
74 -- 'sunjon/shade.nvim',
75 'dapc11/Shade.nvim',
76 -- breadcrumbs in window bar
77 'SmiteshP/nvim-navic',
78 -- show color values inline
79 -- this plugins seems a little unmaintained right now.
80 -- using some forks for now
81 --'norcalli/nvim-colorizer.lua',
82 --'NvChad/nvim-colorizer.lua',
83 'lasse16/nvim-colorizer.lua',
84 -- intelligent commenting
85 'numToStr/Comment.nvim',
86 -- show git status in ui
87 'lewis6991/gitsigns.nvim',
88 -- sexy start page
89 'goolord/alpha-nvim',
90 -- extend vim.notify with fancy ui
91 'rcarriga/nvim-notify',
92 -- show registers ui
93 'tversteeg/registers.nvim',
94 -- markdown editor
95 -- 'jakewvincent/mkdnflow.nvim',
96 -- highlight TODOs and collect them
97 'folke/todo-comments.nvim',
98 -- centralized view for code issues
99 'folke/trouble.nvim',
100 -- faster access to terminal
101 'akinsho/toggleterm.nvim',
102 -- File Browser
103 {
104 'nvim-neo-tree/neo-tree.nvim',
105 branch = 'v2.x',
106 },
107 -- ui elements for other plugins
108 'MunifTanjim/nui.nvim',
109 -- window picker component for other plugins
110 {
111 's1n7ax/nvim-window-picker',
112 branch = 'v1.3',
113 },
114 -- clipboard/yank history
115 'AckslD/nvim-neoclip.lua',
116 -- the treesitter parser is not compatible with current nushell for now
117 -- {
118 -- 'LhKipp/nvim-nu',
119 -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end,
120 -- },
121 -- smart parser for syntax
122 {
123 'nvim-treesitter/nvim-treesitter',
124 run = function()
125 require('nvim-treesitter.install').update()
126 end,
127 },
128 -- extend treesittier with light refactorings
129 'nvim-treesitter/nvim-treesitter-refactor',
130 -- add movement around structural syntax elements
131 'nvim-treesitter/nvim-treesitter-textobjects',
132 -- expand selection based on structure
133 'RRethy/nvim-treesitter-textsubjects',
134 -- highlight function arguments
135 'm-demare/hlargs.nvim',
136 -- inspect treesitter queries and get helpful functions
137 'nvim-treesitter/playground',
138 -- set commentstring when in polyglot files
139 'JoosepAlviste/nvim-ts-context-commentstring',
140 -- generate doc comment boilerplate
141 'danymat/neogen',
142 -- automatically change corresponding tag, when editing markup (xml/html)
143 'windwp/nvim-ts-autotag',
144 -- autoclose pairs on enter and completion
145 'windwp/nvim-autopairs',
146 -- glue, that binds all the neovim lsp crap
147 'VonHeikemen/lsp-zero.nvim',
148 -- LSP Support
149 'neovim/nvim-lspconfig',
150 'williamboman/nvim-lsp-installer',
151 'simrat39/symbols-outline.nvim',
152 -- Autocompletion
153 'hrsh7th/nvim-cmp',
154 'hrsh7th/cmp-buffer',
155 'hrsh7th/cmp-path',
156 'hrsh7th/cmp-nvim-lsp-document-symbol',
157 'saadparwaiz1/cmp_luasnip',
158 'hrsh7th/cmp-nvim-lsp',
159 'hrsh7th/cmp-nvim-lua',
160 -- Snippets
161 'L3MON4D3/LuaSnip',
162 'rafamadriz/friendly-snippets',
163 -- rust development
164 'simrat39/rust-tools.nvim',
165 -- java development
166 'mfussenegger/nvim-jdtls',
167 -- lua neovim config development
168 'folke/lua-dev.nvim',
169 -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api
170 'jose-elias-alvarez/null-ls.nvim',
171 -- Special Java LSP integration sauce
172 'mfussenegger/nvim-jdtls',
173 -- debug adapter protocol
174 'mfussenegger/nvim-dap',
175 -- repls in neovim
176 'hkupty/iron.nvim',
177 -- color picker
178 'ziontee113/color-picker.nvim',
179 -- motions around object
180 'kylechui/nvim-surround',
181}
182return paq

neovim/lua/bugabinga/plugins/install.lua

Added
new file mode 100644

+12 / −0 text lines

1local path = vim.fn.stdpath 'data' .. '/site/pack/paqs/start/paq-nvim'
2if vim.fn.filewritable(path) == 0 then
3 vim.fn.system {
4 'git',
5 'clone',
6 '--depth=1',
7 'https://github.com/savq/paq-nvim.git',
8 path,
9 }
10 vim.cmd 'packadd paq-nvim'
11end
12return (require 'paq')

neovim/lua/bugabinga/problems.lua

Added
new file mode 100644

+4 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'trouble' }(function(trouble)
3 trouble.setup {}
4end)

neovim/lua/bugabinga/registers.lua

Added
new file mode 100644

+15 / −0 text lines

1-- vim.g.registers_return_symbol = "\n" --'⏎' by default
2-- vim.g.registers_tab_symbol = "\t" --'·' by default
3-- vim.g.registers_space_symbol = " " --' ' by default
4vim.g.registers_delay = 0 --0 by default, milliseconds to wait before opening the popup window
5vim.g.registers_register_key_sleep = 0 --0 by default, seconds to wait before closing the window when a register key is pressed
6vim.g.registers_show_empty_registers = 1 --1 by default, an additional line with the registers without content
7vim.g.registers_trim_whitespace = 1 --1 by default, don't show whitespace at the begin and end of the registers
8vim.g.registers_hide_only_whitespace = 1 --0 by default, don't show registers filled exclusively with whitespace
9vim.g.registers_window_border = 'rounded' --'none' by default, can be 'none', 'single','double', 'rounded', 'solid', or 'shadow' (requires Neovim 0.5.0+)
10vim.g.registers_window_min_height = 3 --3 by default, minimum height of the window when there is the cursor at the bottom
11vim.g.registers_window_max_width = 100 --100 by default, maximum width of the window
12vim.g.registers_normal_mode = 1 --1 by default, open the window in normal mode
13vim.g.registers_visual_mode = 1 --1 by default, open the window in visual mode
14vim.g.registers_insert_mode = 1 --1 by default, open the window in insert mode
15-- vim.g.registers_show = "*+\"" --'*+\"-/_=#%.0123456789abcdefghijklmnopqrstuvwxyz' by default, which registers to show and in what order

neovim/lua/bugabinga/repl.lua

Added
new file mode 100644

+39 / −0 text lines

1local want = require 'bugabinga.std.want'
2want {
3 'iron.core',
4 'iron.view',
5}(function(core, view)
6 core.setup {
7 config = {
8 -- If iron should expose `<plug>(...)` mappings for the plugins
9 should_map_plug = false,
10 -- Whether a repl should be discarded or not
11 scratch_repl = true,
12 repl_open_cmd = view.curry.right(80),
13 -- how the REPL window will be opened, the default is opening
14 -- a float window of height 40 at the bottom.
15 },
16 -- Iron doesn't set keymaps by default anymore. Set them here
17 -- or use `should_map_plug = true` and map from you vim files
18 -- FIXME: setup own keybinds
19 keymaps = {
20 send_motion = '<space>sc',
21 visual_send = '<space>sc',
22 send_file = '<space>sf',
23 send_line = '<space>sl',
24 send_mark = '<space>sm',
25 mark_motion = '<space>mc',
26 mark_visual = '<space>mc',
27 remove_mark = '<space>md',
28 cr = '<space>s<cr>',
29 interrupt = '<space>s<space>',
30 exit = '<space>sq',
31 clear = '<space>cl',
32 },
33 -- If the highlight is on, you can change how it looks
34 -- For the available options, check nvim_set_hl
35 highlight = {
36 italic = true,
37 },
38 }
39end)

neovim/lua/bugabinga/replace.lua

Added
new file mode 100644

+6 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'spectre' }(function(spectre)
3 spectre.setup()
4 --FIXME add keymaps
5 --FIXME integrate with windline, if windline gets used
6end)

neovim/lua/bugabinga/search.lua

Added
new file mode 100644

+26 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'hlslens' } (function(_)
3 local noremap_silent = { noremap = true, silent = true }
4
5 -- FIXME: hlslens uses some highlights, that my theme does not cover yet
6 -- FIXME: use keymap facade
7 -- FIXME: change commands to lua callbacks
8 vim.api.nvim_set_keymap(
9 'n',
10 'n',
11 [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
12 noremap_silent
13 )
14 vim.api.nvim_set_keymap(
15 'n',
16 'N',
17 [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]],
18 noremap_silent
19 )
20 vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
21 vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
22 vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
23 vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
25 vim.api.nvim_set_keymap('n', '<LEADER><LEADER>', '<CMD>noh<CR>', noremap_silent)
26end)

neovim/lua/bugabinga/smooth-scroll.lua

Added
new file mode 100644

+5 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'cinnamon' }(function(cinnamon)
3 --FIXME: use keymap facade instead of default bindings
4 cinnamon.setup()
5end)

neovim/lua/bugabinga/start-screen.lua

Added
new file mode 100644

+30 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'alpha', 'alpha.themes.startify' } (function(alpha, theme)
3 --FIXME add "open alpha" keymap
4 theme.section.header.val = {
5 [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]],
6 [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]],
7 [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]],
8 [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]],
9 [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]],
10 [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]],
11 [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]],
12 [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]],
13 [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]],
14 [[ ░ ░ ]],
15 }
16 theme.section.top_buttons.val = {
17 theme.button('e', ' New file', '<CMD>new | startinsert <CR>'),
18 }
19 theme.section.bottom_buttons.val = {
20 theme.button('q', ' Quit NVIM', ':qa<CR>'),
21 }
22 theme.section.mru.val = { { type = 'padding', val = 0 } }
23 theme.section.footer = {
24 { type = 'text', val = 'bugabinga.net' },
25 }
26 theme.mru_opts.ignore = function(path, _)
27 return string.find(path, 'COMMIT_EDITMSG')
28 end
29 alpha.setup(theme.config)
30end)

neovim/lua/bugabinga/std/auto.lua

Added
new file mode 100644

+20 / −0 text lines

1-- Wrapper over `vim.api.nvim_create_autocmd` for automatic grouping and idempotency.
2return function(group_name)
3 local group = vim.api.nvim_create_augroup(group_name, { clear = true })
4 return function(list_of_autocommands)
5 if list_of_autocommands.events then
6 list_of_autocommands = { list_of_autocommands }
7 end
8 for _, autocommand in pairs(list_of_autocommands) do
9 vim.api.nvim_create_autocmd(autocommand.events, {
10 desc = autocommand.description,
11 group = group,
12 pattern = autocommand.pattern,
13 -- command and callback are mutually exclusive.
14 -- one of them has to be nil
15 command = autocommand.command,
16 callback = autocommand.callback,
17 })
18 end
19 end
20end

neovim/lua/bugabinga/std/fmt.lua

Added
new file mode 100644

+8 / −0 text lines

1-- wraps vim commands with : (<CMD>) and Enter (<CR>)
2local function cmd(interactive_command)
3 return '<CMD>' .. interactive_command .. '<CR>'
4end
5
6return {
7 cmd = cmd,
8}

neovim/lua/bugabinga/std/keymap.lua

Added
new file mode 100644

+75 / −0 text lines

1-- this is a facade API over keybindings, so that i can more freely experiments
2-- with different plugins and newer neovim APIs.
3--
4-- this module returns 2 functions.
5-- the first takes a keybinding and collects them.
6-- the second function converts the declared keybindings into actual mappings
7-- neovim and other plugins.
8--
9-- a keybinging is expected to have the following structure:
10-- {
11-- name = "Open Command Center",
12-- description = "Opens the Command Center with Telescope to show all available keybound commands.",
13-- category = nil,
14-- mode = "n",
15-- map = "<C-P>",
16-- map_options = { silent = true, noremap = true },
17-- command = function() require'telescope'.run("command_center") end,
18-- }
19--
20-- use the first function throughout the configuration to declare keybindings.
21-- call the second function at the end of the configuration to actually apply
22-- the keybindings to the system.
24local want = require 'bugabinga.std.want'
26local keybindings = {}
28local function add(keybinding)
29 table.insert(keybindings, keybinding)
30end
32-- the goal of this function is to process a list of keybinds.
33-- those keybinds need to:
34-- * be added to Command Center
35-- * be transformed into a tree and feed to the Hydra
36-- * left-over keybinds, that do not form a tree, need to be mapped manually
37local function build()
38 -- registering keybinds in command center.
39 -- this will NOT YET apply the keymap in neovim.
40 want { 'command_center' }(function(command_center)
41 local converted_bindings_for_command_center = {}
42 --example of a command-center keybind table
43 --{
44 -- description = "Open git diffview",
45 -- cmd = "<CMD>DiffviewOpen<CR>",
46 -- keybindings = { "n", "<leader>gd", noremap },
47 -- category = "git",
48 -- }
49 for _, keybind in pairs(keybindings) do
50 local converted = {
51 description = keybind.description,
52 category = keybind.category,
53 cmd = keybind.command,
54 keybindings = { keybind.mode, keybind.map, keybind.map_options },
55 }
56 table.insert(converted_bindings_for_command_center, converted)
57 end
58 command_center.add(converted_bindings_for_command_center, command_center.mode.ADD_ONLY)
59 end)
61 -- FIXME feed the beast!
63 -- Manually map the left-over keybindings with the neovim api.
64 -- It is assumed, that all keybinds eaten by the Hydra are removed from
65 -- `keybindings`.
67 for _, keybind in pairs(keybindings) do
68 vim.keymap.set(keybind.mode, keybind.map, keybind.command, keybind.map_options)
69 end
70end
72return {
73 add = add,
74 build = build,
75}

neovim/lua/bugabinga/std/project.lua

Added
new file mode 100644

+120 / −0 text lines

1local function determine_root(directory, markers, root)
2 local dirname = function(path)
3 return vim.fn.fnamemodify(path, ':h')
4 end
5 local exists = function(path)
6 return vim.loop.fs_stat(path)
7 end
8 local directory_scores = {}
9 local current_distance_to_buffer = 0
10 --traverse the path to root and check every directory on the way for files
11 --that are named like the given markers. if markers exist, add those to the
12 --score of the directory. scores of all directories with markers will be
13 --processes later.
14 --the root itself never gets checked for markers!
15 -- stop if we reached the user defined root instead of the file system root
16 while directory ~= root do
17 local score = {
18 path = directory,
19 marker_count = 0,
20 distance_to_buffer_file = current_distance_to_buffer,
21 markers = {},
22 }
24 for _, marker in ipairs(markers) do
25 local marker_path = directory .. '/' .. marker.name
26 if exists(marker_path) then
27 score.marker_count = score.marker_count + marker.weight
28 table.insert(score.markers, marker_path)
29 end
30 end
32 if score.marker_count > 0 then
33 table.insert(directory_scores, score)
34 end
36 directory = dirname(directory)
37 current_distance_to_buffer = current_distance_to_buffer + 1
38 end
40 local project_root = nil
41 local max_likelyhood = 0
42 -- the project root is most likely the directory with the highest marker count
43 -- and distance to current buffer.
44 -- because if there are markers further away from the buffer than other markers,
45 -- then it is most likely a nested project structure (multi-module).
46 -- in those cases we are looking for the root project folder, instead the nearest
47 -- child project root folder.
48 for _, score in ipairs(directory_scores) do
49 local likelihood = score.marker_count + score.distance_to_buffer_file
50 if likelihood > max_likelyhood then
51 max_likelyhood = likelihood
52 project_root = score.path
53 end
54 end
55 return project_root
56end
58--- Determines the project root directory of the current buffer file. A "project" is not clearly defined for all programming languages, so this function uses a heuristic approach.
59---@param custom_markers table list of markers. a marker is a table with `name` and `weight` key. `name` can be a file or directory name, that indicates, that if a file/folder with that name exists in a directory, that directory is likely to be a project root. `weight` is a means to express confidence in that likelihood. Values should be between 1 and 3. Internally, there are some project-agnostic markers defined (e.g. README, LICENSE, .git, ...) that will be merged with `custom_markers`.
60---@param custom_root string Given a `custom_root` the path traversal can be aborted before the filesystem root is reached. A useful value might be `~` for example, if your source code is always in your home directory. the root directory itself does __not__ get searched for markers!
61---@return string project_root The project root of the current buffer, or `nil`, if none could be determined.
62local function determine_project_root(custom_markers, custom_root)
63 -- glob expands user defined root and checks, that it exists
64 local root = vim.fn.glob(custom_root, false, false)
65 if root == '' then
66 vim.notify('the custom root ' .. custom_root .. ' does not exist!', error)
67 return nil
68 end
69 -- define some language-independent markers
70 local markers = {
71 { name = '.git', weight = 1 },
72 { name = '.gitignore', weight = 1 },
73 { name = '.svn', weight = 1 },
74 { name = 'justfile', weight = 1 },
75 { name = 'Jenkinsfile', weight = 1 },
76 { name = '.editorconfig', weight = 1 },
77 { name = 'LICENSE', weight = 1 },
78 { name = 'LICENSE.txt', weight = 1 },
79 { name = 'COPYING', weight = 1 },
80 { name = 'README', weight = 1 },
81 { name = 'README.md', weight = 1 },
82 }
83 markers = vim.tbl_deep_extend('force', markers, custom_markers)
85 local buffer_name = vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf())
86 local directory_name = vim.fn.fnamemodify(buffer_name, ':p:h')
87 return determine_root(directory_name, markers, root)
88end
90local java_markers = {
91 { name = '.idea', weight = 2 },
92 { name = '.classpath', weight = 2 },
93 { name = '.settings', weight = 2 },
94 { name = '.project', weight = 2 },
95 { name = 'target', weight = 2 },
96 { name = 'pom.xml', weight = 2 },
97 { name = 'mvnw', weight = 3 },
98 { name = '.mvn', weight = 3 },
99 { name = 'mvnw.cmd', weight = 3 },
100 { name = 'build.gradle', weight = 2 },
101 { name = 'gradle.properties', weight = 3 },
102 { name = 'settings.gradle', weight = 3 },
103 { name = 'gradlew', weight = 3 },
104 { name = 'gradlew.bat', weight = 3 },
105}
106local function determine_java_project_root(user_root)
107 return determine_project_root(java_markers, user_root)
108end
110local function is_java_project_root(directory, user_root)
111 -- avoid determine_project_root to __not__ check non-java markers
112 return determine_root(directory, java_markers, user_root) ~= nil
113end
115return {
116 is_java_project_root = is_java_project_root,
117 determine_root = determine_root,
118 determine_project_root = determine_project_root,
119 determine_java_project_root = determine_java_project_root,
120}

neovim/lua/bugabinga/std/string.lua

Added
new file mode 100644

+7 / −0 text lines

1local function is_blank(string)
2 return string == nil or string == '' or vim.trim(string) == ''
3end
4
5return {
6 is_blank = is_blank,
7}

neovim/lua/bugabinga/std/want.lua

Added
new file mode 100644

+24 / −0 text lines

1--- attempts to import modules with the given names.
2---@param module_names table name or list of names, or a function that returns those
3---@return function function that takes a function that takes in the modules listed by `module_names`
4return function(module_names)
5 return function(block)
6 local loaded_modules = {}
7 local failed_modules = {}
8 for _, name in pairs(module_names) do
9 local status_ok, module = pcall(require, name)
10 if status_ok then
11 table.insert(loaded_modules, module)
12 else
13 table.insert(failed_modules, module)
14 end
15 end
16 for _, module in pairs(failed_modules) do
17 vim.notify('the required module ' .. module .. ' could not be found', 'error')
18 end
19 if #failed_modules > 0 then
20 return
21 end
22 return block(unpack(loaded_modules))
23 end
24end

neovim/lua/bugabinga/surround.lua

Added
new file mode 100644

+5 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'nvim-surround' }(function(surround)
3 --FIXME: add bindings, that do not conflict with fast navigation plugin
4 surround.setup {}
5end)

neovim/lua/bugabinga/terminal.lua

Added
new file mode 100644

+43 / −0 text lines

1local auto = require 'bugabinga.std.auto'
2local want = require 'bugabinga.std.want'
3--FIXME use keymap facade
4want { 'toggleterm' }(function(toggleterm)
5 toggleterm.setup {
6 size = 20,
7 open_mapping = [[<LEADER>t]],
8 hide_numbers = true,
9 shade_filetypes = {},
10 shade_terminals = true,
11 shading_factor = 2,
12 start_in_insert = true,
13 insert_mappings = false,
14 persist_size = true,
15 direction = 'float',
16 close_on_exit = true,
17 shell = vim.o.shell,
18 float_opts = {
19 border = 'curved',
20 winblend = 0,
21 highlights = {
22 border = 'Normal',
23 background = 'Normal',
24 },
25 },
26 }
28 local function set_terminal_keymaps()
29 local opts = { noremap = true }
30 vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts)
31 vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts)
32 vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts)
33 vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts)
34 vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts)
35 end
37 auto 'set_terminal_keymaps' {
38 description = 'Set more natural keybindings in terminal',
39 events = 'TermOpen',
40 pattern = 'term://*',
41 callback = set_terminal_keymaps,
42 }
43end)

neovim/lua/bugabinga/todo.lua

Added
new file mode 100644

+10 / −0 text lines

1local want = require 'bugabinga.std.want'
2want { 'todo-comments' }(function(todo)
3 -- HACK: #104 Invalid in command-line window
4 local hl = require 'todo-comments.highlight'
5 local highlight_win = hl.highlight_win
6 hl.highlight_win = function(win, force)
7 pcall(highlight_win, win, force)
8 end
9 todo.setup {}
10end)

neovim/lua/bugabinga/treesitter.lua

Added
new file mode 100644

+208 / −0 text lines

1local want = require 'bugabinga.std.want'
2want {
3 'nvim-treesitter.install',
4 'nvim-treesitter.configs',
5 'nvim-treesitter.parsers',
6 'hlargs',
7 'neogen',
8}(function(install, configs, parsers, hlargs, neogen)
9 install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
10 install.prefer_git = true
12 configs.setup {
13 -- A list of parser names, or "all"
14 ensure_installed = {
15 'c',
16 'bash',
17 'cmake',
18 'comment',
19 'cpp',
20 'css',
21 'devicetree',
22 'dockerfile',
23 'dot',
24 'help',
25 'html',
26 'http',
27 'java',
28 'javascript',
29 'json',
30 'json5',
31 'jsonc',
32 'llvm',
33 'lua',
34 'make',
35 'markdown',
36 'ninja',
37 'proto',
38 'python',
39 'query',
40 'regex',
41 'rust',
42 'toml',
43 'vim',
44 'yaml',
45 'zig',
46 },
47 -- Install parsers synchronously (only applied to `ensure_installed`)
48 sync_install = false,
49 -- List of parsers to ignore installing (for "all")
50 ignore_install = {},
52 highlight = {
53 -- `false` will disable the whole extension
54 enable = true,
56 -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
57 -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
58 -- the name of the parser)
59 -- list of language that will be disabled
60 disable = {},
62 -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
63 -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
64 -- Using this option may slow down your editor, and you may see some duplicate highlights.
65 -- Instead of true it can also be a list of languages
66 additional_vim_regex_highlighting = false,
67 },
68 incremental_selection = {
69 enable = true,
70 keymaps = {
71 init_selection = 'gnn',
72 node_incremental = 'grn',
73 scope_incremental = 'grc',
74 node_decremental = 'grm',
75 },
76 },
77 -- indent on = with TS
78 indent = {
79 enable = true,
80 },
81 -- These features are mostly useful when there is treesitter parser, but no
82 -- LSP.
83 -- FIXME harmonize the keybinds with LSP equivalents
84 refactor = {
85 highlight_definitions = {
86 enable = true,
87 -- Set to false if you have an `updatetime` of ~100.
88 clear_on_cursor_move = false,
89 },
90 smart_rename = {
91 enable = true,
92 keymaps = {
93 smart_rename = 'grr',
94 },
95 },
96 navigation = {
97 enable = true,
98 keymaps = {
99 goto_definition = 'gnd',
100 list_definitions = 'gnD',
101 list_definitions_toc = 'gO',
102 goto_next_usage = '<a-*>',
103 goto_previous_usage = '<a-#>',
104 },
105 },
106 },
107 textsubjects = {
108 enable = true,
109 prev_selection = '<Down>', -- (Optional) keymap to select the previous selection
110 keymaps = {
111 ['<Up>'] = 'textsubjects-smart',
112 ['<Right>'] = 'textsubjects-container-outer',
113 ['<Left>'] = 'textsubjects-container-inner',
114 },
115 },
116 textobjects = {
117 select = {
118 enable = true,
119 -- Automatically jump forward to textobj, similar to targets.vim
120 lookahead = true,
121 keymaps = {
122 -- You can use the capture groups defined in textobjects.scm
123 ['af'] = '@function.outer',
124 ['if'] = '@function.inner',
125 ['ac'] = '@class.outer',
126 ['ic'] = '@class.inner',
127 },
128 },
129 swap = {
130 enable = true,
131 swap_next = {
132 ['<leader>a'] = '@parameter.inner',
133 },
134 swap_previous = {
135 ['<leader>A'] = '@parameter.inner',
136 },
137 },
138 move = {
139 enable = true,
140 set_jumps = true, -- whether to set jumps in the jumplist
141 goto_next_start = {
142 [']m'] = '@function.outer',
143 [']]'] = '@class.outer',
144 },
145 goto_next_end = {
146 [']M'] = '@function.outer',
147 [']['] = '@class.outer',
148 },
149 goto_previous_start = {
150 ['[m'] = '@function.outer',
151 ['[['] = '@class.outer',
152 },
153 goto_previous_end = {
154 ['[M'] = '@function.outer',
155 ['[]'] = '@class.outer',
156 },
157 },
158 lsp_interop = {
159 enable = true,
160 border = 'none',
161 peek_definition_code = {
162 ['<leader>df'] = '@function.outer',
163 ['<leader>dc'] = '@class.outer',
164 },
165 },
166 },
167 playground = {
168 enable = true,
169 disable = {},
170 updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
171 persist_queries = false, -- Whether the query persists across vim sessions
172 keybindings = {
173 toggle_query_editor = 'o',
174 toggle_hl_groups = 'i',
175 toggle_injected_languages = 't',
176 toggle_anonymous_nodes = 'a',
177 toggle_language_display = 'I',
178 focus_language = 'f',
179 unfocus_language = 'F',
180 update = 'R',
181 goto_node = '<cr>',
182 show_help = '?',
183 },
184 },
185 context_commentstring = {
186 enable = true,
187 },
188 -- autoclose and rename tags
189 autotag = {
190 enable = true,
191 },
192 }
194 parsers.get_parser_configs().just = {
195 install_info = {
196 url = 'https://github.com/IndianBoy42/tree-sitter-just', -- local path or git repo
197 files = { 'src/parser.c', 'src/scanner.cc' },
198 branch = 'main',
199 },
200 maintainers = { '@IndianBoy42' },
201 }
203 -- highlight function arguments
204 hlargs.setup()
206 -- generate doc comment annotations
207 neogen.setup()
208end)

neovim/lua/bugabinga/windows.lua

Added
new file mode 100644

+26 / −0 text lines

1local want = require 'bugabinga.std.want'
2want {
3 'focus',
4 'stabilize',
5 'shade',
6} (function(focus, stabilize, shade)
7 local excluded_filetypes = { 'toggleterm', 'qf', 'help', 'Trouble', 'neo-tree' }
8
9 focus.setup {
10 excluded_filetypes = excluded_filetypes,
11 excluded_buftypes = { 'nofile', 'prompt', 'popup', 'help', 'terminal' },
12 compatible_filetrees = { 'neo-tree' },
13 cursorline = false,
14 signcolumn = false,
15 }
17 stabilize.setup()
19 -- when shade is enabled with neovide (MULTIGRID), everything is blurry
20 if not vim.g.neovide then
21 shade.setup {
22 overlay_opacity = 42,
23 exclude_filetypes = excluded_filetypes,
24 }
25 end
26end)

neovim/neovim.toml

Added
new file mode 100644

+31 / −0 text lines

1[selene]
2base = "lua51"
3name = "neovim"
4
5[vim]
6any = true
7
8[[assert.args]]
9type = "bool"
11[[assert.args]]
12type = "string"
13required = false
15[[after_each.args]]
16type = "function"
18[[before_each.args]]
19type = "function"
21[[describe.args]]
22type = "string"
24[[describe.args]]
25type = "function"
27[[it.args]]
28type = "string"
30[[it.args]]
31type = "function"

neovim/selene.toml

Added
new file mode 100644

+5 / −0 text lines

1std = "neovim"
2
3[rules]
4global_usage = "allow"
5multiple_statements = "allow"

neovim/startuptime/pop-os_2022_06_27_22_55_04.txt

Added
new file mode 100644

+94 / −0 text lines

1Extra options: []
2Measured: 100 times
3
4Total Average: 331.172950 msec
5Total Max: 352.149000 msec
6Total Min: 306.252000 msec
7
8 AVERAGE MAX MIN
9---------------------------------
10307.521190 330.974000 284.884000: /home/oli/.config/nvim/init.lua
11 3.422020 3.642000 3.276000: loading packages
12 2.369060 2.458000 2.306000: reading ShaDa
13 2.077570 2.180000 2.017000: loading after plugins
14 2.012750 2.855000 1.453000: sourcing vimrc file(s)
15 1.737830 1.806000 1.679000: loading rtp plugins
16 1.126530 3.355000 0.622000: BufEnter autocommands
17 1.070670 3.343000 0.555000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
18 1.004860 2.905000 0.531000: opening buffers
19 0.856200 1.747000 0.468000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 0.625880 1.865000 0.317000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 0.554460 0.777000 0.359000: init lua interpreter
22 0.482870 2.511000 0.221000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 0.478990 0.907000 0.285000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
24 0.465800 0.697000 0.309000: init highlight
25 0.389180 0.719000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 0.349130 0.454000 0.331000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 0.328630 2.387000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 0.296410 0.474000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 0.274270 0.382000 0.177000: inits 1
30 0.263810 0.517000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 0.229890 0.545000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 0.202600 0.389000 0.115000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 0.201010 0.367000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
34 0.193030 0.258000 0.124000: locale set
35 0.187260 0.372000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
36 0.168260 0.358000 0.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 0.153220 0.238000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 0.150440 0.426000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
39 0.140270 0.461000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
40 0.131330 1.773000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 0.114560 0.285000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 0.114290 2.125000 0.054000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
43 0.099120 0.112000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
44 0.094840 0.102000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
45 0.092760 0.104000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
46 0.067260 0.159000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 0.062900 0.149000 0.056000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
48 0.062610 0.075000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
49 0.057590 0.134000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 0.051430 0.128000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 0.051260 0.150000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 0.046760 0.060000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 0.043600 0.140000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
54 0.042590 0.071000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 0.042170 0.050000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 0.041530 0.050000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
57 0.038980 0.056000 0.027000: expanding arguments
58 0.037830 0.050000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 0.037140 0.105000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua
60 0.036810 0.047000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 0.035760 0.048000 0.026000: inits 2
62 0.032930 0.053000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
63 0.031470 0.059000 0.021000: init default autocommands
64 0.026690 0.036000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
65 0.026600 0.036000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
66 0.025910 0.034000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 0.025600 0.047000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
68 0.024870 0.034000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
69 0.024690 0.047000 0.017000: init default mappings
70 0.023230 0.035000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
71 0.021890 0.028000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
72 0.018360 0.023000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
73 0.018290 0.022000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 0.017450 0.020000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
75 0.017320 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 0.015020 0.024000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
77 0.013280 0.014000 0.012000: clearing screen
78 0.011600 0.027000 0.007000: window checked
79 0.011560 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 0.011090 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
81 0.011090 0.016000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
82 0.010850 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
83 0.010170 0.023000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
84 0.010040 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
85 0.010020 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 0.008590 0.010000 0.008000: inits 3
87 0.007350 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
88 0.007160 0.020000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
89 0.007110 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 0.006290 0.012000 0.003000: --- NVIM STARTING ---
91 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
92 0.006030 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
93 0.003740 0.005000 0.002000: parsing arguments
94 0.002520 0.004000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_06_27_23_03_04.txt

Added
new file mode 100644

+94 / −0 text lines

1Extra options: [init.lua]
2Measured: 100 times
3
4Total Average: 330.615290 msec
5Total Max: 355.357000 msec
6Total Min: 301.008000 msec
7
8 AVERAGE MAX MIN
9---------------------------------
10307.381920 334.373000 279.389000: /home/oli/.config/nvim/init.lua
11 3.440430 4.784000 3.275000: loading packages
12 2.353600 2.481000 2.296000: reading ShaDa
13 2.075510 2.170000 1.997000: loading after plugins
14 2.074950 2.849000 1.466000: sourcing vimrc file(s)
15 1.746160 1.990000 1.676000: loading rtp plugins
16 0.990800 2.497000 0.589000: BufEnter autocommands
17 0.965770 2.395000 0.596000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
18 0.962600 3.130000 0.571000: opening buffers
19 0.806170 1.760000 0.514000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 0.602480 1.832000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 0.574290 0.770000 0.356000: init lua interpreter
22 0.474910 0.687000 0.308000: init highlight
23 0.457310 0.951000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
24 0.427760 1.232000 0.228000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
25 0.372910 0.744000 0.214000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 0.349060 0.476000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 0.315580 2.557000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 0.288960 0.469000 0.225000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 0.283110 0.378000 0.174000: inits 1
30 0.248550 0.509000 0.114000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 0.228050 0.620000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 0.198670 0.419000 0.117000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 0.195630 0.288000 0.119000: locale set
34 0.193340 0.306000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 0.178010 0.463000 0.098000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
36 0.162760 0.304000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 0.155470 2.230000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
38 0.152080 0.197000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
39 0.147940 0.466000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
40 0.112340 0.321000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 0.108000 0.269000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 0.098540 0.125000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 0.096280 0.186000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 0.093590 0.121000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 0.091060 0.205000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 0.064190 0.173000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 0.062610 0.082000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 0.061880 0.085000 0.057000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 0.054680 0.127000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 0.052210 0.209000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 0.049170 0.110000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 0.048380 0.066000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 0.043490 0.086000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
54 0.042190 0.053000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
55 0.041140 0.052000 0.038000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
56 0.040890 0.075000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
57 0.040050 0.055000 0.026000: expanding arguments
58 0.038620 0.049000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 0.038000 0.051000 0.026000: inits 2
60 0.036540 0.049000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 0.034590 0.101000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 0.032030 0.045000 0.020000: parsing arguments
63 0.030900 0.060000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
64 0.030260 0.044000 0.019000: init default autocommands
65 0.027450 0.035000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 0.026320 0.048000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 0.026220 0.042000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
68 0.025520 0.036000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
69 0.024770 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
70 0.024310 0.034000 0.016000: init default mappings
71 0.023160 0.027000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
72 0.022360 0.034000 0.020000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
73 0.018510 0.029000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 0.018310 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 0.016870 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
76 0.016690 0.028000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
77 0.014930 0.016000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 0.013720 0.026000 0.012000: clearing screen
79 0.011690 0.020000 0.007000: window checked
80 0.011570 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
81 0.011180 0.016000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
82 0.011130 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
83 0.011100 0.015000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
84 0.010190 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
85 0.010150 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 0.009940 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 0.008680 0.012000 0.008000: inits 3
88 0.007550 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 0.007100 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 0.007040 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 0.006270 0.012000 0.003000: --- NVIM STARTING ---
92 0.006250 0.019000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
93 0.006200 0.015000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
94 0.002470 0.003000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_06_27_23_18_10.txt

Added
new file mode 100644

+94 / −0 text lines

1Extra options: [init.lua]
2Measured: 100 times
3
4Total Average: 330.425160 msec
5Total Max: 353.171000 msec
6Total Min: 306.636000 msec
7
8 AVERAGE MAX MIN
9---------------------------------
10307.146770 332.320000 285.215000: /home/oli/.config/nvim/init.lua
11 3.417290 3.626000 3.284000: loading packages
12 2.347780 2.534000 2.299000: reading ShaDa
13 2.076240 2.368000 1.996000: loading after plugins
14 2.030220 2.687000 1.435000: sourcing vimrc file(s)
15 1.742430 1.887000 1.693000: loading rtp plugins
16 1.027430 3.641000 0.572000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
17 1.022760 2.227000 0.594000: BufEnter autocommands
18 0.970310 3.310000 0.530000: opening buffers
19 0.797970 1.728000 0.526000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 0.632780 2.606000 0.320000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 0.560600 0.775000 0.362000: init lua interpreter
22 0.466050 0.680000 0.308000: init highlight
23 0.440650 1.171000 0.227000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
24 0.436120 0.912000 0.268000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
25 0.373980 0.766000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 0.347830 0.475000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 0.302180 0.884000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 0.287140 0.487000 0.224000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 0.279180 0.367000 0.176000: inits 1
30 0.251830 0.573000 0.137000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 0.251160 2.157000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 0.200730 2.431000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
33 0.198670 0.267000 0.119000: locale set
34 0.197260 0.352000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 0.194680 0.410000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
36 0.161590 0.287000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 0.160300 2.336000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
38 0.150740 0.216000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
39 0.149110 0.397000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
40 0.114480 0.321000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 0.107320 0.252000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 0.098290 0.114000 0.095000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 0.093800 0.115000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 0.093220 0.106000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 0.088560 0.278000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 0.063790 0.174000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 0.062230 0.074000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 0.061600 0.083000 0.058000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 0.053980 0.135000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 0.051870 0.141000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 0.048220 0.077000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
52 0.047910 0.117000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
53 0.042600 0.093000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
54 0.042500 0.059000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 0.042050 0.048000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 0.040890 0.047000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
57 0.039820 0.069000 0.027000: expanding arguments
58 0.038420 0.062000 0.026000: inits 2
59 0.038000 0.047000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
60 0.037020 0.053000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 0.035180 0.116000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 0.031620 0.057000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
63 0.031240 0.045000 0.020000: parsing arguments
64 0.030480 0.045000 0.020000: init default autocommands
65 0.027760 0.037000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 0.026370 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 0.026020 0.035000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
68 0.025180 0.037000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
69 0.024910 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
70 0.024180 0.042000 0.016000: init default mappings
71 0.023240 0.032000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
72 0.022390 0.031000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
73 0.018430 0.025000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 0.018260 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 0.016700 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 0.016490 0.018000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
77 0.014980 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 0.013480 0.016000 0.012000: clearing screen
79 0.011540 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 0.011510 0.028000 0.007000: window checked
81 0.011180 0.023000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
82 0.011160 0.015000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
83 0.011140 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
84 0.010120 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
85 0.010100 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 0.009850 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 0.008620 0.011000 0.008000: inits 3
88 0.007590 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 0.007020 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 0.006950 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 0.006710 0.026000 0.003000: --- NVIM STARTING ---
92 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
93 0.006060 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
94 0.002450 0.004000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_07_01_08_21_04.txt

Added
new file mode 100644

+94 / −0 text lines

1Extra options: [init.lua]
2Measured: 100 times
3
4Total Average: 376.647480 msec
5Total Max: 525.463000 msec
6Total Min: 326.733000 msec
7
8 AVERAGE MAX MIN
9---------------------------------
10351.036030 495.908000 302.524000: /home/oli/.config/nvim/init.lua
11 3.742540 5.409000 3.379000: loading packages
12 2.315700 3.534000 2.103000: loading after plugins
13 2.157970 3.112000 1.969000: reading ShaDa
14 1.926810 2.824000 1.760000: loading rtp plugins
15 1.732090 2.865000 1.497000: sourcing vimrc file(s)
16 1.463530 5.282000 0.632000: BufEnter autocommands
17 1.242990 4.378000 0.628000: opening buffers
18 1.236160 3.062000 0.580000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 0.976180 2.051000 0.492000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 0.798470 4.448000 0.336000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 0.556210 2.669000 0.281000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
22 0.536990 1.617000 0.253000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 0.469820 1.465000 0.245000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
24 0.452370 0.770000 0.365000: init lua interpreter
25 0.410070 1.413000 0.167000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
26 0.386820 0.582000 0.346000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 0.370270 0.665000 0.313000: init highlight
28 0.336400 0.943000 0.233000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 0.313920 0.957000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
30 0.288870 0.811000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
31 0.261680 3.093000 0.162000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
32 0.246690 0.701000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 0.237170 0.375000 0.184000: inits 1
34 0.217510 0.467000 0.103000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
35 0.212330 2.398000 0.075000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
36 0.186570 0.619000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
37 0.169360 0.275000 0.143000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 0.164370 0.266000 0.115000: locale set
39 0.148910 0.499000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
40 0.148160 0.376000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
41 0.131150 0.386000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 0.106800 0.237000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
43 0.105320 0.154000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 0.103450 0.158000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
45 0.101260 0.176000 0.091000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
46 0.083850 0.352000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 0.070640 0.114000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 0.070380 0.107000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 0.070220 0.243000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 0.065360 0.244000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 0.057890 0.191000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 0.054230 0.172000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
53 0.050080 0.115000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
54 0.049010 0.073000 0.043000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
55 0.045760 0.077000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 0.044620 0.219000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
57 0.043640 0.071000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
58 0.041980 0.060000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 0.041860 0.085000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
60 0.040470 0.077000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
61 0.037150 0.060000 0.026000: expanding arguments
62 0.033490 0.068000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
63 0.033420 0.063000 0.026000: inits 2
64 0.031720 0.074000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
65 0.031040 0.063000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
66 0.028660 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 0.027780 0.045000 0.019000: init default autocommands
68 0.027310 0.055000 0.021000: parsing arguments
69 0.025100 0.114000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
70 0.024740 0.054000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
71 0.023080 0.040000 0.019000: /home/oli/.local/share/nvim/runtime/indent.vim
72 0.021220 0.036000 0.017000: init default mappings
73 0.021000 0.033000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 0.020850 0.043000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 0.019810 0.037000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 0.018630 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
77 0.015910 0.023000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 0.015380 0.031000 0.012000: clearing screen
79 0.012960 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 0.012860 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
81 0.012610 0.026000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
82 0.011340 0.018000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
83 0.011110 0.018000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
84 0.010840 0.030000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
85 0.010500 0.025000 0.008000: inits 3
86 0.010310 0.017000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 0.008960 0.016000 0.007000: window checked
88 0.008130 0.014000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 0.007550 0.016000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 0.007370 0.015000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 0.007040 0.013000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
92 0.006620 0.011000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
93 0.005460 0.011000 0.003000: --- NVIM STARTING ---
94 0.003830 0.023000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_07_01_16_38_38.txt

Added
new file mode 100644

+93 / −0 text lines

1Extra options: [init.lua]
2Measured: 100 times
3
4Total Average: 341.004210 msec
5Total Max: 403.406000 msec
6Total Min: 317.044000 msec
7
8 AVERAGE MAX MIN
9---------------------------------
10318.483740 380.835000 296.484000: /home/oli/.config/nvim/init.lua
11 3.480510 3.886000 3.319000: loading packages
12 2.172440 2.514000 2.091000: loading after plugins
13 1.936800 2.033000 1.880000: reading ShaDa
14 1.909540 3.153000 1.522000: sourcing vimrc file(s)
15 1.825230 2.390000 1.765000: loading rtp plugins
16 1.051810 3.083000 0.663000: BufEnter autocommands
17 0.960430 2.951000 0.500000: opening buffers
18 0.947800 3.454000 0.587000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 0.767920 1.813000 0.535000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 0.562110 1.488000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 0.502430 0.837000 0.364000: init lua interpreter
22 0.450000 2.434000 0.250000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 0.418120 0.671000 0.313000: init highlight
24 0.416710 0.879000 0.269000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
25 0.364690 0.473000 0.347000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
26 0.350220 0.775000 0.226000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
27 0.301220 2.062000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 0.300470 2.214000 0.230000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 0.257260 0.397000 0.184000: inits 1
30 0.243210 0.514000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 0.232300 2.013000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 0.208530 1.590000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 0.193560 0.444000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
34 0.189110 0.392000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 0.166210 0.258000 0.114000: locale set
36 0.163090 1.994000 0.084000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
37 0.151430 0.215000 0.144000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 0.131820 0.379000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
39 0.112240 0.278000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
40 0.109450 0.287000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
41 0.103660 0.265000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
42 0.100050 0.142000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 0.096750 0.131000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 0.094660 0.118000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 0.085260 0.215000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 0.065160 0.082000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
47 0.065080 0.089000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 0.058500 0.141000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
49 0.052450 0.182000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 0.047720 0.113000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 0.046660 0.061000 0.044000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
52 0.044930 0.061000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 0.043920 0.133000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
54 0.042850 0.069000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 0.041400 0.052000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
56 0.040950 0.084000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
57 0.038860 0.052000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
58 0.038430 0.067000 0.026000: expanding arguments
59 0.036800 0.060000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
60 0.034500 0.054000 0.026000: inits 2
61 0.031660 0.096000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 0.029740 0.100000 0.021000: parsing arguments
63 0.029430 0.056000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
64 0.028650 0.051000 0.020000: init default autocommands
65 0.027340 0.046000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 0.027150 0.044000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
67 0.026340 0.031000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
68 0.025950 0.037000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
69 0.023300 0.057000 0.018000: init default mappings
70 0.022770 0.030000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
71 0.022380 0.032000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
72 0.022370 0.041000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
73 0.018890 0.032000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
74 0.017380 0.024000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
75 0.017090 0.027000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
76 0.014820 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
77 0.013950 0.021000 0.012000: clearing screen
78 0.012280 0.020000 0.012000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
79 0.011680 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 0.011290 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
81 0.010940 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
82 0.010220 0.016000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
83 0.010040 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
84 0.009920 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
85 0.009680 0.018000 0.007000: window checked
86 0.009150 0.018000 0.008000: inits 3
87 0.007530 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
88 0.007040 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
89 0.007010 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
90 0.006340 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
91 0.006190 0.009000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
92 0.005530 0.012000 0.003000: --- NVIM STARTING ---
93 0.002910 0.004000 0.002000: editing files in windows

neovim/stylua.toml

Added
new file mode 100644

+6 / −0 text lines

1column_width = 120
2line_endings = "Unix"
3indent_type = "Spaces"
4indent_width = 2
5quote_style = "AutoPreferSingle"
6call_parentheses = "None"

nushell/completions/svn-completions.nu

Added
new file mode 100644

+135 / −0 text lines

1def "complete svn subcommands" [] {
2 ^svn help
3 | lines
4 | skip until { | line | $line | str starts-with "Available subcommands:" }
5 | skip 1
6 | each { |line| $line | str trim }
7 | take until { |line| $line | empty? }
8 | split column " "
9 | get column1
10}
12# TODO: parse xml output
14def "complete svn add paths" [] {
15 ^svn status --depth files
16 | lines
17 | parse "{mode} {file}"
18 | str trim
19 | where mode == ?
20 | get file
21}
23def "complete svn revert paths" [] {
24 ^svn status --depth files
25 | lines
26 | parse "{mode} {file}"
27 | where mode == M
28 | str trim
29 | get file
30}
32def "complete svn depth" [] { ['empty', 'files', 'immediates', 'infinity'] }
34def "complete svn changelists" [] {
35 ^svn status --depth files
36 | lines
37 | parse "--- Changelist '{changelist}':"
38 | get --ignore-errors changelist
39}
41# Subversion is a tool for version control.
42# For additional information, see http://subversion.apache.org/
43export extern svn [
44 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
45 --version # to see the program version and RA modules
46 --quiet # to see just the version number
47 --verbose # to see dependency versions as well
48]
50# help (?, h): Describe the usage of this program or its subcommands.
51# usage: help [SUBCOMMAND...]
52export extern "svn help" [
53 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
54 --verbose(-v) # also show experimental subcommands and options
55]
57# FIXME:
58# SVN has short options with double dashes: --changelist(--cl).
59# This is not allowed in nu.
61# FIXME:
62# Multiline doccomments will be rendered without the newlines.
64# Print the status of working copy files and directories.
65export extern "svn status" [
66 ...paths: path # PATHs
67 --show-updates(-u) # display update information
68 --verbose(-v) # print extra information
69 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
70 --revision(-r): string # ARG (some commands also take ARG1:ARG2 range)
71 # A revision argument can be one of:
72 # NUMBER revision number
73 # '{' DATE '}' revision at start of the date
74 # 'HEAD' latest in repository
75 # 'BASE' base rev of item's working copy
76 # 'COMMITTED' last commit at or before BASE
77 # 'PREV' revision just before COMMITTED
78 --quiet(-q) # don't print unversioned items
79 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
80 --incremental # give output suitable for concatenation
81 --xml # output in XML
82 --ignore-externals # ignore externals definitions
83 --changelist:string@"complete svn changelists" # operate only on members of changelist ARG
84]
86# FIXME: https://github.com/nushell/nushell/issues/5012
87# rest parameters do not play well with completions yet
88# the `paths` parameter should be `...paths`
90# Put new files and directories under version control.
91export extern "svn add" [
92 paths: path@"complete svn add paths" # unversioned PATHs for addition
93 --targets: path # pass contents of file ARG as additional args
94 --non-recursive(-N) # obsolete; same as --depth=empty
95 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
96 --quiet(-q) # print nothing, or only summary information
97 --force # ignore already versioned paths
98 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
99 --auto-props # enable automatic properties
100 --no-auto-props # disable automatic properties
101 --parents # add intermediate parents
102]
104# Restore pristine working copy state (undo local changes).
105export extern "svn revert" [
106 paths: path@"complete svn revert paths"
107 --targets: path # pass contents of file as additional args
108 --recursive(-R) # descend recursively, same as --depth=infinity
109 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
110 --quiet(-q) # print nothing, or only summary information
111 --changelist: string@"complete svn changelists" # operate only on members of changelist ARG
112 --remove-added # reverting an added item will remove it from disk
113]
115# FIXME
116# SVN uses aliases for subcommands. E.g. `co` for `checkout`.
117# How to express that with nu extern commands?
119# Check out a working copy from a repository.
120export extern "svn checkout" [
121 ...url_with_rev:string # source
122 path: path # destination
123 --revision(-r) # ARG (some commands also take ARG1:ARG2 range)
124 # A revision argument can be one of:
125 # NUMBER revision number
126 # '{' DATE '}' revision at start of the date
127 # 'HEAD' latest in repository
128 # 'BASE' base rev of item's working copy
129 # 'COMMITTED' last commit at or before BASE
130 # 'PREV' revision just before COMMITTED
131 --quiet(-q) # print nothing, or only summary information
132 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
133 --force # force operation to run
134 --ignore-externals # ignore externals definitions
135]No final newline

nushell/completions/svn.complete.nu

Deleted
deleted file mode 100644

+0 / −135 text lines

1def "complete svn subcommands" [] {
2 ^svn help
3 | lines
4 | skip until { | line | $line | str starts-with "Available subcommands:" }
5 | skip 1
6 | each { |line| $line | str trim }
7 | take until { |line| $line | empty? }
8 | split column " "
9 | get column1
10}
12# TODO: parse xml output
14def "complete svn add paths" [] {
15 ^svn status --depth files
16 | lines
17 | parse "{mode} {file}"
18 | str trim
19 | where mode == ?
20 | get file
21}
23def "complete svn revert paths" [] {
24 ^svn status --depth files
25 | lines
26 | parse "{mode} {file}"
27 | where mode == M
28 | str trim
29 | get file
30}
32def "complete svn depth" [] { ['empty', 'files', 'immediates', 'infinity'] }
34def "complete svn changelists" [] {
35 ^svn status --depth files
36 | lines
37 | parse "--- Changelist '{changelist}':"
38 | get --ignore-errors changelist
39}
41# Subversion is a tool for version control.
42# For additional information, see http://subversion.apache.org/
43export extern svn [
44 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
45 --version # to see the program version and RA modules
46 --quiet # to see just the version number
47 --verbose # to see dependency versions as well
48]
50# help (?, h): Describe the usage of this program or its subcommands.
51# usage: help [SUBCOMMAND...]
52export extern "svn help" [
53 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
54 --verbose(-v) # also show experimental subcommands and options
55]
57# FIXME:
58# SVN has short options with double dashes: --changelist(--cl).
59# This is not allowed in nu.
61# FIXME:
62# Multiline doccomments will be rendered without the newlines.
64# Print the status of working copy files and directories.
65export extern "svn status" [
66 ...paths: path # PATHs
67 --show-updates(-u) # display update information
68 --verbose(-v) # print extra information
69 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
70 --revision(-r): string # ARG (some commands also take ARG1:ARG2 range)
71 # A revision argument can be one of:
72 # NUMBER revision number
73 # '{' DATE '}' revision at start of the date
74 # 'HEAD' latest in repository
75 # 'BASE' base rev of item's working copy
76 # 'COMMITTED' last commit at or before BASE
77 # 'PREV' revision just before COMMITTED
78 --quiet(-q) # don't print unversioned items
79 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
80 --incremental # give output suitable for concatenation
81 --xml # output in XML
82 --ignore-externals # ignore externals definitions
83 --changelist:string@"complete svn changelists" # operate only on members of changelist ARG
84]
86# FIXME: https://github.com/nushell/nushell/issues/5012
87# rest parameters do not play well with completions yet
88# the `paths` parameter should be `...paths`
90# Put new files and directories under version control.
91export extern "svn add" [
92 paths: path@"complete svn add paths" # unversioned PATHs for addition
93 --targets: path # pass contents of file ARG as additional args
94 --non-recursive(-N) # obsolete; same as --depth=empty
95 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
96 --quiet(-q) # print nothing, or only summary information
97 --force # ignore already versioned paths
98 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
99 --auto-props # enable automatic properties
100 --no-auto-props # disable automatic properties
101 --parents # add intermediate parents
102]
104# Restore pristine working copy state (undo local changes).
105export extern "svn revert" [
106 paths: path@"complete svn revert paths"
107 --targets: path # pass contents of file as additional args
108 --recursive(-R) # descend recursively, same as --depth=infinity
109 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
110 --quiet(-q) # print nothing, or only summary information
111 --changelist: string@"complete svn changelists" # operate only on members of changelist ARG
112 --remove-added # reverting an added item will remove it from disk
113]
115# FIXME
116# SVN uses aliases for subcommands. E.g. `co` for `checkout`.
117# How to express that with nu extern commands?
119# Check out a working copy from a repository.
120export extern "svn checkout" [
121 ...url_with_rev:string # source
122 path: path # destination
123 --revision(-r) # ARG (some commands also take ARG1:ARG2 range)
124 # A revision argument can be one of:
125 # NUMBER revision number
126 # '{' DATE '}' revision at start of the date
127 # 'HEAD' latest in repository
128 # 'BASE' base rev of item's working copy
129 # 'COMMITTED' last commit at or before BASE
130 # 'PREV' revision just before COMMITTED
131 --quiet(-q) # print nothing, or only summary information
132 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
133 --force # force operation to run
134 --ignore-externals # ignore externals definitions
135]No final newline

nushell/config.nu

Modified

+1 / −1 text lines

1010use pacnew.nu *
1212# CUSTOM COMPLETIONS
13use svn.complete.nu *
13use svn-completions.nu *
1515# for more information on themes see
1616# https://github.com/nushell/nushell/blob/main/docs/How_To_Coloring_and_Theming.md

nushell/env.nu

Modified

+5 / −4 text lines

11# GLOBAL VARIABLES
3let-env WIN32? = $nu.os-info.name =~ "windows"
3let-env WIN32? = ( $nu.os-info.name =~ "windows" )
44let-env NURC_DIR = ( $nu.config-path | path expand | path dirname )
5let-env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
6let-env WORKSPACE = if $env.WIN32? { "W:/" } else { "~/Workspace" | path expand }
7let-env CARGO_HOME = ( "~/.cargo" | path expand )
5let-env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
6let-env WORKSPACE = if $env.WIN32? { "W:/" } else { "~/Workspace" | path expand }
7let-env NOTES = if $env.WIN32? { "N:/" } else { "~/Notes" | path expand }
8let-env CARGO_HOME = ( "~/.cargo" | path expand )
910# Specifies how environment variables are:
1011# - converted from a string to a value on Nushell startup (from_string)

nushell/modules/prompt.nu

Modified

+3 / −1 text lines

4747def icons [] {
4848 [
4949 [ path icon ];
50 [ "/home/oli/Notes" (char -u "1f4d3") ]
51 [ "C:\\Users\\okr\\Notes" (char -u "1f4d3") ]
5052 [ "/home/oli/Workspace" (char -u "1f4bb") ]
51 [ "/home/oli" (char nf_house2) ]
5253 [ "C:\\Users\\okr\\Workspaces" (char -u "1f4bb") ]
54 [ "/home/oli" (char nf_house2) ]
5355 [ "C:\\Users\\okr" (char nf_house2) ]
5456 ]

nushell/modules/todo.nu

Modified

+4 / −4 text lines

11# Render my To-Do file in the terminal
2export def todo [] { mdcat ($env.DOTFILES | path join "TODO.md") }
2export def todo [] { mdcat ($env.NOTES | path join "TODO.md") }
33# Open my To-Do file for editing
4export def "todo edit" [] { edit ($env.DOTFILES | path join "TODO.md")}
4export def "todo edit" [] { edit ($env.NOTES | path join "TODO.md")}
55# Open a list of commands, that I would like to remember to use
6export def "todo commands" [] { mdcat ($env.DOTFILES | path join "COMMANDS.md") }
6export def "todo commands" [] { mdcat ($env.NOTES | path join "COMMANDS.md") }
77# Open the list of commands to remember for editing.
8export def "todo commands edit" [] { edit ($env.DOTFILES | path join "COMMANDS.md") }
8export def "todo commands edit" [] { edit ($env.NOTES | path join "COMMANDS.md") }

pop-os.symlinks

Modified

+7 / −1 text lines

2626~/.config/helix/config.toml
2828helix/themes
29~/.config/helix/themesNo final newline
29~/.config/helix/themes
31ssh/config
32~/.ssh/config
34neovim
35~/.config/nvim

ssh/config

Modified

+9 / −7 text lines

11# SSH client configuration
22# defines bookmarks/templates for hosts and options to quickly connect to known hosts
4
45Host box
5HostName box.bugabinga.net
6IdentitiyFile ~/.ssh/box_do.key
6 HostName box.bugabinga.net
7 IdentityFile ~/.ssh/box_do.key
89Host github.com
9HostName github.com
10User git
11IdentityFile ~/.ssh/github.key
10 HostName github.com
11 User git
12 IdentityFile ~/.ssh/github.key
1315# catch-all pattern
1416Host *
15User root
16Compression yesNo final newline
17 User root
18 Compression yes

subversion/config

Modified

+3 / −3 text lines

3939### This will override the environment variables that Subversion
4040### examines by default to find this information ($EDITOR,
4141### et al).
42editor-cmd = hx
42# editor-cmd = hx
4343### Set diff-cmd to the absolute path of your 'diff' program.
4444### This will override the compile-time default, which is to use
4545### Subversion's internal diff implementation.
46diff-cmd = meld
46# diff-cmd = delta
4747### Diff-extensions are arguments passed to an external diff
4848### program or to Subversion's internal diff implementation.
4949### Set diff-extensions to override the default arguments ('-u').
50# diff-extensions = -u -p
50# diff-extensions = --tabs 2
5151### Set diff3-cmd to the absolute path of your 'diff3' program.
5252### This will override the compile-time default, which is to use
5353### Subversion's internal diff3 implementation.

tools/cargo-tools.nu

Modified

+50 / −41 text lines

55# we also cannot use `cargo install --list` to search for the binary name, in case the crate
66# is not installed yet
77let cargo_crates = [
8 [name bin features];
9 ["sccache" "sccache" []]
10 ["nu" "nu" ["--features=extra"]]
11 ["sd" "sd" []]
12 ["cbs" "cbs" []]
13 ["ouch" "ouch" []]
14 ["fd-find" "fd" []]
15 ["choose", "choose", []]
16 ["ripgrep" "rg" []]
17 ["onefetch" "onefetch" []]
18 ["eva" "eva" []]
19 ["mdcat" "mdcat" []]
20 ["cargo-update" "cargo-install-update" []]
21 ["hexyl" "hexyl" []]
22 ["hyperfine" "hyperfine" []]
23 ["so" "so" so-features]
24 ["tealdeer" "tldr" []]
25 ["tokei" "tokei" []]
26 ["bat" "bat" []]
27 ["pastel" "pastel" []]
28 ["diskonaut" "diskonaut" []]
29 ["menyoki" "menyoki" []]
30 ["zoxide" "zoxide" []]
31 ["grex" "grex" []]
32 ["xh" "xh" []]
33 ["comrak" "comrak" []]
34 # ["bandwhich" "bandwhich" []] masked until https://github.com/imsnif/bandwhich/issues/233
35 ["lychee" "lychee" []]
36 ["viu" "viu" []]
37 ["licensor" "licensor" []]
38 ["gib" "gib" []]
39 ["silicon" "silicon" []]
40 ["bottom" "btm" []]
41 ["sic" "sic" []]
42 ["just" "just" []]
43 ["mdsh" "mdsh" []]
44 ["git-delta" "delta" []]
45 ["selene" "selene" ["--no-default-features"]]
46 ["stylua" "stylua" ["--features=lua52"]]
47 ["taplo-cli" "taplo" []]
8 [ name bin features];
9 [ "sccache" "sccache" [] ]
10 [ "nu" "nu" [ "--features" "extra" ] ]
11 [ "sd" "sd" [] ]
12 [ "cbs" "cbs" [] ]
13 [ "ouch" "ouch" [] ]
14 [ "fd-find" "fd" [] ]
15 [ "choose", "choose", [] ]
16 [ "ripgrep" "rg" [] ]
17 [ "onefetch" "onefetch" [] ]
18 [ "eva" "eva" [] ]
19 [ "mdcat" "mdcat" [] ]
20 [ "cargo-update" "cargo-install-update" [] ]
21 [ "hexyl" "hexyl" [] ]
22 [ "hyperfine" "hyperfine" [] ]
23 [ "so" "so" (so-features) ]
24 [ "tealdeer" "tldr" [] ]
25 [ "tokei" "tokei" [] ]
26 [ "bat" "bat" [] ]
27 [ "pastel" "pastel" [] ]
28 [ "diskonaut" "diskonaut" [] ]
29 [ "menyoki" "menyoki" [] ]
30 [ "zoxide" "zoxide" [] ]
31 [ "grex" "grex" [] ]
32 [ "xh" "xh" [] ]
33 [ "comrak" "comrak" [] ]
34 # [ "bandwhich" "bandwhich" [] ] masked until https://github.com/imsnif/bandwhich/issues/233
35 [ "lychee" "lychee" [] ]
36 [ "viu" "viu" [] ]
37 [ "licensor" "licensor" [] ]
38 [ "gib" "gib" [] ]
39 [ "silicon" "silicon" [] ]
40 [ "bottom" "btm" [] ]
41 [ "sic" "sic" [] ]
42 [ "just" "just" [] ]
43 [ "mdsh" "mdsh" [] ]
44 [ "git-delta" "delta" [] ]
45 [ "selene" "selene" [ "--no-default-features" ] ]
46 [ "stylua" "stylua" [ "--features" "lua52" ] ]
47 [ "taplo-cli" "taplo" [] ]
48 [ "coreutils" "coreutils" (coreutils-features) ]
51def coreutils-features [] {
52 if $env.WIN32? {
53 [ "--features" "windows" ]
54 } else {
55 [ "--features" "unix" ]
56 }
57}
5059def so-features [] {
5160 if $env.WIN32? {
52 ["--no-default-features" "--features=windows"]
61 [ "--no-default-features" "--features" "windows" ]
5362 } else {
5463 []
5564 }

tools/parsing-equals-test.nu

Added
new file mode 100644

+45 / −0 text lines

1def main [] {
2 assert-is-a { "" } string
3 assert-is-a { "=" } string
4 assert-is-a { "-" } string
5 assert-is-a { "-=" } string
6 assert-is-a { "-=-" } string
7 assert-is-a { "=-" } string
8
9 assert-is-a { [""] } list<string>
10 assert-is-a { ["="] } list<string>
11 assert-is-a { ["-"] } list<string>
12 assert-is-a { ["-="] } list<string>
13
14 # error: unknown command
15 #assert-is-a { ["-=-"] } list<string>
16 #assert-is-a { ["=-"] } list<string>
17 #assert-is-a { ["=-"] } list<string>
19 assert-is-a { ["= "] } list<string>
20 assert-is-a { [ "="] } list<string>
21 assert-is-a { ["=" ] } list<string>
22 assert-is-a { [ "=" ] } list<string>
24 assert-is-a { [ "=OK" ] } list<string>
25}
27def assert-is-a [
28 code: block # some nu expression
29 expected_type: string # expected nu type of given expression, as printed by `describe`
30] {
31 let span = (metadata $code).span;
32 let actual_type = ( do $code | describe )
33 if $actual_type == $expected_type {
34 echo $"(char sun)\t(ansi green_bold)OK(ansi reset)\t($actual_type)"
35 } else {
36 error make {
37 msg: $"(char cloud)\t(ansi red_bold)FAIL(ansi reset)",
38 label: {
39 text: $"expected a `($expected_type)` but got a `($actual_type)`",
40 start: $span.start,
41 end: $span.end
42 }
43 }
44 }
45}No final newline

topgrade/topgrade.linux.toml

Modified

+2 / −2 text lines

3030pull_predefined = false
3232# Arguments to pass Git when pulling Repositories
33arguments = "--ff --rebase --autostash"
33# arguments = "--ff --rebase"
3535# Commands to run before anything
3636[pre_commands]
4545# install tools from cargo, that are not already in path
4646# TODO: this could be annoying when setting up a machine first time?
47"01 - Install Cargo Tools" = "nu ~/Workspace/dotfiles/tools/cargo-tools.nu"
47"01 - Install Cargo Tools" = "nu --env-config ~/.config/nushell/env.nu ~/Workspace/dotfiles/tools/cargo-tools.nu"
4949# Dateisystem-Indexer ix erfrischen
5050"02 - Indexa Update" = "ix --update"

topgrade/topgrade.windows.toml

Modified

+2 / −2 text lines

3030pull_predefined = false
3232# Arguments to pass Git when pulling Repositories
33arguments = "--ff --rebase --autostash"
33# arguments = "--ff --rebase"
3535[windows]
3636enable_winget = true
4343# Custom commands
4444[commands]
45"01 - Install Cargo Tools" = "nu W:/dotfiles/tools/cargo-tools.nu"
45"01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
4747# Diese Skripte beziehen APM und MeMate aus dem Transfer.
4848"02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"

wezterm/wezterm.lua

Modified

+5 / −6 text lines

5151 window_decorations = "NONE"
5252 font_size = 11.0
5353elseif hostname == "pop-os" then
54 color_scheme = "Ubuntu"
5554 font_size = 13.0
5655elseif hostname == "PC-00625" then
5756 window_decorations = "TITLE|RESIZE"
7170 check_for_updates = false,
7271 show_update_window = false,
7372 audible_bell = "Disabled",
74 visual_bell = {
75 fade_in_duration_ms = 75,
76 fade_out_duration_ms = 75,
77 target = "CursorColor",
78 },
73 visual_bell = {
74 fade_in_duration_ms = 75,
75 fade_out_duration_ms = 75,
76 target = "CursorColor",
77 },
7978 tab_max_width = 24,
8079 enable_wayland = enable_wayland,
8180 window_padding = {

x230.symlinks

Modified

+7 / −1 text lines

3232~/.config/helix/themes
3434river
35~/.config/riverNo final newline
35~/.config/river
37ssh/config
38~/.ssh/config
40neovim
41~/.config/nvim