Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
cc3383828f76143fd3c51cff143a1ed46218b9e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 627408b06b27 · Showing diff
- Parent 2: 83341227430b · Diff against parent 2
bugabingas dorkfiles
cc3383828f76143fd3c51cff143a1ed46218b9e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+603 / −575 text lines
+6 / −0 text lines
+6 / −8 text lines
"better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" }, "gitsigns.nvim": { "branch": "main", "commit": "1e01b2958aebb79f1c33e7427a1bac131a678e0d" }, "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" }, "indent-blankline.nvim": { "branch": "master", "commit": "73640233cca0da8e01aced8c1f9e63fd892128b7" }, "indent-blankline.nvim": { "branch": "master", "commit": "b7aa0aed55887edfaece23f7b46ab22232fc8741" }, "indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" }, "noice.nvim": { "branch": "main", "commit": "bfd2368b3f1fdd5766885b0115238d1f47113c6d" }, "noice.nvim": { "branch": "main", "commit": "40d670ef8935af3bf5df44ca27d83dcf1d75f0fd" }, "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" }, "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" }, "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" }, "nvim-treesitter": { "branch": "master", "commit": "180399295db82069bf07d3c2314530e7814c03d7" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" }, "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" }, "refactoring.nvim": { "branch": "master", "commit": "7894b10078a1a70c9b26028f4373bf209968e9bc" }, "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" }, "tokyonight.nvim": { "branch": "main", "commit": "a0a7bfbc4c54348b56880a162afac9d103c618c1" },+1 / −2 text lines
deleted file mode 100644+0 / −265 text lines
local icon = require 'std.icon'local map = require 'std.keymap'local auto = require 'std.auto'local project = require 'std.project'local want = require 'std.want'-- TODO: setup codelens -> use lsp-signature plugin?-- TODO: setup custom cmp keybindswant { 'lsp-zero', 'null-ls', 'nvim-lsp-installer', 'neodev', 'rust-tools', 'nvim-navic', 'lsp-status',}(function(zero, null_ls, installer, neodev, rust, navic, lsp_status) installer.settings { ui = { --TODO: use some global float window settings border = 'rounded', }, } zero.preset 'recommended' zero.set_preferences { configure_diagnostics = false, set_lsp_keymaps = false, sign_icons = { error = icon 'Error', warn = icon 'Warning', hint = icon 'Hint', info = icon 'Information', }, } -- setup lsp for my neovim config zero.nvim_workspace { -- add paths of all plugins and neovim library = vim.api.nvim_get_runtime_file('', true), } -- Initialize rust_analyzer with rust-tools rust.setup { server = zero.build_options('rust_analyzer', {}), } -- this will prevent zero from loading this server. -- Java will be managed by nvim-jdtls, which wants to do things differently. -- see ftplugin/java.lua zero.build_options('jdtls', {}) -- lua neovim lsp neodev.setup { lspconfig = zero.defaults.nvim_workspace(), } -- disable disco mode while typing zero.setup_nvim_cmp { completion = { autocomplete = false, }, } local null_opts = zero.build_options 'null-ls' local formatting = null_ls.builtins.formatting local diagnostics = null_ls.builtins.diagnostics local code_actions = null_ls.builtins.code_actions local hover = null_ls.builtins.hover local completion = null_ls.builtins.completion -- run diagnostics on save local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE } null_ls.setup { on_attach = null_opts.on_attach, sources = { formatting.stylua, formatting.clang_format, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, hover.dictionary, diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.gitlint.with(diagnostics_on_save), diagnostics.protoc_gen_lint.with(diagnostics_on_save), diagnostics.protolint.with(diagnostics_on_save), diagnostics.selene.with(diagnostics_on_save).with { -- null-ls determines the root in a too simplistic manner. -- since my neovim configuration live inside my dotfiles, the dotfiles root -- was taken. but i want the neovim config folder as root. cwd = function(parameters) local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root) return root or parameters.root end, }, diagnostics.shellcheck.with(diagnostics_on_save), diagnostics.tidy.with(diagnostics_on_save), code_actions.refactoring, code_actions.shellcheck, completion.luasnip, }, } local function setup_keybinds_and_actions(client, buffer_number) -- TODO: use buffer number in keymaps -- TODO: make format changed lines command local capabilities = client.server_capabilities if capabilities.document_formatting then map.normal { name = 'Format buffer using LSP', category = "editing", keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.format { bufnr = buffer_number } vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end if capabilities.document_range_formatting then map.visual { name = 'Format range using LSP', category = 'editing', keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.range_formatting { bufnr = buffer_number } vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end --TODO: change some of these commands to telescoped versions if capabilities.hover then map.normal { name = 'Show Hover', category = 'view', keys = '<leader>' .. 'l' .. 'k', command = vim.lsp.buf.hover, } end if capabilities.goto_definition then map.normal { name = 'Go to Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 'd', command = vim.lsp.buf.definition, } end if capabilities.declaration then map.normal { name = 'Go to Declaration', category = 'navigation', keys = '<leader>' .. 'l' .. 'd' .. 'd', command = vim.lsp.buf.declaration, } end if capabilities.implementation then map.normal { name = 'Go to Implementation', category = 'navigation', keys = '<leader>' .. 'l' .. 'i', command = vim.lsp.buf.implementation, } end if capabilities.type_definition then map.normal { name = 'Go to Type Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 't', command = vim.lsp.buf.type_definition, } end if capabilities.find_references then map.normal { name = 'Go to References', category = 'navigation', keys = '<leader>' .. 'l' .. 'r', command = vim.lsp.buf.references } end if capabilities.call_hierarchy then map.normal { name = 'Go to Incoming Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c', command = vim.lsp.buf.incoming_calls, } map.normal { name = 'Go to Outgoing Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c' .. 'c', command = vim.lsp.buf.outgoing_calls, } end if capabilities.rename then map.normal { name = 'Rename symbol', category = 'editing', keys = 'f'2, command = vim.lsp.buf.rename, } end if capabilities.code_action then map.normal { name = 'Show code actions', category = 'view', keys = 'f'4, command = vim.lsp.buf.code_action, } map.visual { name = 'Show code actions in range', category = 'view', keys = 'f'4, command = vim.lsp.buf.range_code_action, } end if capabilities.document_highlight then -- this variable should technically be scoped to the current buffer. -- how to do that? local highlight_timer = nil auto 'highlight_reference_under_cursor' { { description = 'Automatically highlight a symbol under cursor', events = 'CursorHold', pattern = '<buffer>', command = function() if not highlight_timer then highlight_timer = vim.defer_fn(function() vim.lsp.buf.document_highlight() highlight_timer = nil end, 866) end end, }, { description = 'Clear highlighted symbol under cursor', events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' }, pattern = '<buffer>', command = function() if highlight_timer then highlight_timer:close() highlight_timer = nil end vim.lsp.buf.clear_references() end, }, } end end zero.on_attach(function(client, buffer_number) if client.name ~= 'null-ls' and not vim.b.lsp_attached then navic.attach(client, buffer_number) lsp_status.on_attach(client, buffer_number) setup_keybinds_and_actions(client, buffer_number) end end) zero.setup()end)new file mode 100644+265 / −0 text lines
local icon = require 'std.icon'local map = require 'std.keymap'local auto = require 'std.auto'local project = require 'std.project'local want = require 'std.want'-- TODO: setup codelens -> use lsp-signature plugin?-- TODO: setup custom cmp keybindswant { 'lsp-zero', 'null-ls', 'nvim-lsp-installer', 'neodev', 'rust-tools', 'nvim-navic', 'lsp-status',}(function(zero, null_ls, installer, neodev, rust, navic, lsp_status) installer.settings { ui = { --TODO: use some global float window settings border = 'rounded', }, } zero.preset 'recommended' zero.set_preferences { configure_diagnostics = false, set_lsp_keymaps = false, sign_icons = { error = icon 'Error', warn = icon 'Warning', hint = icon 'Hint', info = icon 'Information', }, } -- setup lsp for my neovim config zero.nvim_workspace { -- add paths of all plugins and neovim library = vim.api.nvim_get_runtime_file('', true), } -- Initialize rust_analyzer with rust-tools rust.setup { server = zero.build_options('rust_analyzer', {}), } -- this will prevent zero from loading this server. -- Java will be managed by nvim-jdtls, which wants to do things differently. -- see ftplugin/java.lua zero.build_options('jdtls', {}) -- lua neovim lsp neodev.setup { lspconfig = zero.defaults.nvim_workspace(), } -- disable disco mode while typing zero.setup_nvim_cmp { completion = { autocomplete = false, }, } local null_opts = zero.build_options 'null-ls' local formatting = null_ls.builtins.formatting local diagnostics = null_ls.builtins.diagnostics local code_actions = null_ls.builtins.code_actions local hover = null_ls.builtins.hover local completion = null_ls.builtins.completion -- run diagnostics on save local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE } null_ls.setup { on_attach = null_opts.on_attach, sources = { formatting.stylua, formatting.clang_format, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, hover.dictionary, diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.gitlint.with(diagnostics_on_save), diagnostics.protoc_gen_lint.with(diagnostics_on_save), diagnostics.protolint.with(diagnostics_on_save), diagnostics.selene.with(diagnostics_on_save).with { -- null-ls determines the root in a too simplistic manner. -- since my neovim configuration live inside my dotfiles, the dotfiles root -- was taken. but i want the neovim config folder as root. cwd = function(parameters) local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root) return root or parameters.root end, }, diagnostics.shellcheck.with(diagnostics_on_save), diagnostics.tidy.with(diagnostics_on_save), code_actions.refactoring, code_actions.shellcheck, completion.luasnip, }, } local function setup_keybinds_and_actions(client, buffer_number) -- TODO: use buffer number in keymaps -- TODO: make format changed lines command local capabilities = client.server_capabilities if capabilities.document_formatting then map.normal { name = 'Format buffer using LSP', category = "editing", keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.format { bufnr = buffer_number } vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end if capabilities.document_range_formatting then map.visual { name = 'Format range using LSP', category = 'editing', keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.range_formatting { bufnr = buffer_number } vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end --TODO: change some of these commands to telescoped versions if capabilities.hover then map.normal { name = 'Show Hover', category = 'view', keys = '<leader>' .. 'l' .. 'k', command = vim.lsp.buf.hover, } end if capabilities.goto_definition then map.normal { name = 'Go to Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 'd', command = vim.lsp.buf.definition, } end if capabilities.declaration then map.normal { name = 'Go to Declaration', category = 'navigation', keys = '<leader>' .. 'l' .. 'd' .. 'd', command = vim.lsp.buf.declaration, } end if capabilities.implementation then map.normal { name = 'Go to Implementation', category = 'navigation', keys = '<leader>' .. 'l' .. 'i', command = vim.lsp.buf.implementation, } end if capabilities.type_definition then map.normal { name = 'Go to Type Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 't', command = vim.lsp.buf.type_definition, } end if capabilities.find_references then map.normal { name = 'Go to References', category = 'navigation', keys = '<leader>' .. 'l' .. 'r', command = vim.lsp.buf.references } end if capabilities.call_hierarchy then map.normal { name = 'Go to Incoming Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c', command = vim.lsp.buf.incoming_calls, } map.normal { name = 'Go to Outgoing Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c' .. 'c', command = vim.lsp.buf.outgoing_calls, } end if capabilities.rename then map.normal { name = 'Rename symbol', category = 'editing', keys = 'f'2, command = vim.lsp.buf.rename, } end if capabilities.code_action then map.normal { name = 'Show code actions', category = 'view', keys = 'f'4, command = vim.lsp.buf.code_action, } map.visual { name = 'Show code actions in range', category = 'view', keys = 'f'4, command = vim.lsp.buf.range_code_action, } end if capabilities.document_highlight then -- this variable should technically be scoped to the current buffer. -- how to do that? local highlight_timer = nil auto 'highlight_reference_under_cursor' { { description = 'Automatically highlight a symbol under cursor', events = 'CursorHold', pattern = '<buffer>', command = function() if not highlight_timer then highlight_timer = vim.defer_fn(function() vim.lsp.buf.document_highlight() highlight_timer = nil end, 866) end end, }, { description = 'Clear highlighted symbol under cursor', events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' }, pattern = '<buffer>', command = function() if highlight_timer then highlight_timer:close() highlight_timer = nil end vim.lsp.buf.clear_references() end, }, } end end zero.on_attach(function(client, buffer_number) if client.name ~= 'null-ls' and not vim.b.lsp_attached then navic.attach(client, buffer_number) lsp_status.on_attach(client, buffer_number) setup_keybinds_and_actions(client, buffer_number) end end) zero.setup()end)+2 / −2 text lines
DiffDelete { fg = content_focus, gui = "strikethrough" }, -- diff mode: Deleted line |diff.txt| DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt| EndOfBuffer { LineNr }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. EndOfBuffer { Normal }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. NonText { fg = ui_unfocus }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.+23 / −10 text lines
+9 / −8 text lines
return self.display_name .. ':' .. ( all_default and toggle_off_icon or toggle_on_icon ) return self.display_name .. ' ' .. ( all_default and toggle_off_icon or toggle_on_icon ) return buffer .. (buffer == '' and '' or ' ') .. text +1 / −1 text lines
+1 / −1 text lines
+25 / −24 text lines
local icon = require'std.icon' return " %3(" .. self.mode_names[self.mode] .. "%) " return " ".. icon.vim .." %3(" .. self.mode_names[self.mode] .. "%) " if self.lfilename == "" then self.lfilename = " scratch " end if self.lfilename == "" then self.lfilename = "~scratch~" end return ' ' .. string.upper(vim.bo.filetype) return icon.file .. ' ' .. string.upper(vim.bo.filetype) return " [" .. table.concat(names, " ") .. "]" return icon.lsp .. " [" .. table.concat(names, " ") .. "]" self.icon = vim.diagnostic.is_disabled() and '﨡' or '蘒' self.icon = vim.diagnostic.is_disabled() and icon.toggle_off or icon.toggle_on return '🐢 ' .. self.relative_url return icon.subversion .. ' ' .. icon.branch.. ' ' .. self.relative_url return " " .. self.status_dict.head .. ' ' return icon.git .. " " .. icon.branch .. " " .. self.status_dict.head .. ' ' return count > 0 and (" " .. count .. ' ') return count > 0 and (icon.diff_add .. " " .. count .. ' ') return count > 0 and (" " .. count .. ' ') return count > 0 and (icon.diff_remove .. " " .. count .. ' ') return count > 0 and (" " .. count .. ' ') return count > 0 and (icon.diff_change .. " " .. count .. ' ') self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. " " self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. icon.folder .. " "+4 / −4 text lines
deleted file mode 100644+0 / −5 text lines
+3 / −3 text lines
new file mode 100644+26 / −0 text lines
local map = require'std.keymap'return { 'AckslD/nvim-neoclip.lua', keys = {'y', '<C-v><C-v>' }, dependencies = { 'nvim-telescope/telescope.nvim', }, config = function() local neoclip = require'neoclip' local telescope = require'telescope' local themes = require 'telescope.themes' local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } } neoclip.setup{} telescope.load_extension'neoclip' map.normal { name = 'Open clipboard history...', category = 'history', keys = '<C-v><C-v>', command = function() telescope.extensions.neoclip.default(cursor) end, } end,}+29 / −11 text lines
branch = 'main', -- cmdline = { relative = "cursor", position = { row = 0, col = 0 }, border = { style = "shadow" } }, config = function(_, opts) local noice = require'noice' noice.setup(opts) map.normal { name = 'Open search for notifications...', category = 'search', keys = '<C-n><C-n>', command = function() local telescope = require'telescope' -- telescope.load_extension'noice' telescope.extensions.noice.noice() end, } end,+15 / −2 text lines
+4 / −5 text lines
+88 / −163 text lines
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', cmd = 'Telescope', event = 'VeryLazy', config = function() local telescope = require 'telescope' local builtin = require 'telescope.builtin' local actions = require 'telescope.actions' local themes = require 'telescope.themes' local ivy = themes.get_ivy { layout_config = { preview_width = 0.69 } } local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } } local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } } 'nvim-telescope/telescope.nvim', branch = '0.1.x', cmd = 'Telescope', keys = { '<C-p><C-n>', '<C-e>', '<C-p><C-b>', '<C-p><C-g>', '<C-p><C-s>', '<C-p><C-k>', '<C-p><C-p>', '<C-p>', '<F1>' }, dependencies = { 'nvim-lua/plenary.nvim', 'nvim-tree/nvim-web-devicons', 'nvim-telescope/telescope-symbols.nvim', }, config = function() local telescope = require 'telescope' local builtin = require 'telescope.builtin' local actions = require 'telescope.actions' local themes = require 'telescope.themes' local ivy = themes.get_ivy { layout_config = { preview_width = 0.69 } } local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } } local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } } telescope.setup { defaults = { path_display = { 'truncate' }, sorting_strategy = 'ascending', layout_config = { horizontal = { prompt_position = 'bottom', preview_width = 0.69 }, vertical = { mirror = false }, width = 0.69, height = 0.42, preview_cutoff = 124, }, mappings = { i = { ['<C-j>'] = actions.cycle_history_next, ['<C-k>'] = actions.cycle_history_prev, ['<C-n>'] = actions.move_selection_next, ['<C-p>'] = actions.move_selection_previous, }, n = { q = actions.close }, }, }, } telescope.setup { defaults = { path_display = { 'truncate' }, sorting_strategy = 'ascending', layout_config = { horizontal = { prompt_position = 'top', preview_width = 0.69 }, vertical = { mirror = false }, width = 0.88, height = 0.69, preview_cutoff = 124, }, mappings = { i = { ['<C-j>'] = actions.cycle_history_next, ['<C-k>'] = actions.cycle_history_prev, ['<C-n>'] = actions.move_selection_next, ['<C-p>'] = actions.move_selection_previous, }, n = { q = actions.close }, }, extensions = { file_browser = { theme = 'ivy', -- cwd_to_path = true, -- select_buffer = true, -- collapse_dirs = true, git_status = false, -- auto_depth = true, -- grouped = true, }, }, }, } require'neoclip'.setup{} map.normal { name = 'Open macro history...', category = 'history', keys = '<C-p><C-m>', command = function() telescope.extensions.macroscope.default(dropdown) end, } map.normal { name = 'Open global search...', category = 'plugins', keys = '<C-p>', command = function() builtin.builtin() end, } map.normal { name = 'Open search for all files...', category = 'search', keys = '<C-p><C-p>', command = function() builtin.find_files(ivy) end, } map.normal { name = 'Open search for keymaps...', category = 'search', keys = '<C-p><C-k>', command = function() builtin.keymaps(dropdown) end, } map.normal { name = 'Open search for symbols...', category = 'search', keys = '<C-p><C-s>', command = function() builtin.symbols(cursor) end, } map.normal { name = 'Open search for all file contents...', category = 'search', keys = '<C-p><C-g>', command = function() builtin.live_grep(ivy) end, } map.normal { name = 'Open search for current buffer content...', category = 'search', keys = '<C-p><C-b>', command = function() builtin.current_buffer_fuzzy_find(ivy) end, } map.normal { name = 'Open search for buffers...', category = 'search', keys = '<C-e>', command = function() builtin.buffers(cursor) end, } map.normal { name = 'Open search for notifications...', category = 'search', keys = '<C-p><C-n>', command = function() telescope.extensions.noice.noice() end, } end, dependencies = { 'nvim-telescope/telescope-file-browser.nvim', 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-symbols.nvim', 'AckslD/nvim-neoclip.lua', 'nvim-tree/nvim-web-devicons', { 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build', }, }, }, end,deleted file mode 100644+0 / −8 text lines
+3 / −9 text lines
+1 / −1 text lines
new file mode 100644+26 / −0 text lines
return { toggle_on = '', toggle_off = '', diagnostic = '⊙', spelling = '', linenumber = '', linehighlight = '―', modified = '', lock = '', file = '', newline = '', carriage_return = '␍', lsp = '', subversion = '🐢', vim = '', branch = '', git = '', diff_add = '', diff_remove = '', diff_change = '', folder = '', terminal = '', macro = '', lazy = '',}+19 / −9 text lines
-- NOTE(oli): errors in here do not show up as configuration errors-- check the log file in the wezterm mux server runtime directory-- e.g. /run/user/1000/wezterm/logwez.on('mux-startup', function()local setup_workspaces = function() local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }endwez.on('gui-attached', function() maximize_window() -- mux server seems very slow on windows... if win32 then setup_workspaces() endend)-- NOTE(oli): errors in here do not show up as configuration errors-- check the log file in the wezterm mux server runtime directory-- e.g. /run/user/1000/wezterm/logwez.on('mux-startup', function() setup_workspaces()+46 / −34 text lines
local workspaces = require 'bugabinga.workspaces'local font = wez.font 'IBM Plex Mono'local font = wez.font'IBM Plex Mono'local font_rules = { { intensity = 'Bold', italic = true, font = wez.font { family = 'VictorMono', weight = 'Bold', style = 'Italic', }, }, { italic = true, intensity = 'Half', font = wez.font { family = 'VictorMono', weight = 'DemiBold', style = 'Italic', }, }, { italic = true, intensity = 'Normal', font = wez.font { family = 'VictorMono', style = 'Italic', }, },} font_size = 11 window_decorations = 'RESIZE' font_rules = font_rules, window_background_opacity = 1.0, -- nightly -- win32_system_backdrop = 'Acrylic', --default_cwd = wez.home_dir, default_cwd = wez.home_dir,