Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
c7217eb84212bb311fec794d32555a1907087b6e
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: 63f46bd2f226 · Showing diff
- Parent 2: a32fc4ce51fb · Diff against parent 2
bugabingas dorkfiles
c7217eb84212bb311fec794d32555a1907087b6e
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+1132 / −1218 text lines · all files grouped into 32 bars · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
+0 / −2 text lines
new file mode 100644+68 / −0 text lines
git/gitconfig~/.config/git/configgit/gitconfig.linux~/.config/git/.gitconfig.includesubversion/config~/.subversion/configsubversion/diff~/.subversion/diffsubversion/diff3~/.subversion/diff3subversion/merge~/.subversion/mergetools/git-info~/.local/bin/git-infocargo/config.toml~/.cargo/config.tomlbat/config~/.config/bat/confignushell/config.nu~/.config/nushell/config.nunushell/env.nu~/.config/nushell/env.nunushell/modules~/.config/nushell/modulesnushell/plugin.nu~/.config/nushell/plugin.nutopgrade/topgrade.linux.toml~/.config/topgrade.tomlwezterm~/.config/weztermwezterm/wezterm.service~/.config/systemd/user/wezterm.servicehelix/config.toml~/.config/helix/config.tomlhelix/languages.toml~/.config/helix/languages.tomlhelix/themes~/.config/helix/themeshelix/systemd/helix-dark-mode.service~/.config/systemd/user/helix-dark-mode.servicexplr~/.config/xplrssh/config~/.ssh/configneovim~/.config/nvim+2 / −1 text lines
* command for toggling case conventions+0 / −2 text lines
+1 / −0 text lines
+32 / −17 text lines
"better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" }, "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" }, "conform.nvim": { "branch": "master", "commit": "6dc1603ea408f476a57937bbeaf7f86520a21a98" }, "conform.nvim": { "branch": "master", "commit": "a6965ac128eba75537ec2bc5ddd5d5e357062bdc" }, "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, "lazy.nvim": { "branch": "main", "commit": "d3974346b6cef2116c8e7b08423256a834cb7cbc" }, "lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "b129892f783740e6cf741f2ea09fa5dd512aa584" }, "neotest-plenary": { "branch": "master", "commit": "dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" }, "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "3e8e207513e6ef520894950acd76b79902714103" }, "nvim-genghis": { "branch": "main", "commit": "01eeb090ea4947df6b6b9d8589b324b9f1aaf851" }, "nvim-genghis": { "branch": "main", "commit": "1e6855be88e2266c612903dbc337222b59a06e44" }, "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" }, "nvim-spectre": { "branch": "master", "commit": "4651801ba37a9407b7257287aec45b6653ffc5e9" }, "nvim-surround": { "branch": "main", "commit": "6d0dc3dbb557bcc6a024969da461df4ba803fc48" }, "nvim-tree.lua": { "branch": "master", "commit": "76db7ed0da3027882dd0a72de18643c2e26956dc" }, "nvim-treesitter": { "branch": "master", "commit": "3607d9c59cb16ed5368ecfed53e8ca1735bb98fb" }, "nvim-treesitter-context": { "branch": "master", "commit": "2650e6431f7daba5d9c2c64134fa5eb2312eb3d7" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" }, "nvim-spectre": { "branch": "master", "commit": "9653847cf2f225648967f6e9363643e327387579" }, "nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" }, "nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" }, "nvim-treesitter": { "branch": "master", "commit": "baaae36ac709f405c0ee5d39ef9ffd8d8160f1a3" }, "nvim-treesitter-context": { "branch": "master", "commit": "e6e71047bb323fb36f5664993a42adaac252bb36" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "0bdccb9c67a42a5e2d99384dc9bfa29b1451528f" }, "nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },<<<<<<< HEAD======= "oil.nvim": { "branch": "master", "commit": "8bb35eb81a48f14c4a1ef480c2bbb87ceb7cd8bb" }, "overseer.nvim": { "branch": "master", "commit": "dd701ed0639ef1e10d0ca8dec039719e916c4a7b" }, "pair-ls.nvim": { "branch": "master", "commit": "e7a8f55f54a6a1956b782ddefba79dc6bb308d1d" },>>>>>>> 2bc526b11d6c48ead4fde8f45b9105b0d1edd5c2 "qf_helper.nvim": { "branch": "master", "commit": "301cea47118ccfc91a7cc48e316f2abc1ec7c1c6" }, "resession.nvim": { "branch": "master", "commit": "dc8825439c619030925543a444c4186a2487c200" },<<<<<<< HEAD "schemastore.nvim": { "branch": "main", "commit": "8c46453bdf84ad91877effb95e0b6c7b51ea7dda" },<<<<<<< HEAD "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" }, "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" }, "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" }, "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" }, "venn.nvim": { "branch": "main", "commit": "a5430d75875acbe93e9685cdeb78c6eb2a329ed5" }, "vim-vscode-snippets": { "branch": "master", "commit": "812e60d1c648f889328761ec71daff09d1eb3177" },+73 / −66 text lines
local diagnostic_icons = { icon.error, icon.warn, icon.info, icon.hint }local diagnostic_icons = { icon.error, icon.warn, icon.info, icon.hint, } return string.format( '%s: %s', display_name[context.severity], context.message ) return string.format( '%s: %s', display_name[context.severity], context.message ) local ns = vim.api.nvim_create_namespace( 'test' .. tostring( severity ) ) local bufnr = vim.api.nvim_get_current_buf() local options = { bufnr = bufnr, lnum = line, end_lnum = line, col = 0, severity = severity, message = 'This is a test ' .. tostring( severity ) .. ' diagnostic', } local ns = vim.api.nvim_create_namespace( 'test' .. tostring( severity ) ) local bufnr = vim.api.nvim_get_current_buf() local options = { bufnr = bufnr, lnum = line, end_lnum = line, col = 0, severity = severity, message = 'This is a test ' .. tostring( severity ) .. ' diagnostic', }+1 / −172 text lines
local create_shared_config_path = function ( base_path, syntax_server ) local os_config if vim.fn.has 'linux' == 1 then os_config = syntax_server and 'config_ss_linux' or 'config_linux' elseif vim.fn.has 'mac' == 1 then os_config = syntax_server and 'config_ss_mac' or 'config_mac' else os_config = syntax_server and 'config_ss_win' or 'config_win' end return vim.fs.joinpath( base_path, os_config )endlocal find_launcher_jar = function ( base_path ) local plugins_dir = vim.fs.joinpath( base_path, 'plugins' ) local launchers = vim.fn.globpath( plugins_dir, 'org.eclipse.equinox.launcher_*.jar', false, true ) if table.is_empty( launchers ) then error( 'Could not find jdtls launcher jar in ' .. plugins_dir ) end -- vim.print('found launcher jars', launchers) return launchers[1]endlocal create_data_dir = function () local cwd = vim.uv.cwd() or '' local data_name = vim.fn.sha256( cwd ) local cache = vim.fn.stdpath 'cache' cache = type( cache ) == 'table' and cache[1] or cache return vim.fs.joinpath( cache, 'jdtls_data', data_name )endlocal function get_bundles() local mason_registry = require 'mason-registry' local java_debug = mason_registry.get_package 'java-debug-adapter' local java_test = mason_registry.get_package 'java-test' local java_debug_path = java_debug:get_install_path() local java_test_path = java_test:get_install_path() local bundles = {} --FIXME: refactor this! vim.list_extend( bundles, vim.split( --TODO: jdtls seemingly cannot get bindle info out of this jar -- -- Contains: Failed to get bundleInfo for bundle from /home/oli/.local/share/nvim/mason/packages/java-test/extension/server/com.microsoft.java.test.runner-jar-with-dependencies.jar -- " vim.fn.glob( java_debug_path .. '/extension/server/com.microsoft.java.debug.plugin-*.jar' ), '\n' ) ) vim.list_extend( bundles, vim.split( vim.fn.glob( java_test_path .. '/extension/server/*.jar' ), '\n' ) ) return bundlesendlocal create_jdtls_command = function ( syntax_server ) local mason_registry = require 'mason-registry' local jdtls_package_path = mason_registry.get_package 'jdtls':get_install_path() local shared_config_path = create_shared_config_path( jdtls_package_path, syntax_server ) local launcher_jar = find_launcher_jar( jdtls_package_path ) local data_dir = create_data_dir() local ss_option = syntax_server and '-Dsyntaxserver=true' or nil local command = { 'java', '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultStartLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.protocol=true', '-Dlog.level=ALL', '-Dosgi.checkConfiguration=true', '-Dosgi.sharedConfiguration.area=' .. shared_config_path, '-Dosgi.sharedConfiguration.area.readOnly=true', '-Dosgi.configuration.cascaded=true', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '-jar', launcher_jar, '-data', data_dir, } if ss_option then -- insert option after 'java' table.insert( command, 2, ss_option ) end return commandendlocal jdtls_lsp_start = function ( config, opts ) -- vim.print('jdtls lsp start', config, opts) require 'jdtls'.start_or_attach( config, opts )endlocal get_extended_capabilites = function () local ext = require 'jdtls'.extendedClientCapabilities ext.resolveAdditionalTextEditsSupport = true return extend local jdtls = require 'jdtls' jdtls.setup_dap { hotcodereplace = 'auto', } require 'jdtls.dap'.setup_dap_main_class_configs() require 'jdtls.setup'.add_commands() map.normal { description = 'Organize Imports', category = 'jdlts', keys = '<leader>ljo', command = jdtls.organize_imports, } map.normal { description = 'Extract Variable', category = 'jdlts', keys = '<leader>ljv', command = jdtls.extract_variable, } map.normal { description = 'Extract Constant', category = 'jdlts', keys = '<leader>ljc', command = jdtls.extract_constant, } map.normal { description = 'Test Nearest Method', category = 'jdlts', keys = '<leader>ljt', command = jdtls.test_nearest_method, } map.normal { description = 'Test Class', category = 'jdlts', keys = '<leader>ljT', command = jdtls.test_class, } map.normal { description = 'Update Config', category = 'jdlts', keys = '<leader>lju', command = '<cmd>JdtUpdateConfig<cr>', } map.visual { description = 'Extract Variable', category = 'jdlts', keys = '<leader>ljv', command = function () jdtls.extract_variable( true ) end, } map.visual { description = 'Extract Constant', category = 'jdlts', keys = '<leader>ljc', command = function () jdtls.extract_constant( true ) end, } map.visual { description = 'Extract Method', category = 'jdlts', keys = '<leader>ljm', command = function () jdtls.extract_method( true ) end, } custom_start = jdtls_lsp_start,+414 / −379 text lines
vim.validate { command = { command, { 'string', 'table', }, }, } vim.validate { command = { command, { 'string', 'table', }, }, } local buffer_path = vim.api.nvim_buf_get_name( bufnr ) local buffer_path = vim.api.nvim_buf_get_name( bufnr ) debug.print( string.format( 'searching lsp client for: match: %s, buffer: %s, path: %s', match, bufnr, buffer_path ) ) dbg.print( string.format( 'searching lsp client for: match: %s, buffer: %s, path: %s', match, bufnr, buffer_path ) ) local potential_client_configs = vim.iter( lsp_client_configs ) :map( function ( config ) vim.validate { ['config'] = { config, 'table', }, ['config.name'] = { config.name, 'string', }, ['config.filetypes'] = { config.filetypes, { 'string', 'table', }, }, ['config.command'] = { config.command, { 'string', 'table', }, }, ['config.environment'] = { config.environment, 'table', true, }, ['config.root_dir'] = { config.root_dir, 'function', 'string', }, ['config.single_file_support'] = { config.single_file_support, 'boolean', true, }, ['config.settings'] = { config.settings, 'table', true, }, ['config.workspaces'] = { config.workspaces, 'boolean', true, }, ['config.before_init'] = { config.before_init, 'function', true, }, ['config.init_options'] = { config.init_options, 'table', true, }, ['config.capabilities'] = { config.capabilities, 'table', true, }, ['config.custom_start'] = { config.custom_start, 'function', true, }, } -- normalize scalar values to its vector alternative for easier processing later on -- this mutates the lsp client configs! careful! config.command = type( config.command ) == 'string' and { expand_command( config.command ), } or expand_command( config.command ) config.environment = config.environment or {} config.filetypes = type( config.filetypes ) == 'string' and { config.filetypes, } or config.filetypes config.single_file_support = config.single_file_support == nil and false or config.single_file_support config.workspaces = config.workspaces == nil and false or config.workspaces config.capabilities = config.capabilities or {} config.init_options = config.init_options or {} local potential_client_configs = vim.iter( lsp_client_configs ) :map( function ( config ) vim.validate { ['config'] = { config, 'table', }, ['config.name'] = { config.name, 'string', }, ['config.filetypes'] = { config.filetypes, { 'string', 'table', }, }, ['config.command'] = { config.command, { 'string', 'table', }, }, ['config.environment'] = { config.environment, 'table', true, }, ['config.root_dir'] = { config.root_dir, 'function', 'string', }, ['config.single_file_support'] = { config.single_file_support, 'boolean', true, }, ['config.settings'] = { config.settings, 'table', true, }, ['config.workspaces'] = { config.workspaces, 'boolean', true, }, ['config.before_init'] = { config.before_init, 'function', true, }, ['config.init_options'] = { config.init_options, 'table', true, }, ['config.capabilities'] = { config.capabilities, 'table', true, }, ['config.custom_start'] = { config.custom_start, 'function', true, }, } -- normalize scalar values to its vector alternative for easier processing later on -- this mutates the lsp client configs! careful! config.command = type( config.command ) == 'string' and { expand_command( config.command ), } or expand_command( config.command ) config.environment = config.environment or {} config.filetypes = type( config.filetypes ) == 'string' and { config.filetypes, } or config.filetypes config.single_file_support = config.single_file_support == nil and false or config.single_file_support config.workspaces = config.workspaces == nil and false or config.workspaces config.capabilities = config.capabilities or {} config.init_options = config.init_options or {} --NOTE: this is super kool but has the limitation, that only lsp clients -- configured via my special lsp module are affected. local project_local_lsp_settings = localrc( '.lsp.settings.lua', 'table' ) or {} --NOTE: this is super kool but has the limitation, that only lsp clients -- configured via my special lsp module are affected. local project_local_lsp_settings = localrc( '.lsp.settings.lua', 'table' ) or {} local project_local_workspace_folders = localrc( '.lsp.workspace_folders.lua', 'table' ) or {} for _, config in ipairs( potential_client_configs ) do local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path ) local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = table.extend( 'force', capabilities, config.capabilities ) local settings = config.settings local settings_override = project_local_lsp_settings[config.name] if settings_override then debug.print( 'overriding settings with project local settings', settings, settings_override ) settings = vim.tbl_deep_extend( 'force', settings, settings_override ) end debug.print( 'starting command:', config.command ) local start_config = { cmd = config.command, cmd_cwd = root_dir, -- cmd_env = config.environment, detached = false, -- do i want this? root_dir = root_dir, -- workspace_folders = { config.root_dir(buffer_path) }, -- TODO: i think workspaces can only ever be declared per project. i cannot think of a generic way to calculate those, like with root_dir. maybe a toml/ini file in root_dir sets these? capabilities = capabilities, -- handlers = vim.lsp.handlers, settings = settings, -- commands = nil, -- what is this? init_options = config.init_options, name = config.name, -- get_language_id = nil, -- offset_encoding = nil, on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end, before_init = config.before_init, -- on_init = nil, -- should i send workspace/didChangeConfiguration here? on_exit = function ( code, signal, client_id ) debug.print( 'LSP CLIENT EXIT', code, signal, client_id ) end, on_attach = function ( client, attach_bufnr ) debug.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end, trace = debug.get() and 'on' or 'off', flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200, }, } dbg.print( 'patched project local workspace folders', project_local_workspace_folders ) local lsp_starter = config.custom_start or vim.lsp.start debug.print( 'starting lsp', start_config.name, root_dir ) lsp_starter( start_config, { bufnr = bufnr, -- TODO: reuse if workspaces -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported') reuse_client = function ( existing_client, new_config ) debug.print( 'lsp resuse client', existing_client.name, existing_client.workspace_folders, new_config.name, new_config.root_dir ) local settings = config.settings local settings_override = project_local_lsp_settings[config.name] if settings_override then dbg.print( 'overriding settings with project local settings', settings, settings_override ) settings = vim.tbl_deep_extend( 'force', settings, settings_override ) end --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder local same_name = existing_client.name == new_config.name local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir, } or nil local workspace_folders = root_workspace and { root_workspace, } or nil local workspace_folders_local = project_local_workspace_folders[config.name] if not workspace_folders_local then dbg.print( 'no local workspace folders found for ' .. config.name ) end if workspace_folders_local and config.workspaces then dbg.print( 'setting workspace folders to project local workspace folders', workspace_folders_local ) workspace_folders = workspace_folders and vim.tbl_deep_extend( 'force', workspace_folders, workspace_folders_local ) or workspace_folders_local end local new_root_raw = new_config.root_dir or nil local existing_root_raw = existing_client.workspace_folders and #existing_client.workspace_folders >= 1 and existing_client.workspace_folders[1].name or nil dbg.print( 'starting command:', config.command ) if not (new_root_raw and existing_root_raw) then return false end local start_config = { cmd = config.command, cmd_cwd = root_dir, -- cmd_env = config.environment, detached = false, -- do i want this? root_dir = root_dir, workspace_folders = workspace_folders, capabilities = capabilities, -- handlers = vim.lsp.handlers, settings = settings, -- commands = nil, -- what is this? init_options = config.init_options, name = config.name, -- get_language_id = nil, -- offset_encoding = nil, on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end, before_init = config.before_init, -- on_init = nil, -- should i send workspace/didChangeConfiguration here? on_exit = function ( code, signal, client_id ) dbg.print( 'LSP CLIENT EXIT', code, signal, client_id ) end, on_attach = function ( client, attach_bufnr ) dbg.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end, trace = dbg.get() and 'on' or 'off', flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200, }, } local new_root = vim.fs.normalize( new_root_raw ) local existing_root = vim.fs.normalize( existing_root_raw ) local same_root = new_root == existing_root local lsp_starter = config.custom_start or vim.lsp.start local reuse = same_name and same_root debug.print( 'reusing lsp client?', reuse ) return reuse end, } ) dbg.print( 'starting lsp', start_config.name, root_dir ) lsp_starter( start_config, { bufnr = bufnr, -- TODO: reuse if workspaces -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported') reuse_client = function ( existing_client, new_config ) dbg.print( 'lsp reuse client', existing_client.name, existing_client.workspace_folders, new_config.name, new_config.root_dir ) --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder local same_name = existing_client.name == new_config.name local new_root_raw = new_config.root_dir or nil local existing_root_raw = existing_client.workspace_folders and #existing_client.workspace_folders >= 1 and existing_client.workspace_folders[1].name or nil if not (new_root_raw and existing_root_raw) then return false end local new_root = vim.fs.normalize( new_root_raw ) local existing_root = vim.fs.normalize( existing_root_raw ) local same_root = new_root == existing_root local reuse = same_name and same_root dbg.print( 'reusing lsp client?', reuse ) return reuse end, } ) dbg.print( 'ATTACHING LSP CLIENT', config.name ) end if client.server_capabilities.documentSymbolProvider then local navic_ok, navic = pcall( require, 'nvim-navic' ) if navic_ok then navic.attach( client, bufnr ) else vim.notify 'nvim-navic not found. could not attach to lsp client.' end local navbuddy_ok, navbuddy = pcall( require, 'nvim-navbuddy' ) if navbuddy_ok then navbuddy.attach( client, bufnr ) map.normal { description = 'Open overview of symbols in current buffer', category = 'lsp', keys = '<leader>lo', command = function () navbuddy.open( bufnr ) end, buffer = bufnr, } else vim.notify 'nvim-navbuddy not found. could not attach to lsp client.' end end if client.server_capabilities.documentSymbolProvider then local navic_ok, navic = pcall( require, 'nvim-navic' ) if navic_ok then navic.attach( client, bufnr ) else vim.notify 'nvim-navic not found. could not attach to lsp client.' end local navbuddy_ok, navbuddy = pcall( require, 'nvim-navbuddy' ) if navbuddy_ok then navbuddy.attach( client, bufnr ) map.normal { description = 'Open overview of symbols in current buffer', category = 'lsp', keys = '<leader>lo', command = function () navbuddy.open( bufnr ) end, buffer = bufnr, } else vim.notify 'nvim-navbuddy not found. could not attach to lsp client.' end end if client.server_capabilities.documentHighlightProvider then -- the timer has application lifetime. no need to close local delay = 300 local debounced_highlight = defer.debounce_leading( vim.lsp.buf.document_highlight, delay ) local debounced_clear = defer.debounce_leading( vim.lsp.buf.clear_references, delay ) if client.server_capabilities.documentHighlightProvider then -- the timer has application lifetime. no need to close local delay = 300 local debounced_highlight = defer.debounce_leading( vim.lsp.buf.document_highlight, delay ) local debounced_clear = defer.debounce_leading( vim.lsp.buf.clear_references, delay ) auto 'document_highlight' { { description = 'Highlight symbol under cursor on hold', events = 'CursorHold', buffer = bufnr, command = debounced_highlight, }, { description = 'Remove highlight from symbol under cursor on move', events = { 'CursorMoved', 'InsertEnter', }, buffer = bufnr, command = debounced_clear, }, } end auto 'document_highlight' { { description = 'Highlight symbol under cursor on hold', events = 'CursorHold', buffer = bufnr, command = debounced_highlight, }, { description = 'Remove highlight from symbol under cursor on move', events = { 'CursorMoved', 'InsertEnter', }, buffer = bufnr, command = debounced_clear, }, } end { description = 'Start or reuse LSP client', events = 'FileType', command = lsp_start, }, { description = 'Hook: LSP client attached to buffer', events = 'LspAttach', command = lsp_attach, }, { description = 'Hook: LSP client detached from buffer', events = 'LspDetach', command = lsp_detach, }, { description = 'Semantic Tokens from the LSP', events = 'LspTokenUpdate', command = token_update, }, { description = 'Start or reuse LSP client', events = 'FileType', command = lsp_start, }, { description = 'Hook: LSP client attached to buffer', events = 'LspAttach', command = lsp_attach, }, { description = 'Hook: LSP client detached from buffer', events = 'LspDetach', command = lsp_detach, }, { description = 'Semantic Tokens from the LSP', events = 'LspTokenUpdate', command = token_update, }, local full_cmd = table.deep_copy( client.config.cmd ) full_cmd[1] = vim.fn.exepath( full_cmd[1] ) local basic = { id = client.id, name = name, cmd = table.concat( full_cmd, ' ' ), workspace_folders = vim.iter( client.workspace_folders ):map( function ( w ) return vim.fs.normalize( w.name ) end ) :totable(), filetypes = table.concat( config.filetypes, ', ' ), single_file_support = config.single_file_support, workspaces = config.workspaces, } return basic end ) :totable() local full_cmd = table.deep_copy( client.config.cmd ) full_cmd[1] = vim.fn.exepath( full_cmd[1] ) local basic = { id = client.id, name = name, cmd = table.concat( full_cmd, ' ' ), workspace_folders = vim.iter( client.workspace_folders ):map( function ( w ) return vim.fs.normalize( w.name ) end ) :totable(), filetypes = table.concat( config.filetypes, ', ' ), single_file_support = config.single_file_support, workspaces = config.workspaces, } return basic end ) :totable() Class = icon.class, Color = icon.color, Constant = icon.constant, Constructor = icon.constructor, Enum = icon.enum, EnumMember = icon.enum_member, Field = icon.field, File = icon.file, Folder = icon.folder, Function = icon['function'], Interface = icon.interface, Keyword = icon.keyword, Method = icon.method, Module = icon.module, Property = icon.property, Snippet = icon.snippet, Struct = icon.struct, Text = icon.text, Unit = icon.unit, Value = icon.value, Variable = icon.variable, Class = icon.class, Color = icon.color, Constant = icon.constant, Constructor = icon.constructor, Enum = icon.enum, EnumMember = icon.enum_member, Field = icon.field, File = icon.file, Folder = icon.folder, Function = icon['function'], Interface = icon.interface, Keyword = icon.keyword, Method = icon.method, Module = icon.module, Property = icon.property, Snippet = icon.snippet, Struct = icon.struct, Text = icon.text, Unit = icon.unit, Value = icon.value, Variable = icon.variable,+1 / −1 text lines
+2 / −1 text lines
+60 / −71 text lines
vim.g.border_style = { style = { top_left = '╭', top = '─', top_right = '╮', left = '│', right = '│', bottom_left = '╰', bottom = '─', bottom_right = '╯', },}vim.g.border_style = 'solid' -- vim.g.neovide_floating_blur_amount_x = 12.0 -- vim.g.neovide_floating_blur_amount_y = 12.0 -- vim.g.neovide_scroll_animation_length = 0.69 -- vim.g.neovide_fullscreen = true vim.g.neovide_remember_window_size = true vim.g.neovide_profiler = false -- vim.g.neovide_cursor_animation_length = 0.42 -- vim.g.neovide_cursor_trail_length = 0.42 vim.g.neovide_cursor_vfx_mode = 'railgun' -- vim.g.neovide_cursor_unfocused_outline_width = 0.125 vim.g.neovide_cursor_antialiasing = true vim.g.neovide_padding_top = 0 vim.g.neovide_padding_bottom = 0 vim.g.neovide_padding_right = 0 vim.g.neovide_padding_left = 0 vim.g.neovide_hide_mouse_when_typing = true vim.g.neovide_theme = 'auto' vim.g.neovide_refresh_rate = vim.uv.os_gethostname() == 'pop-os' and 144 or 60 vim.g.neovide_refresh_rate_idle = 5 -- vim.g.neovide_floating_blur_amount_x = 12.0 -- vim.g.neovide_floating_blur_amount_y = 12.0 -- vim.g.neovide_scroll_animation_length = 0.69 -- vim.g.neovide_fullscreen = true vim.g.neovide_remember_window_size = true vim.g.neovide_profiler = false -- vim.g.neovide_cursor_animation_length = 0.42 -- vim.g.neovide_cursor_trail_length = 0.42 vim.g.neovide_cursor_vfx_mode = 'railgun' -- vim.g.neovide_cursor_unfocused_outline_width = 0.125 vim.g.neovide_cursor_antialiasing = true vim.g.neovide_padding_top = 0 vim.g.neovide_padding_bottom = 0 vim.g.neovide_padding_right = 0 vim.g.neovide_padding_left = 0 vim.g.neovide_hide_mouse_when_typing = true vim.g.neovide_theme = 'auto' vim.g.neovide_refresh_rate = vim.uv.os_gethostname() == 'pop-os' and 144 or 60 vim.g.neovide_refresh_rate_idle = 5new file mode 100644+54 / −0 text lines
local debug = require 'std.dbg'local map = require 'std.map'local user_command = require 'std.user_command'local format = function () prequire 'conform'.format( { async = false, lsp_fallback = true, }, function ( err ) if err and debug.get() then vim.print( 'Format failed', err ) end end )endmap.N { description = 'Format buffer', category = 'format', keys = '=', command = format,}user_command.Format'Format the current buffer' ( format )return { 'stevearc/conform.nvim', cmd = { 'ConformInfo', }, opts = { formatters_by_ft = { -- https://github.com/razziel89/mdslw/issues/14 markdown = { 'mdslw', }, -- lua = { "stylua" }, toml = { 'taplo', }, sh = { 'shfmt', }, just = { 'just', }, zig = { 'zigfmt', }, -- Use the "*" file type to run formatters on all file types. ['*'] = { 'injected', 'typos', }, -- Use the "_" file type to run formatters on file types that don't -- have other formatters configured. ['_'] = { 'trim_whitespace', 'trim_newlines', }, }, formatters = { mdslw = { -- remove `:` from the default set of end markers -- prepend_args = { '--end-markers', '?!.', }, }, }, log_level = debug.get() and vim.log.levels.TRACE or vim.log.levels.INFO, }, init = function () vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" end,}deleted file mode 100644+0 / −54 text lines
local debug = require 'std.dbg'local map = require 'std.map'local user_command = require 'std.user_command'local format = function () prequire 'conform'.format( { async = false, lsp_fallback = true, }, function ( err ) if err and debug.get() then vim.print( 'Format failed', err ) end end )endmap.N { description = 'Format buffer', category = 'format', keys = '=', command = format,}user_command.Format'Format the current buffer' ( format )return { 'stevearc/conform.nvim', cmd = { 'ConformInfo', }, opts = { formatters_by_ft = { -- https://github.com/razziel89/mdslw/issues/14 markdown = { 'mdslw', }, -- lua = { "stylua" }, toml = { 'taplo', }, sh = { 'shfmt', }, just = { 'just', }, zig = { 'zigfmt', }, -- Use the "*" file type to run formatters on all file types. ['*'] = { 'injected', 'typos', }, -- Use the "_" file type to run formatters on file types that don't -- have other formatters configured. ['_'] = { 'trim_whitespace', 'trim_newlines', }, }, formatters = { mdslw = { -- remove `:` from the default set of end markers -- prepend_args = { '--end-markers', '?!.', }, }, }, log_level = debug.get() and vim.log.levels.TRACE or vim.log.levels.INFO, }, init = function () vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" end,}new file mode 100644+114 / −0 text lines
--FIXME: own thisreturn { 'L3MON4D3/LuaSnip', dependencies = { 'stevearc/vim-vscode-snippets', }, config = function () local luasnip = require 'luasnip' local has_vim_snippet, snippet = pcall( require, 'vim.snippet' ) require 'luasnip.loaders.from_vscode'.lazy_load() vim.keymap.set( 's', '<Tab>', '<Plug>luasnip-jump-next' ) vim.keymap.set( 's', '<C-h>', '<Plug>luasnip-jump-prev' ) vim.keymap.set( 's', '<C-l>', '<Plug>luasnip-jump-next' ) vim.keymap.set( { 'i', 's', }, '<C-k>', function () pcall( luasnip.change_choice, -1 ) end ) vim.keymap.set( { 'i', 's', }, '<C-j>', function () pcall( luasnip.change_choice, 1 ) end ) local aug = vim.api.nvim_create_augroup( 'ClearLuasnipSession', { clear = true, } ) -- Can't use InsertLeave here because that fires when we go to select mode vim.api.nvim_create_autocmd( 'CursorHold', { desc = 'Deactivate snippet after leaving insert/select mode', pattern = '*', group = aug, callback = function () vim.cmd.LuaSnipUnlinkCurrent { mods = { emsg_silent = true, }, } if has_vim_snippet then snippet.exit() end end, } ) vim.keymap.set( 'i', '<C-h>', function () if luasnip.get_active_snip() then luasnip.jump( -1 ) elseif has_vim_snippet and snippet.active() then snippet.jump( -1 ) else local cur = vim.api.nvim_win_get_cursor( 0 ) pcall( vim.api.nvim_win_set_cursor, 0, { cur[1], cur[2] - 1, } ) end end ) vim.keymap.set( 'i', '<C-l>', function () if luasnip.get_active_snip() then luasnip.jump( 1 ) elseif has_vim_snippet and snippet.active() then snippet.jump( 1 ) else local cur = vim.api.nvim_win_get_cursor( 0 ) pcall( vim.api.nvim_win_set_cursor, 0, { cur[1], cur[2] + 1, } ) end end ) -- Required to support nested placeholders -- From https://github.com/L3MON4D3/LuaSnip/wiki/Nice-Configs#imitate-vscodes-behaviour-for-nested-placeholders local util = require 'luasnip.util.util' luasnip.config.setup { store_selection_keys = '<Tab>', updateevents = 'TextChanged,TextChangedI', parser_nested_assembler = function ( _, snippet ) local select = function ( snip, no_move ) snip.parent:enter_node( snip.indx ) -- upon deletion, extmarks of inner nodes should shift to end of -- placeholder-text. for _, node in ipairs( snip.nodes ) do node:set_mark_rgrav( true, true ) end -- SELECT all text inside the snippet. if not no_move then vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( '<Esc>', true, false, true ), 'n', true ) local pos_begin, pos_end = snip.mark:pos_begin_end() util.normal_move_on( pos_begin ) vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( 'v', true, false, true ), 'n', true ) util.normal_move_before( pos_end ) vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( 'o<C-G>', true, false, true ), 'n', true ) end end function snippet:jump_into( dir, no_move ) if self.active then -- inside snippet, but not selected. if dir == 1 then self:input_leave() return self.next:jump_into( dir, no_move ) else select( self, no_move ) return self end else -- jumping in from outside snippet. self:input_enter() if dir == 1 then select( self, no_move ) return self else return self.inner_last:jump_into( dir, no_move ) end end end -- this is called only if the snippet is currently selected. function snippet:jump_from( dir, no_move ) if dir == 1 then return self.inner_first:jump_into( dir, no_move ) else self:input_leave() return self.prev:jump_into( dir, no_move ) end end return snippet end, } end,}deleted file mode 100644+0 / −34 text lines
return { 'williamboman/mason.nvim', version = '1.*', lazy = false, opts = { ui = { border = vim.g.border_style, width = 0.69, height = 0.69, }, }, dependencies = { { 'WhoIsSethDaniel/mason-tool-installer.nvim', lazy = false, opts = { ensure_installed = { 'lua-language-server', 'shellcheck', 'editorconfig-checker', 'shfmt', 'jdtls', 'java-test', 'java-debug-adapter', 'lemminx', 'marksman', 'typos', 'gitleaks', 'mdslw', }, }, }, },}new file mode 100644+14 / −0 text lines
+10 / −10 text lines
deleted file mode 100644+0 / −45 text lines
return { 'nvim-neorg/neorg', version = '8.*', dependencies = { { 'nvim-lua/plenary.nvim', version = '0.1.4', }, { 'nvim-neorg/lua-utils.nvim', version = '1.0.2', }, { 'nvim-neotest/nvim-nio', version = '1.7.*', }, { 'MunifTanjim/nui.nvim', version = '0.3.0', }, { 'nvim-treesitter/nvim-treesitter', }, }, build = function () package.loaded['neorg'] = nil require 'neorg'.setup_after_build() pcall( vim.cmd.Neorg, 'sync-parsers' ) end, ft = 'norg', cmd = 'Neorg', opts = { load = { ['core.defaults'] = {}, -- Loads default behaviour ['core.concealer'] = { -- Adds pretty icons to your documents config = { icons = { todo = { undone = { icon = ' ', }, }, }, }, }, ['core.completion'] = { config = { engine = 'nvim-cmp', }, }, ['core.presenter'] = { config = { zen_mode = 'zen-mode', }, }, }, },}deleted file mode 100644+0 / −1 text lines
return { 'bugabinga/nvim-jdtls', }deleted file mode 100644+0 / −14 text lines
new file mode 100644+162 / −0 text lines
local map = require 'std.map'local user_command = require 'std.user_command'map.normal { description = 'Toggle task view', category = 'tasks', keys = '<leader>99', command = function () prequire 'overseer'.toggle { enter = true, direction = 'right', } end,}map.normal { description = 'Run task', category = 'tasks', keys = '<leader>9r', command = function () prequire 'overseer'._run_template() end,}map.normal { description = 'Run any command as task', category = 'tasks', keys = '<leader>9c', command = function () prequire 'overseer'._run_command() end,}map.normal { description = 'Load task bundle', category = 'tasks', keys = '<leader>9r', command = function () prequire 'overseer'._load_bundle() end,}map.normal { description = 'Run an action on the most recent task, or the task under the cursor', category = 'tasks', keys = '<leader>9d', command = function () prequire 'overseer'._quick_action() end,}map.normal { description = 'Select a task to run an action on', category = 'tasks', keys = '<leader>9s', command = function () prequire 'overseer'._task_action() end,}map.normal { description = 'Display diagnostic information about overseer', category = 'tasks', keys = '<leader>9i', command = function () prequire 'overseer'._info() end,}user_command.OverseerDebugParser'Open a tab with windows laid out for debugging a parser' ( function () prequire 'overseer'.debug_parser() end )user_command.Grep'Run your grepprg as an Overseer task' { nargs = '*', bang = true, bar = true, complete = 'file', } ( function ( params ) local args = vim.fn.expandcmd( params.args ) -- Insert args at the '$*' in the grepprg local cmd, num_subs = vim.o.grepprg:gsub( '%$%*', args ) if num_subs == 0 then cmd = cmd .. ' ' .. args end local cwd prequire( 'oil', function ( oil ) cwd = oil.get_current_dir() end ) local task = prequire 'overseer'.new_task { cmd = cmd, cwd = cwd, name = 'grep ' .. args, components = { { 'on_output_quickfix', errorformat = vim.o.grepformat, open = not params.bang, open_height = 8, items_only = true, }, -- We don't care to keep this around as long as most tasks { 'on_complete_dispose', timeout = 30, }, 'default', }, } task:start() end )user_command.Make'Run your makeprg as an Overseer task' { nargs = '*', bang = true, } ( function ( params ) -- Insert args at the '$*' in the makeprg local cmd, num_subs = vim.o.makeprg:gsub( '%$%*', params.args ) if num_subs == 0 then cmd = cmd .. ' ' .. params.args end local task = prequire 'overseer'.new_task { cmd = vim.fn.expandcmd( cmd ), components = { { 'on_output_quickfix', open = not params.bang, open_height = 8, }, 'unique', 'default', }, } task:start() end )return { { 'stevearc/resession.nvim', lazy = true, opts = { extensions = { overseer = { status = { 'RUNNING', }, }, }, }, }, { 'stevearc/overseer.nvim', opts = { strategy = { 'jobstart', }, dap = false, log = { { type = 'echo', level = vim.log.levels.WARN, }, { type = 'file', filename = 'overseer.log', level = vim.log.levels.DEBUG, }, }, component_aliases = { default = { { 'display_duration', detail_level = 2, }, 'on_output_summarize', 'on_exit_set_status', { 'on_complete_notify', system = 'unfocused', }, 'on_complete_dispose', }, default_neotest = { 'unique', { 'on_complete_notify', system = 'unfocused', on_change = true, }, 'default', }, }, }, }, }new file mode 100644+45 / −0 text lines
local map = require 'std.map'map.normal { description = 'Grep search for word under cursor', category = 'search', keys = 'gw', command = '<cmd>cclose <bar> Grep <cword><cr>',}map.normal { description = 'Goto next quickfix item', category = 'navigation', keys = ']q', command = '<cmd>QNext<cr>',}map.normal { description = 'Goto previous quickfix item', category = 'navigation', keys = '[q', command = '<cmd>QPrev<cr>',}map.normal { description = 'Toggle open quickfix window', category = 'navigation', keys = '<leader>Q', command = '<cmd>QFToggle!<CR>',}map.normal { description = 'Toggle open loclist window', category = 'navigation', keys = '<leader>L', command = '<cmd>LLToggle!<CR>',}return { 'stevearc/qf_helper.nvim', ft = 'qf', cmd = { 'QNext', 'QPrev', 'QFToggle', 'QFOpen', 'LLToggle', }, opts = { prefer_loclist = false, },}deleted file mode 100644+0 / −45 text lines
local map = require 'std.map'map.normal { description = 'Grep search for word under cursor', category = 'search', keys = 'gw', command = '<cmd>cclose <bar> Grep <cword><cr>',}map.normal { description = 'Goto next quickfix item', category = 'navigation', keys = ']q', command = '<cmd>QNext<cr>',}map.normal { description = 'Goto previous quickfix item', category = 'navigation', keys = '[q', command = '<cmd>QPrev<cr>',}map.normal { description = 'Toggle open quickfix window', category = 'navigation', keys = '<leader>Q', command = '<cmd>QFToggle!<CR>',}map.normal { description = 'Toggle open loclist window', category = 'navigation', keys = '<leader>L', command = '<cmd>LLToggle!<CR>',}return { 'stevearc/qf_helper.nvim', ft = 'qf', cmd = { 'QNext', 'QPrev', 'QFToggle', 'QFOpen', 'LLToggle', }, opts = { prefer_loclist = false, },}deleted file mode 100644+0 / −114 text lines
--FIXME: own thisreturn { 'L3MON4D3/LuaSnip', dependencies = { 'stevearc/vim-vscode-snippets', }, config = function () local luasnip = require 'luasnip' local has_vim_snippet, snippet = pcall( require, 'vim.snippet' ) require 'luasnip.loaders.from_vscode'.lazy_load() vim.keymap.set( 's', '<Tab>', '<Plug>luasnip-jump-next' ) vim.keymap.set( 's', '<C-h>', '<Plug>luasnip-jump-prev' ) vim.keymap.set( 's', '<C-l>', '<Plug>luasnip-jump-next' ) vim.keymap.set( { 'i', 's', }, '<C-k>', function () pcall( luasnip.change_choice, -1 ) end ) vim.keymap.set( { 'i', 's', }, '<C-j>', function () pcall( luasnip.change_choice, 1 ) end ) local aug = vim.api.nvim_create_augroup( 'ClearLuasnipSession', { clear = true, } ) -- Can't use InsertLeave here because that fires when we go to select mode vim.api.nvim_create_autocmd( 'CursorHold', { desc = 'Deactivate snippet after leaving insert/select mode', pattern = '*', group = aug, callback = function () vim.cmd.LuaSnipUnlinkCurrent { mods = { emsg_silent = true, }, } if has_vim_snippet then snippet.exit() end end, } ) vim.keymap.set( 'i', '<C-h>', function () if luasnip.get_active_snip() then luasnip.jump( -1 ) elseif has_vim_snippet and snippet.active() then snippet.jump( -1 ) else local cur = vim.api.nvim_win_get_cursor( 0 ) pcall( vim.api.nvim_win_set_cursor, 0, { cur[1], cur[2] - 1, } ) end end ) vim.keymap.set( 'i', '<C-l>', function () if luasnip.get_active_snip() then luasnip.jump( 1 ) elseif has_vim_snippet and snippet.active() then snippet.jump( 1 ) else local cur = vim.api.nvim_win_get_cursor( 0 ) pcall( vim.api.nvim_win_set_cursor, 0, { cur[1], cur[2] + 1, } ) end end ) -- Required to support nested placeholders -- From https://github.com/L3MON4D3/LuaSnip/wiki/Nice-Configs#imitate-vscodes-behaviour-for-nested-placeholders local util = require 'luasnip.util.util' luasnip.config.setup { store_selection_keys = '<Tab>', updateevents = 'TextChanged,TextChangedI', parser_nested_assembler = function ( _, snippet ) local select = function ( snip, no_move ) snip.parent:enter_node( snip.indx ) -- upon deletion, extmarks of inner nodes should shift to end of -- placeholder-text. for _, node in ipairs( snip.nodes ) do node:set_mark_rgrav( true, true ) end -- SELECT all text inside the snippet. if not no_move then vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( '<Esc>', true, false, true ), 'n', true ) local pos_begin, pos_end = snip.mark:pos_begin_end() util.normal_move_on( pos_begin ) vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( 'v', true, false, true ), 'n', true ) util.normal_move_before( pos_end ) vim.api.nvim_feedkeys( vim.api.nvim_replace_termcodes( 'o<C-G>', true, false, true ), 'n', true ) end end function snippet:jump_into( dir, no_move ) if self.active then -- inside snippet, but not selected. if dir == 1 then self:input_leave() return self.next:jump_into( dir, no_move ) else select( self, no_move ) return self end else -- jumping in from outside snippet. self:input_enter() if dir == 1 then select( self, no_move ) return self else return self.inner_last:jump_into( dir, no_move ) end end end -- this is called only if the snippet is currently selected. function snippet:jump_from( dir, no_move ) if dir == 1 then return self.inner_first:jump_into( dir, no_move ) else self:input_leave() return self.prev:jump_into( dir, no_move ) end end return snippet end, } end,}+4 / −4 text lines
command = function () spectre.open_visual { select_word = true, } end, command = function () require 'spectre'.open_visual { select_word = true, } end, command = function () spectre.open_visual() end, command = function () require 'spectre'.open_visual() end,deleted file mode 100644+0 / −162 text lines
local map = require 'std.map'local user_command = require 'std.user_command'map.normal { description = 'Toggle task view', category = 'tasks', keys = '<leader>99', command = function () prequire 'overseer'.toggle { enter = true, direction = 'right', } end,}map.normal { description = 'Run task', category = 'tasks', keys = '<leader>9r', command = function () prequire 'overseer'._run_template() end,}map.normal { description = 'Run any command as task', category = 'tasks', keys = '<leader>9c', command = function () prequire 'overseer'._run_command() end,}map.normal { description = 'Load task bundle', category = 'tasks', keys = '<leader>9r', command = function () prequire 'overseer'._load_bundle() end,}map.normal { description = 'Run an action on the most recent task, or the task under the cursor', category = 'tasks', keys = '<leader>9d', command = function () prequire 'overseer'._quick_action() end,}map.normal { description = 'Select a task to run an action on', category = 'tasks', keys = '<leader>9s', command = function () prequire 'overseer'._task_action() end,}map.normal { description = 'Display diagnostic information about overseer', category = 'tasks', keys = '<leader>9i', command = function () prequire 'overseer'._info() end,}user_command.OverseerDebugParser'Open a tab with windows laid out for debugging a parser' ( function () prequire 'overseer'.debug_parser() end )user_command.Grep'Run your grepprg as an Overseer task' { nargs = '*', bang = true, bar = true, complete = 'file', } ( function ( params ) local args = vim.fn.expandcmd( params.args ) -- Insert args at the '$*' in the grepprg local cmd, num_subs = vim.o.grepprg:gsub( '%$%*', args ) if num_subs == 0 then cmd = cmd .. ' ' .. args end local cwd prequire( 'oil', function ( oil ) cwd = oil.get_current_dir() end ) local task = prequire 'overseer'.new_task { cmd = cmd, cwd = cwd, name = 'grep ' .. args, components = { { 'on_output_quickfix', errorformat = vim.o.grepformat, open = not params.bang, open_height = 8, items_only = true, }, -- We don't care to keep this around as long as most tasks { 'on_complete_dispose', timeout = 30, }, 'default', }, } task:start() end )user_command.Make'Run your makeprg as an Overseer task' { nargs = '*', bang = true, } ( function ( params ) -- Insert args at the '$*' in the makeprg local cmd, num_subs = vim.o.makeprg:gsub( '%$%*', params.args ) if num_subs == 0 then cmd = cmd .. ' ' .. params.args end local task = prequire 'overseer'.new_task { cmd = vim.fn.expandcmd( cmd ), components = { { 'on_output_quickfix', open = not params.bang, open_height = 8, }, 'unique', 'default', }, } task:start() end )return { { 'stevearc/resession.nvim', lazy = true, opts = { extensions = { overseer = { status = { 'RUNNING', }, }, }, }, }, { 'stevearc/overseer.nvim', opts = { strategy = { 'jobstart', }, dap = false, log = { { type = 'echo', level = vim.log.levels.WARN, }, { type = 'file', filename = 'overseer.log', level = vim.log.levels.DEBUG, }, }, component_aliases = { default = { { 'display_duration', detail_level = 2, }, 'on_output_summarize', 'on_exit_set_status', { 'on_complete_notify', system = 'unfocused', }, 'on_complete_dispose', }, default_neotest = { 'unique', { 'on_complete_notify', system = 'unfocused', on_change = true, }, 'default', }, }, }, }, }+19 / −22 text lines
{ name = '.save.actions.lua', weight = DEFINITELY, }, { name = '.lsp.settings.lua', weight = DEFINITELY, }, { name = '.lazy.specs.lua', weight = DEFINITELY, }, { name = '.editorconfig', weight = LIKELY, }, { name = '.git', weight = LIKELY, }, { name = '.gitignore', weight = LIKELY, }, { name = '.svn', weight = LIKELY, }, { name = 'justfile', weight = LIKELY, }, { name = 'Makefile', weight = LIKELY, }, { name = 'Jenkinsfile', weight = MAYBE, }, { name = 'LICENSE', weight = MAYBE, }, { name = 'LICENSE.md', weight = MAYBE, }, { name = 'LICENSE.txt', weight = MAYBE, }, { name = 'COPYING', weight = MAYBE, }, { name = 'README', weight = MAYBE, }, { name = 'README.md', weight = MAYBE, }, { name = 'flake.nix', weight = MAYBE, }, { name = 'flake.nix', weight = MAYBE, }, { name = '.save.actions.lua', weight = DEFINITELY, }, { name = '.lsp.settings.lua', weight = DEFINITELY, }, { name = '.lsp.workspace_folders.lua', weight = DEFINITELY, }, { name = '.lazy.specs.lua', weight = DEFINITELY, }, { name = '.editorconfig', weight = LIKELY, }, { name = '.git', weight = LIKELY, }, { name = '.gitignore', weight = LIKELY, }, { name = '.svn', weight = LIKELY, }, { name = 'justfile', weight = LIKELY, }, { name = 'Makefile', weight = LIKELY, }, { name = 'Jenkinsfile', weight = MAYBE, }, { name = 'LICENSE', weight = MAYBE, }, { name = 'LICENSE.md', weight = MAYBE, }, { name = 'LICENSE.txt', weight = MAYBE, }, { name = 'COPYING', weight = MAYBE, }, { name = 'README', weight = MAYBE, }, { name = 'README.md', weight = MAYBE, }, { name = 'flake.nix', weight = MAYBE, }, { name = 'flake.nix', weight = MAYBE, },+2 / −0 text lines
Binary size (old → new): 822 → 848 bytes.
+5 / −0 text lines
new file mode 100644+40 / −0 text lines
IBM 3270Anonymous ProAurulent Sans MonoBigBlueTerminalPlusBitstream Vera Sans MonoIBM Plex MonoCascadia CodeCousineD2CodingDejaVu Sans MonoDroid Sans MonoEnvy Code RFantasque Sans MonoFiraCodeGeistMonoHackHaskligHermitiA Writer Mono VInconsolataIntel One MonoIosevkaJetBrainsMonoLektonLiberation MonoLilexMartianMonoMonaspace Argon VarMonaspace Krypton VarMonaspace Neon VarMonofurMonoidMononokiRec Mono CasualRec Mono LinearRobotoMonoShare Tech MonoSource Code ProTerminusVictorMono+9 / −1 text lines
elseif hostname == 'fedora' then font_size = 16 local font_names = {} local nerdfonts = io.open(wez.config_dir .. '/nerdfonts', 'r') for font_name in nerdfonts:lines() do table.insert(font_names,font_name) end local random_font = font_names[math.random(#font_names)] font = wez.font(random_font) show_update_window = false,