repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

b5f528ea62e411dbeff33edd966a32bed0744181

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (15)

EJ-PC-00363.symlinks

Modified
7 7 git/gitconfig.EJ-PC-00363
8 8 ~/.gitconfig.include
10 -starship/starship.toml
10 +starship/starship.toml.EJ-PC-00363
11 11 ~/.config/starship.toml
13 13 alacritty/alacritty.windows.yml

TODO.md

Modified
36 36 - [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?
37 37 - [ ] encrypt box key
38 38 - [ ] get SIM card to work on x230
39 +- [ ] disable syntax highlighting (treesitter) for inactive buffers and dim color
40 +- [ ] port commands from vim-eunuch:
41 + - [ ] Delete
42 + - [ ] Move/Rename
43 + - [ ] Sudo/Doas
44 +- [ ] LSP diagnostics only on BufWrite
45 +- [ ] easier too read colors for lsp hovers
40 47 ## Done

bootstripper.java

Modified
11 11 var dorkfiles_root = Path.of(arguments[0]).toRealPath();
12 12 System.out.printf("Assuming dorkfiles root repo in %s.%n", emphasize_local(dorkfiles_root.toString()));
13 - decrypt_secrets(dorkfiles_root.resolve("secrets"));
13 + decrypt_secrets(dorkfiles_root.resolve("tresor"));
14 14 var hostname = hostname();
15 15 System.out.printf("Hostname: %s%n", emphasize_global(hostname));
16 16 var symlinks_file = hostname + ".symlinks";
17 - create_symlinks(dorkfiles_root.resolve(symlinks_file));
17 + create_symlinks(dorkfiles_root, dorkfiles_root.resolve(symlinks_file));
19 19 static void decrypt_secrets(Path secrets_root) throws Exception {
20 20 System.out.printf("%s:Decrypting files in %s folder.%n", emphasize_global("TODO"), emphasize_local(secrets_root.getFileName().toString()));
22 - static void create_symlinks(Path symlinks_file) throws Exception {
22 + static void create_symlinks(Path root, Path symlinks_file) throws Exception {
23 23 System.out.printf("Creating symlinks as defined in %s file.%n", emphasize_local(symlinks_file.getFileName().toString()));
24 24 var lines = Files.readAllLines(symlinks_file);
25 25 String source = null;
29 29 if (source == null) source = line;
30 30 else if (target == null) target = line;
31 31 if(source != null && target != null){
32 - link(source, target);
32 + link(root, source, target);
33 33 source = null;
34 34 target = null;
38 - static void link(String source, String target) throws Exception {
38 + static void link(Path root, String source, String target) throws Exception {
39 39 var home = System.getProperty("user.home");
40 - var source_path = Path.of(source.replace("~", home)).toAbsolutePath();
40 + var source_path = root.resolve(source).toAbsolutePath();
41 41 var target_path = Path.of(target.replace("~", home)).toAbsolutePath();
42 42 var is_directory = Files.isDirectory(source_path);
43 43 if(Files.exists(target_path, LinkOption.NOFOLLOW_LINKS)){
46 46 return;
48 48 else {
49 - System.out.printf("❌ %s exists, but it points into nirvana. Removing broken link!%n", target_path.toString());
49 + System.out.printf("%n❌ %s exists, but it points into nirvana. Removing broken link!%n", target_path.toString());
50 50 Files.delete(target_path);
87 87 static String hostname() throws Exception {
88 - var process = new ProcessBuilder()
89 - .command("hostname")
90 - .start()
91 - .onExit()
92 - .join();
88 + var process_builder = new ProcessBuilder();
89 + var operating_system = System.getProperty("os.name");
90 + if(operating_system.toLowerCase().contains("linux")){
91 + process_builder = process_builder.command("hostnamectl", "hostname");
92 + }
93 + else
94 + {
95 + process_builder = process_builder.command("hostname");
96 + }
97 + var process = process_builder
98 + .start()
99 + .onExit()
100 + .join();
93 101 try(var reader = new InputStreamReader(process.getInputStream()))
95 103 int character = -1;

neovim/lua/autocommand.lua

Modified
1 1 -- This function creates a custom API over autocommands in nvim.
2 2 -- Since an official API is not present yet, I simply stole one from norcalli.
3 3 -- groups: a map of group name to list of vimscript commands (table of string), or a single vimscript command (string).
4 -return function(groups)
5 - for name, commands in pairs(groups) do
4 +return function(autocmd_groups)
5 + for name, commands in pairs(autocmd_groups) do
6 6 -- wrap autocommands in a group and..
7 7 vim.cmd('augroup ' .. name)
8 8 -- ... undefine the groups commands, so that they become idempotent.

neovim/lua/general_editor_settings.lua

Modified
66 66 vim.opt.showcmd = false
67 67 vim.opt.wildmode = "list:longest"
68 68 -- Set the current working directory to the parent of the active buffer
69 - vim.opt.autochdir = false
69 + vim.opt.autochdir = true
70 70 -- Keep track of file changes outside of vim
71 71 vim.opt.autoread = true
72 72 -- Make backups of all touched files in a special directory

neovim/lua/lsp.lua

Modified
4 4 -- This function configures all the LSP clients that i might care about.
5 5 -- It is expected to be called in the 'config' step of the 'lspconfig' plugin.
6 6 -- autocommand: function, that can create autocmds
7 7 return function()
8 8 local integrate_into_neovim = function(client, buffer_number)
9 9 print("LSP " .. client.name .. " [" .. client.id .. "] " .. "started.")
10 - local chain_complete_list = {
11 - default = {
12 - { complete_items = { "lsp", "snippet" } },
13 - { complete_items = { "path" }, triggered_only = { "/" } },
14 - { complete_items = { "buffers" } },
15 - },
16 - string = {
17 - { complete_items = { "path" }, triggered_only = { "/" } },
18 - },
19 - comment = {},
20 - }
22 - require("completion").on_attach({
23 - sorting = "length",
24 - enable_auto_popup = false,
25 - chain_complete_list = chain_complete_list,
26 - })
11 + -- enable lsp-powered auto-completion
12 + -- FIXME: I cannot seem to configure this plugin to my liking.
13 + require("completion").on_attach()
14 + -- adds icons into the completion ui
15 + require"lspkind".init()
28 17 -- hook lsp into vim autocomplete in insert mode
29 18 vim.api.nvim_buf_set_option(buffer_number, "omnifunc", "v:lua.vim.lsp.omnifunc")
32 21 map("n", "<LEADER>gD", "<CMD>lua vim.lsp.buf.declaration()<CR>")
33 22 map("n", "<LEADER>gd", "<CMD>lua vim.lsp.buf.definition()<CR>")
34 - map("n", "<LEADER>K", "<CMD>lua vim.lsp.buf.hover()<CR>")
35 23 map("n", "<LEADER>gr", "<CMD>lua vim.lsp.buf.references()<CR>")
36 - map("n", "<LEADER>gs", "<CMD>lua vim.lsp.buf.signature_help()<CR>")
37 24 map("n", "<LEADER>gi", "<CMD>lua vim.lsp.buf.implementation()<CR>")
38 25 map("n", "<LEADER>gt", "<CMD>lua vim.lsp.buf.type_definition()<CR>")
39 26 map("n", "<LEADER>gw", "<CMD>lua vim.lsp.buf.document_symbol()<CR>")
40 27 map("n", "<LEADER>gW", "<CMD>lua vim.lsp.buf.workspace_symbol()<CR>")
41 29 map("n", "<LEADER>ah", "<CMD>lua vim.lsp.buf.hover()<CR>")
30 + map("n", "<LEADER>as", "<CMD>lua vim.lsp.buf.signature_help()<CR>")
42 31 map("n", "<LEADER>af", "<CMD>lua vim.lsp.buf.code_action()<CR>")
43 32 map("n", "<LEADER>ar", "<CMD>lua vim.lsp.buf.rename()<CR>")
44 - map("n", "<LEADER>=", "<CMD>lua vim.lsp.buf.formatting()<CR>")
33 + map("n", "<LEADER>a=", "<CMD>lua vim.lsp.buf.formatting()<CR>")
45 34 map("n", "<LEADER>ai", "<CMD>lua vim.lsp.buf.incoming_calls()<CR>")
46 35 map("n", "<LEADER>ao", "<CMD>lua vim.lsp.buf.outgoing_calls()<CR>")
120 110 -- Markdown Notes (Zettelkasten) LSP
121 111 lsp.zeta_note.setup({
122 112 on_attach = integrate_into_neovim,

neovim/lua/plugins.lua

Modified
15 15 local packer_installation_path = data_path .. "/site/pack/" .. plugin_package .. "/opt/packer.nvim"
16 16 if vim.fn.empty(vim.fn.glob(packer_installation_path)) == 1 then
17 17 vim.cmd('!git clone https://github.com/wbthomason/packer.nvim "' .. packer_installation_path .. '"')
18 + vim.cmd("packadd packer")
19 20 local packer = nil
20 21 local init = function()
94 - -- TODO learn to configure minimal status line and tabline
96 95 -- NVIM API for defining color schemes
97 - -- TODO: when profiling, this plugins loading times are high
98 - -- maybe the cause is that it loads a bunch of files
99 - -- should those be merged into one file?
100 96 use({
101 97 "tjdevries/colorbuddy.vim",
102 98 config = function()
107 103 -- Advanced parsers for better syntax highlighting
109 105 "nvim-treesitter/nvim-treesitter",
106 + requires = { "nvim-treesitter/nvim-treesitter-refactor" },
110 107 config = function()
111 108 require("nvim-treesitter.install").compilers = { "clang" }
112 109 require("nvim-treesitter.configs").setup({
113 - ensure_installed = { "zig", "java", "rust", "lua", "toml", "yaml", "json", "c" },
110 + ensure_installed = {
111 + "zig",
112 + "java",
113 + "rust",
114 + "lua",
115 + "toml",
116 + "yaml",
117 + "json",
118 + "jsonc",
119 + "c",
120 + "comment",
121 + "html",
122 + "css",
123 + "javascript",
124 + "query",
125 + "vim",
126 + },
114 127 highlight = { enable = true },
115 128 incremental_selection = {
116 129 enable = true,
124 137 indent = { enable = true },
125 138 query_linter = { enable = true, use_virtual_text = true, lint_events = { "BufWrite" } },
139 + refactor = {
140 + highlight_definitions = { enable = true },
141 + smart_rename = { enable = true, keymaps = { smart_rename = "<LEADER>r" } },
142 + navigation = {
143 + enable = true,
144 + keymaps = { goto_next_usage = "<a-.>", goto_previous_usage = "<a-,>" },
145 + },
146 + },
184 205 -- This will configure all LSPs not only Null-ls.
185 206 -- But because Null-ls depends on lspconfig, we have to delay this
186 207 require("lsp")()
208 + -- overwrite default action handlers with cuter ones
209 + vim.lsp.handlers["textDocument/codeAction"] = require("lsputil.codeAction").code_action_handler
210 + vim.lsp.handlers["textDocument/references"] = require("lsputil.locations").references_handler
211 + vim.lsp.handlers["textDocument/definition"] = require("lsputil.locations").definition_handler
212 + vim.lsp.handlers["textDocument/declaration"] = require("lsputil.locations").declaration_handler
213 + vim.lsp.handlers["textDocument/typeDefinition"] = require("lsputil.locations").typeDefinition_handler
214 + vim.lsp.handlers["textDocument/implementation"] = require("lsputil.locations").implementation_handler
215 + vim.lsp.handlers["textDocument/documentSymbol"] = require("lsputil.symbols").document_handler
216 + vim.lsp.handlers["workspace/symbol"] = require("lsputil.symbols").workspace_handler
188 218 requires = {
189 219 -- extensions to the std lib
192 222 "neovim/nvim-lspconfig",
193 223 -- Completions support, that integrates advanced nvim features (LSP+treesitter)
194 224 "nvim-lua/completion-nvim",
225 + -- Icons for completion UI
226 + "onsails/lspkind-nvim",
227 + -- dependency of nvim-lsputils
228 + "RishabhRD/popfix",
229 + -- collection of better handlers for lsp actions.
230 + -- e.g. puts selection of code actions into floating window
231 + "RishabhRD/nvim-lsputils",
230 267 opt = true,
231 268 command = "VBox",
271 + -- convenient lua abstraction over the nvim keymap function
272 + -- TODO: use it throughout the code
273 + use("Iron-E/nvim-cartographer")
275 + -- automatically size splits reasonably
276 + use("beauwilliams/focus.nvim")
235 279 -- the plugin module always delegates to packer, ensuring that at all times init configures packer correctly

neovim/lua/statusline.lua

Modified
1 1 local branch_icon = ""
2 2 local vcs_branch_name = ""
3 +local code_actions_count = 0
3 4 local special_windows = {
4 5 intro = { "CheatSheet", "" },
5 6 NvimTree = { "Files", "" },
6 7 packer = { "Plugins", "" },
7 8 help = { "Help", "龎" },
9 + [""] = { "unknown file type", "" },
9 11 local lsp_symbols = { Error = "", Information = "", Warning = "", Hint = "" }
22 24 return {
25 + update_code_actions_count = function()
26 + local diagnostics_line_context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }
27 + local lsp_parameters = vim.lsp.util.make_range_params()
28 + lsp_parameters.context = diagnostics_line_context
29 + vim.lsp.buf_request(0, "textDocument/codeAction", lsp_parameters, function(error, _, result)
30 + if not error and result then
31 + code_actions_count = #result
32 + else
33 + code_actions_count = 0
34 + end
35 + end)
36 + end,
23 37 -- refresh the statuslines of all windows.
24 38 -- the current window gets special treatment. it is "active".
25 39 update_statuslines = function()
26 40 for _, window_number in pairs(vim.api.nvim_list_wins()) do
27 41 if vim.api.nvim_get_current_win() == window_number then
28 - vim.opt.statusline = [[%!v:lua.require'statusline'.render("current")]]
29 - elseif vim.api.nvim_buf_get_name(0) ~= "" then
30 - vim.opt.statusline = [[%!v:lua.require'statusline'.render()]]
42 + vim.wo[window_number].statusline = [[%!v:lua.require'statusline'.render("current")]]
43 + else
44 + vim.wo[window_number].statusline = [[%!v:lua.require'statusline'.render()]]
33 47 end,
34 48 -- update the vcs branch name, if vcs is available
35 49 update_vcs_branch_name = function()
36 50 if not pcall(require, "plenary") then
37 - return ""
51 + return
52 + end
53 + local Job = require("plenary.job")
54 + local git = Job:new({
55 + command = "git",
56 + args = { "branch", "--show-current" },
57 + cwd = vim.fn.expand("%:p:h"), -- parent directory of current buffer
58 + on_exit = function(output)
59 + local result = output:result()[1]
60 + if result then
61 + vcs_branch_name = result
62 + end
63 + end,
64 + })
65 + local svn = Job:new({
66 + command = "svn",
67 + args = { "info" },
68 + cwd = vim.fn.expand("%:p:h"), -- parent directory of current buffer
69 + on_exit = function(output)
70 + local result = output:result()[4] -- Relative URL is on the 4th line
71 + result = result and result:match("Relative URL:%s%^/([%w/]+).*") or nil
72 + if result then
73 + vcs_branch_name = result
74 + end
75 + end,
76 + })
77 + -- simply try all vcs tools at once, and trust that only one returns an answer successfully
78 + local all = { git, svn }
79 + for _, tool in pairs(all) do
80 + tool:start()
39 - require("plenary.job")
40 - :new({
41 - command = "git",
42 - args = { "branch", "--show-current" },
43 - cwd = vim.fn.expand("%:p:h"), -- parent directory of current buffer
44 - on_exit = function(output)
45 - local result = output:result()[1]
46 - if result then
47 - vcs_branch_name = "%#LineNr#%=" .. branch_icon .. " " .. result
48 - else
49 - vcs_branch_name = ""
50 - end
51 - end,
52 - })
53 - :start()
54 82 end,
55 83 -- generate the statusline string
56 84 render = function(active)
57 85 local filetype = vim.bo.filetype
58 86 local special_window = special_windows[filetype]
59 - if active and special_window then
60 - return "%#LineNr#%=" .. special_window[2] .. " " .. special_window[1] .. "%="
87 + if special_window then
88 + return "%#Statusline"
89 + .. (active and "" or "NC")
90 + .. "#%="
91 + .. special_window[2]
92 + .. " "
93 + .. special_window[1]
94 + .. "%="
62 - local edited = vim.bo.mod and "" or ""
63 - local modifiable = vim.bo.modifiable and "" or ""
96 + local edited = vim.bo.mod and "" or " "
97 + local modifiable = vim.bo.modifiable and " " or ""
64 98 local diagnostics = get_lsp_diagnostics_count()
100 + local vcs_info = vcs_branch_name and ("%#LineNr#%=" .. branch_icon .. " " .. vcs_branch_name) or nil
66 102 local statusline = "%#Statusline"
67 103 .. (active and "" or "NC")
68 104 .. "#"
71 107 .. modifiable
72 108 .. " "
73 109 .. "%F" -- full file path
74 - .. (diagnostics ~= "" and "  " .. diagnostics .. "  " or " ")
75 - .. (active and vcs_branch_name or "")
110 + .. (active and (diagnostics ~= "" and "  " .. diagnostics .. "  " or " ") or " ")
111 + .. (code_actions_count ~= 0 and ("%#Title#" .. " " .. code_actions_count .. " ﯦ") or "")
112 + .. (active and vcs_info or "")
77 114 return statusline
79 116 -- setup a custom statusline
80 117 setup = function(autocommand)
81 118 autocommand({
82 - update_statusline = "CursorHold,CursorHoldI * lua require'statusline'.update_statuslines()",
83 - update_vcs_branch_name = "BufEnter,BufWinEnter,WinEnter,BufReadPost * lua require'statusline'.update_vcs_branch_name()",
119 + -- TODO: is there a more clever way to synchronize getting the branch name and updating the statusline?
120 + update_vcs_branch_name = "BufEnter,WinEnter,BufWinEnter,BufReadPost * lua require'statusline'.update_vcs_branch_name()",
121 + update_code_actions_count = "CursorHold,CursorHoldI * lua require'statusline'.update_code_actions_count()",
122 + update_statuslines = "CursorHold,CursorHoldI,BufEnter,WinEnter,BufWinEnter,BufReadPost * lua require'statusline'.update_statuslines()",

neovim/lua/tabline.lua

Modified
17 17 render = function()
18 18 local buffer_names_to_ignore = {'NvimTree'}
19 19 local tabline = ""
20 - -- FIXME change this to tabpage instead of buf
21 - for _, buffer_number in pairs(vim.api.nvim_list_bufs()) do
22 - if vim.api.nvim_buf_is_valid(buffer_number) and vim.api.nvim_buf_is_loaded(buffer_number) then
20 + for _, current_tab in pairs(vim.api.nvim_list_tabpages()) do
21 + if vim.api.nvim_tabpage_is_valid(current_tab) then
22 + local current_window = vim.api.nvim_tabpage_get_win(current_tab)
23 + if not vim.api.nvim_win_is_valid(current_window) then goto continue end
24 + local current_buffer = vim.api.nvim_win_get_buf(current_window)
25 + if not (vim.api.nvim_buf_is_valid(current_buffer) and vim.api.nvim_buf_is_loaded(current_buffer)) then goto continue end
23 26 local modified = vim.bo.modified and "" or " "
24 27 -- we only care about the last part of the path
25 - local stylish_buffer_name = vim.api.nvim_buf_get_name(buffer_number):match(".-([^\\/]-)$") or ""
26 - if vim.tbl_contains(buffer_names_to_ignore, stylish_buffer_name) or stylish_buffer_name == "" then goto continue end
28 + local current_buffer_name = vim.api.nvim_buf_get_name(current_buffer)
29 + local stylish_buffer_name = current_buffer_name:match(".-([^\\/]-)$") or ""
30 + if vim.tbl_contains(buffer_names_to_ignore, stylish_buffer_name) then goto continue end
27 31 local icon = ""
28 ---FIXME this is the wrong way to handle new empty buffers: how to do it whithout showing tabs for all kinds of auxillary buffers (checkhealt for example)
29 ---[[ if stylish_buffer_name == "" then
30 -stylish_buffer_name = "no name"
31 - icon = "" ]]
32 - if stylish_buffer_name == "cheatsheet" then
32 + if stylish_buffer_name == "" then
33 + stylish_buffer_name = "no name"
34 + icon = ""
35 + elseif stylish_buffer_name == "cheatsheet" then
33 36 icon = ""
34 37 else
35 38 local extension = stylish_buffer_name:match("%w+%.(.+)")
36 39 icon = get_icon(stylish_buffer_name, extension)
38 41 stylish_buffer_name = " " .. stylish_buffer_name .. " "
39 - local is_current_buffer = vim.api.nvim_get_current_buf() == buffer_number
42 + local is_current_buffer = vim.api.nvim_get_current_buf() == current_buffer
40 43 tabline = tabline .. "%#TabLine" ..
41 44 (is_current_buffer and "Sel" or "") .. "#" ..
42 45 " " .. icon .. stylish_buffer_name .. (is_current_buffer and modified or " ")

pop-os.symlinks

Modified
28 28 stackoverflow/so
29 29 ~/.config/so
31 -starship/starship.toml
31 +starship/starship.toml.pop-os
32 32 ~/.config/starship.toml
34 -alacritty
35 -~/.config/alacritty
37 34 topgrade/topgrade.linux.toml
38 35 ~/.config/topgrade.toml

starship/starship.toml

Deleted
deleted file mode 100644
1 -[character]
2 -success_symbol = ' (dimmed green)'
3 -# does not work yet in nushell
4 -error_symbol = ' (dimmed red)'
6 -[directory]
7 -style = 'bold purple'
8 -truncation_symbol = '⋯ /'
9 -home_symbol = '∽'
10 -truncation_length = 5
12 -[java]
13 -style = 'yellow dimmed'
15 -[git_status]
16 -# too slow
17 -disabled = true
19 -[package]
20 -style = "dimmed cyan"
22 -[rust]
23 -style = "dimmed cyan"
25 -[zig]
26 -style = "dimmed yellow"
28 -[memory_usage]
29 -disabled = false
30 -format = "$symbol $ram_pct ($style)"
31 -threshold = 50
32 -symbol = ""
33 -style = "dimmed gray"

starship/starship.toml.EJ-PC-00363

Added
new file mode 100644
1 +#vim: ft=toml
2 +[character]
3 +success_symbol = ' (dimmed green)'
4 +# does not work yet in nushell
5 +error_symbol = ' (dimmed red)'
7 +[directory]
8 +style = 'bold purple'
9 +truncation_symbol = '⋯ /'
10 +home_symbol = '∽'
11 +truncation_length = 5
12 +read_only = " "
14 +[java]
15 +style = 'dimmed yellow'
16 +symbol = " "
18 +[git_status]
19 +# too slow
20 +disabled = true
22 +[git_branch]
23 +symbol = " "
25 +[package]
26 +style = "dimmed cyan"
28 +[rust]
29 +symbol = " "
30 +style = "dimmed cyan"
32 +[zig]
33 +style = "dimmed yellow"
35 +[lua]
36 +style = "dimmed blue"
37 +symbol = " "
39 +[memory_usage]
40 +disabled = false
41 +format = "$symbol $ram_pct ($style)"
42 +threshold = 50
43 +symbol = ""
44 +style = "dimmed gray"

starship/starship.toml.pop-os

Added
new file mode 100644
1 +#vim: ft=toml
2 +[character]
3 +success_symbol = ' (dimmed green)'
4 +# does not work yet in nushell
5 +error_symbol = ' (dimmed red)'
7 +[directory]
8 +style = 'bold purple'
9 +truncation_symbol = '⋯ /'
10 +home_symbol = '∽'
11 +truncation_length = 5
12 +read_only = " "
14 +[java]
15 +style = 'dimmed yellow'
16 +symbol = " "
18 +[git_status]
19 +# too slow
20 +disabled = true
22 +[git_branch]
23 +symbol = " "
25 +[package]
26 +style = "dimmed cyan"
28 +[rust]
29 +symbol = " "
30 +style = "dimmed cyan"
32 +[zig]
33 +style = "dimmed yellow"
35 +[lua]
36 +style = "dimmed blue"
37 +symbol = " "
39 +[memory_usage]
40 +disabled = false
41 +format = "$symbol $ram_pct ($style)"
42 +threshold = 50
43 +symbol = ""
44 +style = "dimmed gray"

starship/starship.toml.x230

Added
new file mode 100644
1 +#vim: ft=toml
2 +[character]
3 +success_symbol = ' (dimmed green)'
4 +# does not work yet in nushell
5 +error_symbol = ' (dimmed red)'
7 +[directory]
8 +style = 'bold purple'
9 +truncation_symbol = '⋯ /'
10 +home_symbol = '∽'
11 +truncation_length = 5
12 +read_only = " "
14 +[java]
15 +style = 'dimmed yellow'
16 +symbol = " "
18 +[git_status]
19 +# too slow
20 +disabled = true
22 +[git_branch]
23 +symbol = " "
25 +[package]
26 +style = "dimmed cyan"
28 +[rust]
29 +symbol = " "
30 +style = "dimmed cyan"
32 +[zig]
33 +style = "dimmed yellow"
35 +[lua]
36 +style = "dimmed blue"
37 +symbol = " "
39 +[memory_usage]
40 +disabled = false
41 +format = "$symbol $ram_pct ($style)"
42 +threshold = 50
43 +symbol = ""
44 +style = "dimmed gray"
46 +[battery]
47 +full_symbol = "🔋 "
48 +charging_symbol = "⚡️ "
49 +discharging_symbol = "💀 "
51 +[[battery.display]]
52 +threshold = 100
53 +style = "dim gray"

x230.symlinks

Modified
1 +neovim
2 +~/.config/nvim
4 +git/gitconfig
5 +~/.config/git/config
7 +git/gitconfig.linux
8 +~/.config/git/.gitconfig.include
10 +alacritty/alacritty.linux.yml
11 +~/.config/alacritty/alacritty.yml
13 +alacritty/alacritty_common.yml
14 +~/.config/alacritty/alacritty_common.yml
16 +alacritty/Alacritty.desktop
17 +~/.local/share/applications/Alacritty.desktop
19 +alacritty/alacritty-simple.svg
20 +~/.local/share/icons/hicolor/scalable/apps/Alacritty.svg
22 +cargo/config.toml
23 +~/.cargo/config.toml
25 +nushell
26 +~/.config/nu
28 +starship/starship.toml.x230
29 +~/.config/starship.toml
1 31 icc/thinkpad_x230.icc
2 32 ~/.config/icc/thinkpad_x230.icc
4 34 indexa/config.linux.toml
5 35 ~/.config/indexa/config.toml
37 +topgrade/topgrade.linux.toml
38 +~/.config/topgrade.toml
40 +stackoverflow/so
41 +~/.config/so