Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
1901534cc2c184c83fcc2d7c7f3c633cb5b355cc
Oliver Jan Krylow <olver@bugabinga.net> ·
unsigned
- Parent 1: a21a2de0f511 · Diff against parent 1
- Parent 2: ecf8bb8a02a4 · Showing diff
bugabingas dorkfiles
1901534cc2c184c83fcc2d7c7f3c633cb5b355cc
Oliver Jan Krylow <olver@bugabinga.net> ·
unsigned
+2200 / −1349 text lines · all files grouped into 32 bars
new file mode 100644+12 / −0 text lines
(("local" @keyword) (#set! conceal "⋅"))(("function" @keyword.function) (#set! conceal "ϝ"))(("end" @keyword.function) (#set! conceal "∎"))(("return" @keyword.return) (#set! conceal "↳"))(("then" @conditional) (#set! conceal "⟶"))((dot_index_expression table: (identifier) @variable (#eq? @variable "vim")) (#set! conceal ""))((function_call name: (identifier) @function (#eq? @function "require")) (#set! conceal "")); ((function_call name: (identifier) @function (#eq? @function "want")) (#set! conceal "ω")); ((local_declaration name: (identifier) @variable (#eq? @variable "want") (#set! conceal "ω"))+4 / −0 text lines
+14 / −12 text lines
require 'bugabinga.devicons'require 'bugabinga.icons'-- TODO: load plugins/init.lua and sync on write. reload init.lua?-- TODO: use nvim-specific lsp only in neovim config-- TODO: steal filetype settings from shark, astrovim, lunarvim etc-- TODO: is it possible to cache LSP init per project?-- TODO: DAP-- TODO: fix cursor flicker when openinig neotree and other windows stuff in lsp buffers+10 / −2 text lines
new file mode 100644+125 / −0 text lines
-- TODO: once the colortheme is lushified, use it as a source of colors herelocal want = require 'bugabinga.std.want'want { 'nvim-web-devicons' } (function(devicons) devicons.setup { -- return a default icon when icon query cannot be mapped to existing icon default = true, override = { -- -- FILE sh = { icon = '', color = '#1DC123', cterm_color = '59', name = 'Sh' }, toml = { icon = '', color = '#e24329', cterm_color = '59', name = 'Toml' }, justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, Justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.Justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.gitattributes'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitAttributes' }, ['.gitconfig'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitConfig' }, ['.gitignore'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitIgnore' }, ['.gitlab-ci.yml'] = { icon = '', color = '#e24329', cterm_color = '166', name = 'GitlabCI' }, ['.gitmodules'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitModules' }, ['diff'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'Diff' }, -- -- KIND Text = { icon = '', color = '#949494', cterm_color = '59', name = 'TextSymbol' }, Method = { icon = 'm', color = '#949494', cterm_color = '59', name = 'MethodSymbol' }, Function = { icon = '', color = '#949494', cterm_color = '59', name = 'FunctionSymbol' }, Constructor = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstructorSymbol' }, Field = { icon = '', color = '#949494', cterm_color = '59', name = 'FieldSymbol' }, Variable = { icon = '', color = '#949494', cterm_color = '59', name = 'VariableSymbol' }, Class = { icon = '', color = '#949494', cterm_color = '59', name = 'ClassSymbol' }, Interface = { icon = '', color = '#949494', cterm_color = '59', name = 'InterfaceSymbol' }, Module = { icon = '', color = '#949494', cterm_color = '59', name = 'ModuleSymbol' }, Property = { icon = '', color = '#949494', cterm_color = '59', name = 'PropertySymbol' }, Unit = { icon = '', color = '#949494', cterm_color = '59', name = 'UnitSymbol' }, Value = { icon = '', color = '#949494', cterm_color = '59', name = 'ValueSymbol' }, Enum = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumSymbol' }, Keyword = { icon = '', color = '#949494', cterm_color = '59', name = 'KeywordSymbol' }, Snippet = { icon = '', color = '#949494', cterm_color = '59', name = 'SnippetSymbol' }, Color = { icon = '', color = '#949494', cterm_color = '59', name = 'ColorSymbol' }, File = { icon = '', color = '#949494', cterm_color = '59', name = 'FileSymbol' }, Reference = { icon = '', color = '#949494', cterm_color = '59', name = 'ReferenceSymbol' }, Folder = { icon = '', color = '#949494', cterm_color = '59', name = 'FolderSymbol' }, EnumMember = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumMemberSymbol' }, Constant = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstantSymbol' }, Struct = { icon = '', color = '#949494', cterm_color = '59', name = 'StructSymbol' }, Event = { icon = '', color = '#949494', cterm_color = '59', name = 'EventSymbol' }, Operator = { icon = '', color = '#949494', cterm_color = '59', name = 'OperatorSymbol' }, TypeParameter = { icon = '', color = '#949494', cterm_color = '59', name = 'TypeParameterSymbol' }, -- -- TYPE Array = { icon = '', color = '#949494', cterm_color = '59', name = 'ArraySymbol' }, Number = { icon = '', color = '#949494', cterm_color = '59', name = 'NumberSymbol' }, String = { icon = '', color = '#949494', cterm_color = '59', name = 'StringSymbol' }, Boolean = { icon = '蘒', color = '#949494', cterm_color = '59', name = 'BooleanSymbol' }, Object = { icon = '', color = '#949494', cterm_color = '59', name = 'ObjectSymbol' }, -- -- DOCUMENTS Files = { icon = '', color = '#949494', cterm_color = '59', name = 'FilesSymbol' }, OpenFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'OpenFolderSymbol' }, EmptyFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'EmptyFolderSymbol' }, -- -- VCS VcsAdded = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsAddedSymbol' }, VcsModified = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsModifiedSymbol' }, VcsRemoved = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRemovedSymbol' }, VcsIgnored = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsIgnoredSymbol' }, VcsRenamed = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRenamedSymbol' }, VcsDiff = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsDiffSymbol' }, VcsRepo = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRepoSymbol' }, VcsUntracked = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUntrackedSymbol' }, VcsUnstaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUnstagedSymbol' }, VcsStaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsStagedSymbol' }, VcsConflicted = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsConflictedSymbol' }, -- --UI ArrowClosed = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowClosedSymbol' }, ArrowOpen = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowOpenSymbol' }, Lock = { icon = '', color = '#949494', cterm_color = '59', name = 'LockSymbol' }, Circle = { icon = '', color = '#949494', cterm_color = '59', name = 'CircleSymbol' }, BigCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigCircleSymbol' }, BigUnfilledCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigUnfilledCircleSymbol' }, Close = { icon = '', color = '#949494', cterm_color = '59', name = 'CloseSymbol' }, NewFile = { icon = '', color = '#949494', cterm_color = '59', name = 'NewFileSymbol' }, Search = { icon = '', color = '#949494', cterm_color = '59', name = 'SearchSymbol' }, Lightbulb = { icon = '', color = '#949494', cterm_color = '59', name = 'LightbulbSymbol' }, Project = { icon = '', color = '#949494', cterm_color = '59', name = 'ProjectSymbol' }, Dashboard = { icon = '', color = '#949494', cterm_color = '59', name = 'DashboardSymbol' }, History = { icon = '', color = '#949494', cterm_color = '59', name = 'HistorySymbol' }, Comment = { icon = '', color = '#949494', cterm_color = '59', name = 'CommentSymbol' }, Bug = { icon = '', color = '#949494', cterm_color = '59', name = 'BugSymbol' }, Code = { icon = '', color = '#949494', cterm_color = '59', name = 'CodeSymbol' }, Telescope = { icon = '', color = '#949494', cterm_color = '59', name = 'TelescopeSymbol' }, Gear = { icon = '', color = '#949494', cterm_color = '59', name = 'GearSymbol' }, Package = { icon = '', color = '#949494', cterm_color = '59', name = 'PackageSymbol' }, List = { icon = '', color = '#949494', cterm_color = '59', name = 'ListSymbol' }, SignIn = { icon = '', color = '#949494', cterm_color = '59', name = 'SignInSymbol' }, SignOut = { icon = '', color = '#949494', cterm_color = '59', name = 'SignOutSymbol' }, Check = { icon = '', color = '#949494', cterm_color = '59', name = 'CheckSymbol' }, Fire = { icon = '', color = '#949494', cterm_color = '59', name = 'FireSymbol' }, Note = { icon = '', color = '#949494', cterm_color = '59', name = 'NoteSymbol' }, BookMark = { icon = '', color = '#949494', cterm_color = '59', name = 'BookMarkSymbol' }, Pencil = { icon = '', color = '#949494', cterm_color = '59', name = 'PencilSymbol' }, ChevronRight = { icon = '', color = '#949494', cterm_color = '59', name = 'ChevronRightSymbol' }, Table = { icon = '', color = '#949494', cterm_color = '59', name = 'TableSymbol' }, Calendar = { icon = '', color = '#949494', cterm_color = '59', name = 'CalendarSymbol' }, CloudDownload = { icon = '', color = '#949494', cterm_color = '59', name = 'CloudDownloadSymbol' }, -- -- DIAGNOSTICS Error = { icon = '', color = '#949494', cterm_color = '59', name = 'ErrorSymbol' }, Warning = { icon = '', color = '#949494', cterm_color = '59', name = 'WarningSymbol' }, Information = { icon = '', color = '#949494', cterm_color = '59', name = 'InformationSymbol' }, Question = { icon = '', color = '#949494', cterm_color = '59', name = 'QuestionSymbol' }, Hint = { icon = '', color = '#949494', cterm_color = '59', name = 'HintSymbol' }, -- -- MISCELLANEOUS Robot = { icon = 'ﮧ', color = '#949494', cterm_color = '59', name = 'RobotSymbol' }, Squirrel = { icon = '', color = '#949494', cterm_color = '59', name = 'SquirrelSymbol' }, Tag = { icon = '', color = '#949494', cterm_color = '59', name = 'TagSymbol' }, Watch = { icon = '', color = '#949494', cterm_color = '59', name = 'WatchSymbol' }, }, } -- devicons will return some default icon, when an icon name could not be mapped. -- in order to quickly notice these cases and debug them, set a noticeable icon as default. devicons.set_default_icon('ﴫ', '#ff00ff')end)new file mode 100644+153 / −0 text lines
-- the topic 'diagnotics' was refactored out of LSP into its own thing some time-- ago. that is why it gets its own section in this config now, but right now,-- those settings overlap with lsp-zero.local auto = require 'bugabinga.std.auto'local map = require 'bugabinga.std.keymap'local icon = require 'bugabinga.std.icon'local diagnostic = vim.diagnosticlocal diagnostic_format = function(context) local message = context.message local severity = context.severity local symbol = '' if severity == diagnostic.severity.ERROR then symbol = icon 'Error' elseif severity == diagnostic.severity.WARN then symbol = icon 'Warning' elseif severity == diagnostic.severity.INFO then symbol = icon 'Information' elseif severity == diagnostic.severity.HINT then symbol = icon 'Hint' end return string.format('%s | %s', symbol, message)endlocal prefix_format = function(context, index, total) local source = context.source local severity = context.severity local symbol = '' if severity == diagnostic.severity.ERROR then symbol = icon 'Error' elseif severity == diagnostic.severity.WARN then symbol = icon 'Warning' elseif severity == diagnostic.severity.INFO then symbol = icon 'Information' elseif severity == diagnostic.severity.HINT then symbol = icon 'Hint' end return string.format('%s/%s %s %s ', index, total, source, symbol)enddiagnostic.config { underline = { severity = diagnostic.severity.ERROR, }, virtual_text = { severity = diagnostic.severity.HINT, source = false, spacing = 0, prefix = '', format = diagnostic_format, }, float = { focusable = false, style = 'minimal', border = 'rounded', source = false, header = '', prefix = prefix_format, }, update_in_insert = false, signs = true, severity_sort = true,}local sign = function(options) vim.fn.sign_define(options.name, { texthl = options.name, text = options.text, numhl = '', })endsign { name = 'DiagnosticSignError', text = icon 'Error' }sign { name = 'DiagnosticSignWarn', text = icon 'Warning' }sign { name = 'DiagnosticSignHint', text = icon 'Hint' }sign { name = 'DiagnosticSignInfo', text = icon 'Information' }auto 'hide_diagnostics' { description = 'Hide diagnostics by default', events = { 'BufReadPre' }, pattern = '*', command = function() diagnostic.disable(0) end,}local saved_cursor_highlight = vim.api.nvim_get_hl_by_name('Cursor', true)-- TODO: get colors from themelocal noticeable = { foreground = '#ffffff', background = '#ff0000'}auto 'cursor_attention_if_diagnostics' { description = 'Make cursor very noticeable, if diagnostics are present', events = 'DiagnosticChanged', pattern = '*', command = function() local diagnostic_number = #vim.diagnostic.get(0,{severity = vim.diagnostic.severity.ERROR}) if diagnostic_number > 0 then vim.api.nvim_set_hl(0, 'Cursor', noticeable) else vim.api.nvim_set_hl(0, 'Cursor', saved_cursor_highlight) end end,}map { description = 'Enable diagnostics', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P, command = function() diagnostic.enable(0) end,}map { description = 'Disable diagnostics', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.P, command = function() diagnostic.disable(0) end,}map { description = 'Show diagnostics in float window', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.F6, command = function() diagnostic.enable(0) diagnostic.open_float() end,}map { description = 'Go to previous diagnostic', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.F7, command = function() diagnostic.enable(0) diagnostic.goto_prev() end,}map { description = 'Go to next diagnostic', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.F8, command = function() diagnostic.enable(0) diagnostic.goto_next() end,}+2 / −3 text lines
+342 / −382 text lines
want { 'window-picker', 'neo-tree' }(function(picker, tree) picker.setup { autoselect_one = true, include_current = false, filter_rules = { -- filter using buffer options bo = { -- if the file type is one of following, the window will be ignored filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' }, -- if the buffer type is one of following, the window will be ignored buftype = { 'terminal' }, }, }, other_win_hl_color = '#e35e4f', }want { 'window-picker', 'neo-tree',} (function(picker, tree) picker.setup { autoselect_one = true, include_current = false, filter_rules = { -- filter using buffer options bo = { -- if the file type is one of following, the window will be ignored filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' }, -- If you want icons for diagnostic errors, you'll need to define them somewhere: vim.fn.sign_define('DiagnosticSignError', { text = ' ', texthl = 'DiagnosticSignError' }) vim.fn.sign_define('DiagnosticSignWarn', { text = ' ', texthl = 'DiagnosticSignWarn' }) vim.fn.sign_define('DiagnosticSignInfo', { text = ' ', texthl = 'DiagnosticSignInfo' }) vim.fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' }) map { description = 'Open File Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E, command = fmt.cmd 'Neotree filesystem reveal right toggle', } map { description = 'Open Buffer Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.B, command = fmt.cmd 'Neotree buffers reveal float toggle', } map { description = 'Open Git Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.G, command = fmt.cmd 'Neotree git_status reveal current toggle', } tree.setup { close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab -- popup_border_style is for input and confirmation dialogs. -- Configurtaion of floating window is done in the individual source sections. -- "NC" is a special style that works well with NormalNC set close_floats_on_escape_key = true, default_source = 'filesystem', enable_diagnostics = true, enable_git_status = true, enable_modified_markers = true, -- Show markers for files with unsaved changes. enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false. git_status_async = true, -- These options are for people with VERY large git repos git_status_async_options = { batch_size = 1000, -- how many lines of git status results to process at a time batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run. max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped. -- Anything before this will be used. The last items to be processed are the untracked files. }, log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal" log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file open_files_in_last_window = true, -- false = open files in top left window popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid" resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content -- set to -1 to disable the resize timer entirely -- -- NOTE: this will speed up to 50 ms for 1 second following a resize sort_case_insensitive = false, -- used when sorting files and directories in the tree sort_function = nil, -- uses a custom function for sorting files and directories in the tree use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats. use_default_mappings = true, -- --event_handlers = { -- { -- event = "before_render", -- handler = function (state) -- -- add something to the state that can be used by custom components -- end -- }, -- { -- event = "file_opened", -- handler = function(file_path) -- --auto close -- require("neo-tree").close_all() -- end -- }, -- { -- event = "file_opened", -- handler = function(file_path) -- --clear search after opening a file -- require("neo-tree.sources.filesystem").reset_search() -- end -- }, -- { -- event = "file_renamed", -- handler = function(args) -- -- fix references to file -- print(args.source, " renamed to ", args.destination) -- end -- }, -- { -- event = "file_moved", -- handler = function(args) -- -- fix references to file -- print(args.source, " moved to ", args.destination) -- end -- }, -- { -- event = "neo_tree_buffer_enter", -- handler = function() -- vim.cmd 'highlight! Cursor blend=100' -- end -- }, -- { -- event = "neo_tree_buffer_leave", -- handler = function() -- vim.cmd 'highlight! Cursor guibg=#5f87af blend=0' -- end -- } --}, default_component_configs = { container = { enable_character_fade = true, }, indent = { indent_size = 2, padding = 1, -- indent guides with_markers = true, indent_marker = '│', last_indent_marker = '└', highlight = 'NeoTreeIndentMarker', -- expander config, needed for nesting files with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders expander_collapsed = '', expander_expanded = '', expander_highlight = 'NeoTreeExpander', }, icon = { folder_closed = '', folder_open = '', folder_empty = 'ﰊ', }, modified = { symbol = '[+]', highlight = 'NeoTreeModified', }, name = { trailing_slash = false, use_git_status_colors = true, highlight = 'NeoTreeFileName', }, git_status = { symbols = { -- Change type added = '✚', -- NOTE: you can set any of these to an empty string to not show them deleted = '✖', modified = '', renamed = '', -- Status type untracked = '', ignored = '', unstaged = '', staged = '', conflict = '', }, align = 'right', }, }, renderers = { directory = { { 'indent' }, { 'icon' }, { 'current_filter' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', zindex = 10 }, { 'symlink_target', zindex = 10, highlight = 'NeoTreeSymbolicLinkTarget', }, { 'clipboard', zindex = 10 }, { 'diagnostics', errors_only = true, zindex = 20, align = 'right' }, }, }, }, file = { { 'indent' }, { 'icon' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', use_git_status_colors = true, zindex = 10, }, { 'symlink_target', zindex = 10, highlight = 'NeoTreeSymbolicLinkTarget', }, { 'clipboard', zindex = 10 }, { 'bufnr', zindex = 10 }, { 'modified', zindex = 20, align = 'right' }, { 'diagnostics', zindex = 20, align = 'right' }, { 'git_status', zindex = 20, align = 'right' }, }, }, }, message = { { 'indent', with_markers = false }, { 'name', highlight = 'NeoTreeMessage' }, }, terminal = { { 'indent' }, { 'icon' }, { 'name' }, { 'bufnr' }, }, }, nesting_rules = {}, window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for -- possible options. These can also be functions that return these options. position = 'left', -- left, right, float, current width = 40, -- applies to left and right positions popup = { -- settings that apply to float position only size = { height = '80%', width = '50%', }, position = '50%', -- 50% means center it -- you can also specify border here, if you want a different setting from -- the global popup_border_style. }, -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands. -- You can also create your own commands by providing a function instead of a string. mapping_options = { noremap = true, nowait = true, }, mappings = { ['<space>'] = { 'toggle_node', nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use }, ['<2-LeftMouse>'] = 'open', ['<cr>'] = 'open', ['S'] = 'split_with_window_picker', ['s'] = 'vsplit_with_window_picker', ['t'] = 'open_tabnew', ['w'] = 'open_with_window_picker', ['C'] = 'close_node', ['z'] = 'close_all_nodes', ['R'] = 'refresh', ['a'] = { 'add', -- some commands may take optional config options, see `:h neo-tree-mappings` for details config = { show_path = 'none', -- "none", "relative", "absolute" }, }, ['A'] = 'add_directory', -- also accepts the config.show_path option. ['d'] = 'delete', ['r'] = 'rename', ['y'] = 'copy_to_clipboard', ['x'] = 'cut_to_clipboard', ['p'] = 'paste_from_clipboard', ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option ['q'] = 'close_window', ['?'] = 'show_help', }, }, filesystem = { window = { mappings = { ['H'] = 'toggle_hidden', ['/'] = 'fuzzy_finder', ['f'] = 'filter_on_submit', ['<C-x>'] = 'clear_filter', ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['[g'] = 'prev_git_modified', [']g'] = 'next_git_modified', }, }, async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands. -- "always" means directory scans are always async. -- "never" means directory scans are never async. bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root -- The renderer section provides the renderers that will be used to render the tree. -- The first level is the node type. -- For each node type, you can specify a list of components to render. -- Components are rendered in the order they are specified. -- The first field in each component is the name of the function to call. -- The rest of the fields are passed to the function as the "config" argument. filtered_items = { visible = true, -- when true, they will just be displayed differently than normal items force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry hide_dotfiles = true, hide_gitignored = true, hide_hidden = true, -- only works on Windows for hidden files/directories hide_by_name = { '.DS_Store', 'thumbs.db', 'node_modules', 'zig-cache', 'target', }, hide_by_pattern = { -- uses glob style patterns --"*.meta" }, never_show = { -- remains hidden even if visible is toggled to true --".DS_Store", --"thumbs.db" }, }, find_by_full_path_words = false, -- `false` means it only searches the tail of a path. -- `true` will change the filter into a full path -- search with space as an implicit ".*", so -- `fi init` -- will match: `./sources/filesystem/init.lua --find_command = "fd", -- this is determined automatically, you probably don't need to set it --find_args = { -- you can specify extra args to pass to the find command. -- fd = { -- "--exclude", ".git", -- "--exclude", "node_modules" -- } --}, ---- or use a function instead of list of strings --find_args = function(cmd, path, search_term, args) -- if cmd ~= "fd" then -- return args -- end -- --maybe you want to force the filter to always include hidden files: -- table.insert(args, "--hidden") -- -- but no one ever wants to see .git files -- table.insert(args, "--exclude") -- table.insert(args, ".git") -- -- or node_modules -- table.insert(args, "--exclude") -- table.insert(args, "node_modules") -- --here is where it pays to use the function, you can exclude more for -- --short search terms, or vary based on the directory -- if string.len(search_term) < 4 and path == "/home/cseickel" then -- table.insert(args, "--exclude") -- table.insert(args, "Library") -- end -- return args --end, group_empty_dirs = false, -- when true, empty folders will be grouped together search_limit = 50, -- max number of search results when using filters follow_current_file = false, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree -- in whatever position is specified in window.position -- "open_current",-- netrw disabled, opening a directory opens within the -- window like netrw would, regardless of window.position -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes -- instead of relying on nvim autocmd events. }, buffers = { bind_to_cwd = true, follow_current_file = true, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. group_empty_dirs = true, -- when true, empty directories will be grouped together window = { mappings = { ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['bd'] = 'buffer_delete', }, }, }, git_status = { window = { mappings = { ['A'] = 'git_add_all', ['gu'] = 'git_unstage_file', ['ga'] = 'git_add_file', ['gr'] = 'git_revert_file', ['gc'] = 'git_commit', ['gp'] = 'git_push', ['gg'] = 'git_commit_and_push', }, }, }, } tree.setup { close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab -- popup_border_style is for input and confirmation dialogs. -- Configurtaion of floating window is done in the individual source sections. -- "NC" is a special style that works well with NormalNC set close_floats_on_escape_key = true, default_source = 'filesystem', enable_diagnostics = true, enable_git_status = true, enable_modified_markers = true, -- Show markers for files with unsaved changes. enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false. git_status_async = true, -- These options are for people with VERY large git repos git_status_async_options = { batch_size = 1000, -- how many lines of git status results to process at a time batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run. max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped. -- Anything before this will be used. The last items to be processed are the untracked files. }, log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal" log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file open_files_in_last_window = true, -- false = open files in top left window popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid" resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content sort_case_insensitive = false, -- used when sorting files and directories in the tree sort_function = nil, -- uses a custom function for sorting files and directories in the tree use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats. use_default_mappings = true, default_component_configs = { container = { enable_character_fade = true, }, indent = { indent_size = 2, padding = 1, -- indent guides with_markers = true, indent_marker = '│', last_indent_marker = '└', highlight = 'NeoTreeIndentMarker', -- expander config, needed for nesting files with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders expander_collapsed = icon 'ArrowClosed', expander_expanded = icon 'ArrowOpen', expander_highlight = 'NeoTreeExpander', }, icon = { folder_closed = icon 'Folder', folder_open = icon 'OpenFolder', folder_empty = icon 'EmptyFolder', }, modified = { symbol = icon 'VcsModified', highlight = 'NeoTreeModified', }, name = { trailing_slash = false, use_git_status_colors = true, highlight = 'NeoTreeFileName', }, git_status = { symbols = { -- Change type added = icon 'VcsAdded', deleted = icon 'VcsRemoved', modified = icon 'VcsModified', renamed = icon 'VcsRenamed', -- Status type untracked = icon 'VcsUntracked', ignored = icon 'VcsIgnored', unstaged = icon 'VcsUnstaged', staged = icon 'VcsStaged', conflict = icon 'VcsConflicted', }, align = 'right', }, }, renderers = { directory = { { 'indent' }, { 'icon' }, { 'current_filter' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', zindex = 10 }, { 'clipboard', zindex = 10 }, { 'diagnostics', errors_only = true, zindex = 20, align = 'right' }, }, }, }, file = { { 'indent' }, { 'icon' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', use_git_status_colors = true, zindex = 10, }, { 'clipboard', zindex = 10 }, { 'bufnr', zindex = 10 }, { 'modified', zindex = 20, align = 'right' }, { 'diagnostics', zindex = 20, align = 'right' }, { 'git_status', zindex = 20, align = 'right' }, }, }, }, message = { { 'indent', with_markers = false }, { 'name', highlight = 'NeoTreeMessage' }, }, terminal = { { 'indent' }, { 'icon' }, { 'name' }, { 'bufnr' }, }, }, nesting_rules = {}, window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for -- possible options. These can also be functions that return these options. position = 'left', -- left, right, float, current width = 40, -- applies to left and right positions popup = { -- settings that apply to float position only size = { height = '80%', width = '50%', }, position = '50%', -- 50% means center it -- you can also specify border here, if you want a different setting from -- the global popup_border_style. }, -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands. -- You can also create your own commands by providing a function instead of a string. mapping_options = { noremap = true, nowait = true, }, mappings = { ['<space>'] = { 'toggle_node', nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use }, ['<2-LeftMouse>'] = 'open', ['<cr>'] = 'open', ['S'] = 'split_with_window_picker', ['s'] = 'vsplit_with_window_picker', ['t'] = 'open_tabnew', ['w'] = 'open_with_window_picker', ['C'] = 'close_node', ['z'] = 'close_all_nodes', ['R'] = 'refresh', ['a'] = { 'add', -- some commands may take optional config options, see `:h neo-tree-mappings` for details config = { show_path = 'none', -- "none", "relative", "absolute" }, }, ['A'] = 'add_directory', -- also accepts the config.show_path option. ['d'] = 'delete', ['<F2>'] = 'rename', ['y'] = 'copy_to_clipboard', ['x'] = 'cut_to_clipboard', ['p'] = 'paste_from_clipboard', ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option ['q'] = 'close_window', ['?'] = 'show_help', }, }, filesystem = { window = { mappings = { ['H'] = 'toggle_hidden', ['/'] = 'fuzzy_finder', ['f'] = 'filter_on_submit', ['<C-x>'] = 'clear_filter', ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['[g'] = 'prev_git_modified', [']g'] = 'next_git_modified', }, }, async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands. -- "always" means directory scans are always async. -- "never" means directory scans are never async. bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root -- The renderer section provides the renderers that will be used to render the tree. -- The first level is the node type. -- For each node type, you can specify a list of components to render. -- Components are rendered in the order they are specified. -- The first field in each component is the name of the function to call. -- The rest of the fields are passed to the function as the "config" argument. filtered_items = { visible = true, -- when true, they will just be displayed differently than normal items force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry hide_dotfiles = true, hide_gitignored = true, hide_hidden = true, -- only works on Windows for hidden files/directories hide_by_name = { '.DS_Store', 'thumbs.db', 'node_modules', 'zig-cache', 'target', }, hide_by_pattern = { -- uses glob style patterns --"*.meta" }, never_show = { -- remains hidden even if visible is toggled to true --".DS_Store", --"thumbs.db" }, }, find_by_full_path_words = false, -- `false` means it only searches the tail of a path. -- `true` will change the filter into a full path -- search with space as an implicit ".*", so -- `fi init` -- will match: `./sources/filesystem/init.lua --find_command = "fd", -- this is determined automatically, you probably don't need to set it --find_args = { -- you can specify extra args to pass to the find command. -- fd = { -- "--exclude", ".git", -- "--exclude", "node_modules" -- } --}, ---- or use a function instead of list of strings --find_args = function(cmd, path, search_term, args) -- if cmd ~= "fd" then -- return args -- end -- --maybe you want to force the filter to always include hidden files: -- table.insert(args, "--hidden") -- -- but no one ever wants to see .git files -- table.insert(args, "--exclude") -- table.insert(args, ".git") -- -- or node_modules -- table.insert(args, "--exclude") -- table.insert(args, "node_modules") -- --here is where it pays to use the function, you can exclude more for -- --short search terms, or vary based on the directory -- if string.len(search_term) < 4 and path == "/home/cseickel" then -- table.insert(args, "--exclude") -- table.insert(args, "Library") -- end -- return args --end, group_empty_dirs = false, -- when true, empty folders will be grouped together search_limit = 50, -- max number of search results when using filters follow_current_file = false, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree -- in whatever position is specified in window.position -- "open_current",-- netrw disabled, opening a directory opens within the -- window like netrw would, regardless of window.position -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes -- instead of relying on nvim autocmd events. }, buffers = { bind_to_cwd = true, follow_current_file = true, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. group_empty_dirs = true, -- when true, empty directories will be grouped together window = { mappings = { ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['bd'] = 'buffer_delete', }, }, }, git_status = { window = { mappings = { ['A'] = 'git_add_all', ['gu'] = 'git_unstage_file', ['ga'] = 'git_add_file', ['gr'] = 'git_revert_file', ['gc'] = 'git_commit', ['gp'] = 'git_push', ['gg'] = 'git_commit_and_push', }, }, }, }+58 / −68 text lines
telescope.setup { defaults = { history = { path = vim.fn.stdpath 'data' .. 'telescope_history.sqlite3', limit = 100, }, }, extensions = { command_center = { -- Change what to show on telescope prompt and in which order -- Currently support the following three components -- Components may repeat components = { command_center.component.DESCRIPTION, command_center.component.KEYBINDINGS, -- command_center.component.COMMAND, }, -- Change the separator used to separate each component separator = ' ', -- When set to false, -- The description compoenent will be empty if it is not specified auto_replace_desc_with_cmd = false, }, }, } telescope.setup { extensions = { command_center = { -- Change what to show on telescope prompt and in which order -- Currently support the following three components -- Components may repeat components = { command_center.component.DESCRIPTION, command_center.component.KEYBINDINGS, -- command_center.component.COMMAND, }, -- Change the separator used to separate each component separator = ' ', -- When set to false, -- The description compoenent will be empty if it is not specified auto_replace_desc_with_cmd = false, }, }, } local extensions = { -- Plug Command Center into Telescope 'command_center', -- show history of notifications 'notify', -- save yank history 'neoclip', -- telescope for vim.ui.select 'ui-select', -- sort by frecency 'frecency', -- cheat sheet 'cheat', -- file browser 'file_browser', -- manage projects 'project', -- project specific history 'smart_history', } local extensions = { -- Plug Command Center into Telescope 'command_center', -- show history of notifications 'notify', -- save yank history 'neoclip', -- telescope for vim.ui.select 'ui-select', -- cheat sheet 'cheat', -- file browser 'file_browser', -- manage projects 'project', }+69 / −4 text lines
want { 'gitsigns' }(function(gitsigns) -- FIXME use keymap facade -- FIXME integrate into null-ls gitsigns.setup()want { 'gitsigns' } (function(gitsigns) map { description = 'toogle git status line highlight', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.L, command = fmt.cmd'gitsigns toggle_linehl', } map { description = 'toogle git status signs', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.S, command = fmt.cmd'gitsigns toggle_signs', } map { description = 'Toogle Git Blame Line', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.B, command = fmt.cmd'Gitsigns toggle_current_line_blame', } gitsigns.setup { signs = { add = { hl = 'GitSignsAdd', text = '│', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' }, change = { hl = 'GitSignsChange', text = '│', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, delete = { hl = 'GitSignsDelete', text = '_', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, topdelete = { hl = 'GitSignsDelete', text = '‾', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, changedelete = { hl = 'GitSignsChange', text = '~', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, }, signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` numhl = false, -- Toggle with `:Gitsigns toggle_numhl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl` word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` diff_opts = { internal = true, }, watch_gitdir = { interval = 1000, follow_files = true, }, attach_to_untracked = true, current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame_opts = { virt_text = true, virt_text_pos = 'right_align', -- 'eol' | 'overlay' | 'right_align' delay = 866, ignore_whitespace = true, }, current_line_blame_formatter = '<author>, <author_time:%d/%m/%Y> - <summary>', sign_priority = 6, update_debounce = 100, status_formatter = nil, -- Use default max_file_length = 40000, preview_config = { -- Options passed to nvim_open_win border = 'rounded', style = 'minimal', relative = 'cursor', row = 0, col = 1, }, yadm = { enable = false, }, }+12 / −13 text lines
return (vim.fn.executable(name_of_executable) ~= 0) return (vim.fn.executable(name_of_executable) ~= 0)deleted file mode 100644+0 / −181 text lines
local want = require 'bugabinga.std.want'want { 'nvim-web-devicons' }(function(devicons) devicons.setup { override = { sh = { icon = '', color = '#1DC123', cterm_color = '59', name = 'Sh', }, toml = { icon = '', color = '#e24329', cterm_color = '59', name = 'Toml', }, justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile', }, Justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile', }, ['.justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile', }, ['.Justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile', }, ['.gitattributes'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitAttributes', }, ['.gitconfig'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitConfig', }, ['.gitignore'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitIgnore', }, ['.gitlab-ci.yml'] = { icon = '', color = '#e24329', cterm_color = '166', name = 'GitlabCI', }, ['.gitmodules'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitModules', }, ['diff'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'Diff', }, }, default = true, }end)--[[ FIXME: integrate those into deviconsreturn { kind = { Text = "", Method = "m", Function = "", Constructor = "", Field = "", Variable = "", Class = "", Interface = "", Module = "", Property = "", Unit = "", Value = "", Enum = "", Keyword = "", Snippet = "", Color = "", File = "", Reference = "", Folder = "", EnumMember = "", Constant = "", Struct = "", Event = "", Operator = "", TypeParameter = "", }, type = { Array = "", Number = "", String = "", Boolean = "蘒", Object = "", }, documents = { File = "", Files = "", Folder = "", OpenFolder = "", }, git = { Add = "", Mod = "", Remove = "", Ignore = "", Rename = "", Diff = "", Repo = "", }, ui = { ArrowClosed = "", ArrowOpen = "", Lock = "", Circle = "", BigCircle = "", BigUnfilledCircle = "", Close = "", NewFile = "", Search = "", Lightbulb = "", Project = "", Dashboard = "", History = "", Comment = "", Bug = "", Code = "", Telescope = "", Gear = "", Package = "", List = "", SignIn = "", SignOut = "", Check = "", Fire = "", Note = "", BookMark = "", Pencil = "", ChevronRight = "", Table = "", Calendar = "", CloudDownload = "", }, diagnostics = { Error = "", Warning = "", Information = "", Question = "", Hint = "", }, misc = { Robot = "ﮧ", Squirrel = "", Tag = "", Watch = "", },}]]--+286 / −105 text lines
zero.preset 'recommended' -- Format on Save when any LSP supports it. local auto = require 'bugabinga.std.auto' local null_opts = zero.build_options('null-ls', { on_attach = function(client) if client.server_capabilities.documentFormattingProvider then auto 'format_buffer_on_write' { description = 'Format the current buffer before writing.', events = 'BufWritePre', pattern = '<buffer>', callback = function(context) vim.lsp.buf.format() vim.notify('Formatted ' .. context.file) end, } end end, }) local null_opts = zero.build_options 'null-ls' -- 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.black.with { extra_args = { '--fast' } }, formatting.stylua, formatting.clang_format, formatting.codespell, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, -- 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.codespell, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.codespell.with(diagnostics_on_save), diagnostics.editorconfig_checker.with(diagnostics_on_save).with { command = 'editorconfig-checker' }, 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 project = require 'bugabinga.std.project' 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), diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.codespell.with(diagnostics_on_save), diagnostics.editorconfig_checker.with(diagnostics_on_save).with { command = 'editorconfig-checker' }, 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), 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) end end)local function setup_keybinds_and_actions(client, buffer_number) -- TODO: make format changed lines command local capabilities = client.resolved_capabilities if capabilities.document_formatting then map { description = 'Format buffer using LSP', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.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 { description = 'Format range using LSP', category = map.CATEGORY.EDITING, mode = map.MODE.VISUAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.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 { description = 'Show Hover', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.K, command = function() vim.lsp.buf.hover() end, } end if capabilities.goto_definition then map { description = 'Go to Definition', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.D, command = function() vim.lsp.buf.definition() end, } end if capabilities.declaration then map { description = 'Go to Declaration', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.D .. map.KEY.D, command = function() vim.lsp.buf.declaration() end, } end if capabilities.implementation then map { description = 'Go to Implementation', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.I, command = function() vim.lsp.buf.implementation() end, } end if capabilities.type_definition then map { description = 'Go to Type Definition', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.T, command = function() vim.lsp.buf.type_definition() end, } end if capabilities.find_references then map { description = 'Go to References', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.R, command = function() vim.lsp.buf.references() end, } end if capabilities.call_hierarchy then map { description = 'Go to Incoming Call', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.C, command = function() vim.lsp.buf.incoming_calls() end, } map { description = 'Go to Outgoing Call', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.C .. map.KEY.C, command = function() vim.lsp.buf.outgoing_calls() end, } end if capabilities.rename then map { description = 'Rename symbol', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.F2, command = function() vim.lsp.buf.rename() end, } end if capabilities.code_action then map { description = 'Show code actions', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.F4, command = function() vim.lsp.buf.code_action() end, } map { description = 'Show code actions in range', category = map.CATEGORY.VIEW, mode = map.MODE.VISUAL, keys = map.KEY.F4, command = function() vim.lsp.buf.range_code_action() end, } 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.setup()+3 / −3 text lines
+3 / −3 text lines
+2 / −2 text lines
+26 / −23 text lines
vim.opt.guifont = 'BlexMono Nerd Font:h16:antialias=true'vim.opt.guifont = 'BlexMono Nerd Font:h11:antialias=true' vim.g.neovide_floating_blur_amount_x = 4.0 vim.g.neovide_floating_blur_amount_y = 4.0 vim.g.neovide_scroll_animation_length = 0.33 vim.g.neovide_fullscreen = true vim.g.neovide_profiler = false vim.g.neovide_cursor_animation_length = 0.11 vim.g.neovide_cursor_trail_length = 0.666 vim.g.neovide_cursor_vfx_mode = 'pixiedust' vim.g.neovide_floating_blur_amount_x = 4.0 vim.g.neovide_floating_blur_amount_y = 4.0 vim.g.neovide_scroll_animation_length = 0.33 vim.g.neovide_fullscreen = true vim.g.neovide_profiler = false vim.g.neovide_cursor_animation_length = 0.11 vim.g.neovide_cursor_trail_length = 0.666 vim.g.neovide_cursor_vfx_mode = 'pixiedust'+163 / −173 text lines
-- allow paq to manage itself 'savq/paq-nvim', -- caches other plugins for faster startup 'lewis6991/impatient.nvim', -- Utilities used by some plugins, e.g. telescope 'nvim-lua/plenary.nvim', -- collection of icons used by other plugins. needs a nerd font 'kyazdani42/nvim-web-devicons', -- fuzzy search ui over many parts of neovim and other plugins 'nvim-telescope/telescope.nvim', -- use telescope as `vim.ui.select` 'nvim-telescope/telescope-ui-select.nvim', -- use telescope as `vim.ui.input` 'stevearc/dressing.nvim', -- use frecency algorithm when sorting files. Needs sqlite3 installed 'nvim-telescope/telescope-frecency.nvim', -- display cheat sheet with telesope 'nvim-telescope/telescope-cheat.nvim', -- keep project specific histories in telescope 'nvim-telescope/telescope-smart-history.nvim', -- show file browser in telescope 'nvim-telescope/telescope-file-browser.nvim', -- manage projects via telescope 'nvim-telescope/telescope-project.nvim', -- pick a symbol (emoji, icon, kaomoji,...) via telescope 'nvim-telescope/telescope-symbols.nvim', -- sqplite lua bindings some plugins use 'tami5/sqlite.lua', -- status and tablines 'beauwilliams/statusline.lua', -- visual indicator if code actions are available 'kosayoda/nvim-lightbulb', -- some bug fix for LSP 'antoinemadec/FixCursorHold.nvim', -- allows statusbar plugins to query LSP 'nvim-lua/lsp-status.nvim', -- keybindings api that integrates into telescope to make keymaps searchable 'gfeiyou/command-center.nvim', -- search and replace 'nvim-pack/nvim-spectre', -- automatically manage window sizes based on focus 'beauwilliams/focus.nvim', -- avoid jitter in buffers when windows change 'luukvbaal/stabilize.nvim', -- keybindings that require a persistent chain 'anuvyklack/hydra.nvim', -- extends hydra with pink heads 'anuvyklack/keymap-layer.nvim', -- configure some editor settings according to editorconfig file, if present 'gpanders/editorconfig.nvim', -- highlight words under cursor -- "RRethy/vim-illuminate", -- highlight matched wors more clearly 'kevinhwang91/nvim-hlslens', -- draw lines to indicate indentation levels 'lukas-reineke/indent-blankline.nvim', -- move blocks of code around 'booperlv/nvim-gomove', -- toolkit for creating themes 'rktjmp/lush.nvim', -- theme with colors i like 'rockerBOO/boo-colorscheme-nvim', -- display the colorcolumn as a virtual character 'lukas-reineke/virt-column.nvim', -- jump cursor to last known position on neovim start 'ethanholz/nvim-lastplace', -- smooth scrolling for movement 'declancm/cinnamon.nvim', -- fast navigation in buffer via shortcut labels 'ggandor/leap.nvim', -- breadcrumbs in window bar 'SmiteshP/nvim-navic', -- show color values inline -- this plugins seems a little unmaintained right now. -- using some forks for now --'norcalli/nvim-colorizer.lua', --'NvChad/nvim-colorizer.lua', 'lasse16/nvim-colorizer.lua', -- intelligent commenting 'numToStr/Comment.nvim', -- show git status in ui 'lewis6991/gitsigns.nvim', -- sexy start page 'goolord/alpha-nvim', -- extend vim.notify with fancy ui 'rcarriga/nvim-notify', -- show registers ui 'tversteeg/registers.nvim', -- markdown editor -- 'jakewvincent/mkdnflow.nvim', -- highlight TODOs and collect them 'folke/todo-comments.nvim', -- centralized view for code issues 'folke/trouble.nvim', -- faster access to terminal 'akinsho/toggleterm.nvim', -- File Browser { 'nvim-neo-tree/neo-tree.nvim', branch = 'v2.x', }, -- ui elements for other plugins 'MunifTanjim/nui.nvim', -- window picker component for other plugins { 's1n7ax/nvim-window-picker', branch = 'v1.3', }, -- clipboard/yank history 'AckslD/nvim-neoclip.lua', -- the treesitter parser is not compatible with current nushell for now -- { -- 'LhKipp/nvim-nu', -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end, -- }, -- smart parser for syntax { 'nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update() end, }, -- extend treesittier with light refactorings 'nvim-treesitter/nvim-treesitter-refactor', -- add movement around structural syntax elements 'nvim-treesitter/nvim-treesitter-textobjects', -- expand selection based on structure 'RRethy/nvim-treesitter-textsubjects', -- highlight function arguments 'm-demare/hlargs.nvim', -- inspect treesitter queries and get helpful functions 'nvim-treesitter/playground', -- set commentstring when in polyglot files 'JoosepAlviste/nvim-ts-context-commentstring', -- generate doc comment boilerplate 'danymat/neogen', -- automatically change corresponding tag, when editing markup (xml/html) 'windwp/nvim-ts-autotag', -- autoclose pairs on enter and completion 'windwp/nvim-autopairs', -- glue, that binds all the neovim lsp crap 'VonHeikemen/lsp-zero.nvim', -- LSP Support 'neovim/nvim-lspconfig', 'williamboman/nvim-lsp-installer', 'simrat39/symbols-outline.nvim', -- Autocompletion 'hrsh7th/nvim-cmp', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', 'hrsh7th/cmp-nvim-lsp-document-symbol', 'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lua', -- Snippets 'L3MON4D3/LuaSnip', 'rafamadriz/friendly-snippets', -- rust development 'simrat39/rust-tools.nvim', -- java development 'mfussenegger/nvim-jdtls', -- lua neovim config development 'folke/lua-dev.nvim', -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api 'jose-elias-alvarez/null-ls.nvim', -- Special Java LSP integration sauce 'mfussenegger/nvim-jdtls', -- debug adapter protocol 'mfussenegger/nvim-dap', -- color picker 'ziontee113/color-picker.nvim', -- motions around object 'kylechui/nvim-surround', -- allow paq to manage itself 'savq/paq-nvim', -- caches other plugins for faster startup 'lewis6991/impatient.nvim', -- Utilities used by some plugins, e.g. telescope 'nvim-lua/plenary.nvim', -- collection of icons used by other plugins. needs a nerd font 'kyazdani42/nvim-web-devicons', -- fuzzy search ui over many parts of neovim and other plugins 'nvim-telescope/telescope.nvim', -- use telescope as `vim.ui.select` 'nvim-telescope/telescope-ui-select.nvim', -- use telescope as `vim.ui.input` 'stevearc/dressing.nvim', -- display cheat sheet with telesope 'nvim-telescope/telescope-cheat.nvim', -- show file browser in telescope 'nvim-telescope/telescope-file-browser.nvim', -- manage projects via telescope 'nvim-telescope/telescope-project.nvim', -- pick a symbol (emoji, icon, kaomoji,...) via telescope 'nvim-telescope/telescope-symbols.nvim', -- visual indicator if code actions are available 'kosayoda/nvim-lightbulb', -- some bug fix for LSP 'antoinemadec/FixCursorHold.nvim', -- allows statusbar plugins to query LSP 'nvim-lua/lsp-status.nvim', -- keybindings api that integrates into telescope to make keymaps searchable 'gfeiyou/command-center.nvim', -- search and replace 'nvim-pack/nvim-spectre', -- automatically manage window sizes based on focus 'beauwilliams/focus.nvim', -- avoid jitter in buffers when windows change 'luukvbaal/stabilize.nvim', -- keybindings that require a persistent chain 'anuvyklack/hydra.nvim', -- extends hydra with pink heads 'anuvyklack/keymap-layer.nvim', -- configure some editor settings according to editorconfig file, if present 'gpanders/editorconfig.nvim', -- highlight matched wors more clearly 'kevinhwang91/nvim-hlslens', -- draw lines to indicate indentation levels 'lukas-reineke/indent-blankline.nvim', -- move blocks of code around 'booperlv/nvim-gomove', -- toolkit for creating themes 'rktjmp/lush.nvim', -- theme with colors i like 'rockerBOO/boo-colorscheme-nvim', -- display the colorcolumn as a virtual character 'lukas-reineke/virt-column.nvim', -- jump cursor to last known position on neovim start 'ethanholz/nvim-lastplace', -- smooth scrolling for movement 'declancm/cinnamon.nvim', -- fast navigation in buffer via shortcut labels 'ggandor/leap.nvim', -- breadcrumbs in window bar 'SmiteshP/nvim-navic', -- show color values inline -- this plugins seems a little unmaintained right now. -- using some forks for now --'norcalli/nvim-colorizer.lua', --'NvChad/nvim-colorizer.lua', 'lasse16/nvim-colorizer.lua', -- intelligent commenting 'numToStr/Comment.nvim', -- show git status in ui 'lewis6991/gitsigns.nvim', -- sexy start page 'goolord/alpha-nvim', -- extend vim.notify with fancy ui 'rcarriga/nvim-notify', -- show registers ui 'tversteeg/registers.nvim', -- markdown editor -- 'jakewvincent/mkdnflow.nvim', -- highlight TODOs and collect them 'folke/todo-comments.nvim', -- centralized view for code issues 'folke/trouble.nvim', -- faster access to terminal 'akinsho/toggleterm.nvim', -- File Browser { 'nvim-neo-tree/neo-tree.nvim', branch = 'v2.x', }, -- ui elements for other plugins 'MunifTanjim/nui.nvim', -- window picker component for other plugins { 's1n7ax/nvim-window-picker', branch = 'v1.3', }, -- clipboard/yank history 'AckslD/nvim-neoclip.lua', -- the treesitter parser is not compatible with current nushell for now -- { -- 'LhKipp/nvim-nu', -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end, -- }, -- smart parser for syntax { 'nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update() end, }, -- extend treesittier with light refactorings 'nvim-treesitter/nvim-treesitter-refactor', -- add movement around structural syntax elements 'nvim-treesitter/nvim-treesitter-textobjects', -- expand selection based on structure 'RRethy/nvim-treesitter-textsubjects', -- highlight function arguments 'm-demare/hlargs.nvim', -- inspect treesitter queries and get helpful functions 'nvim-treesitter/playground', -- set commentstring when in polyglot files 'JoosepAlviste/nvim-ts-context-commentstring', -- generate doc comment boilerplate 'danymat/neogen', -- automatically change corresponding tag, when editing markup (xml/html) 'windwp/nvim-ts-autotag', -- autoclose pairs on enter and completion 'windwp/nvim-autopairs', -- glue, that binds all the neovim lsp crap 'VonHeikemen/lsp-zero.nvim', -- LSP Support 'neovim/nvim-lspconfig', 'williamboman/nvim-lsp-installer', 'simrat39/symbols-outline.nvim', -- Autocompletion 'hrsh7th/nvim-cmp', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', 'hrsh7th/cmp-nvim-lsp-document-symbol', 'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lua', -- Snippets 'L3MON4D3/LuaSnip', 'rafamadriz/friendly-snippets', -- rust development 'simrat39/rust-tools.nvim', -- java development 'mfussenegger/nvim-jdtls', -- lua neovim config development 'folke/lua-dev.nvim', -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api 'jose-elias-alvarez/null-ls.nvim', -- Special Java LSP integration sauce 'mfussenegger/nvim-jdtls', -- debug adapter protocol 'mfussenegger/nvim-dap', -- color picker 'ziontee113/color-picker.nvim', -- motions around object 'kylechui/nvim-surround',+56 / −22 text lines
local map = require 'bugabinga.std.keymap' -- FIXME: hlslens uses some highlights, that my theme does not cover yet -- FIXME: use keymap facade -- FIXME: change commands to lua callbacks vim.api.nvim_set_keymap( 'n', 'n', [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]], noremap_silent ) vim.api.nvim_set_keymap( 'n', 'N', [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]], noremap_silent ) vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent) vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent) vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent) vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)want { 'hlslens' } (function(lens) vim.api.nvim_set_keymap('n', '<LEADER><LEADER>', '<CMD>noh<CR>', noremap_silent) -- this highlight links by default to WildMenu, which is to offensive vim.api.nvim_set_hl(0, 'HlSearchLens', { link = 'Search' }) map { description = 'Go to next highlighted search match', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.N, command = function() vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.N) lens.start() end, } map { description = 'Go to previous highlighted search match', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.SHIFT_N, command = function() vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.SHIFT_N) lens.start() end, } map { description = 'Search next word under cursor', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.MULTIPLY, command = function() vim.api.nvim_feedkeys(map.KEY.MULTIPLY, map.MODE.NORMAL, true) lens.start() end, } map { description = 'Search previous word under cursor', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.HASHTAG, command = function() vim.api.nvim_feedkeys(map.KEY.HASHTAG, map.MODE.NORMAL, true) lens.start() end, } map { description = 'Clear search highlights', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.LEADER, command = function() vim.cmd 'nohlsearch' end, }+149 / −3 text lines
want { 'cinnamon' }(function(cinnamon) --FIXME: use keymap facade instead of default bindings cinnamon.setup()want { 'cinnamon' } (function(cinnamon) cinnamon.setup { default_keymaps = false, hide_cursor = true, } -- weird. when using the Scroll function via lua directly, it does seemingly nothing... -- -- Half-window movements: map { description = 'Scroll half window up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_U, command = fmt.cmd'lua Scroll("<C-u>", 1, 1)', } map { description = 'Scroll half window down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_D, command = fmt.cmd'lua Scroll("<C-d>", 1, 1)', } -- -- Page movements: map { description = 'Scroll half page up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_B, command = fmt.cmd'lua Scroll("<C-b>", 1, 1)', } map { description = 'Scroll half page down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_F, command = fmt.cmd'lua Scroll("<C-f>", 1, 1)', } map { description = 'Scroll half page up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.PAGE_UP, command = fmt.cmd'lua Scroll("<PageUp>", 1, 1)', } map { description = 'Scroll half page down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.PAGE_DOWN, command = fmt.cmd'lua Scroll("<PageDown>", 1, 1)', }-- Start/end of file and line number movements: map { description = 'Scroll to start of buffer', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.G .. map.KEY.G, command = fmt.cmd'lua Scroll("gg")', } map { description = 'Scroll to end of buffer', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SHIFT_G, command = fmt.cmd'lua Scroll("G", 0, 1)', }-- Start/end of line: map { description = 'Scroll to start of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.ZERO, command = fmt.cmd'lua Scroll("0")', } map { description = 'Scroll to first word of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CARET, command = fmt.cmd'lua Scroll("^")', } map { description = 'Scroll to end of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.DOLLAR, command = fmt.cmd'lua Scroll("$", 0 ,1)', }-- Paragraph movements:vim.keymap.set({ 'n', 'x' }, '{', "<Cmd>lua Scroll('{')<CR>") map { description = 'Scroll to previous paragraph', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.OPEN_CURLY_BRACKET, command = fmt.cmd'lua Scroll("{")', }vim.keymap.set({ 'n', 'x' }, '}', "<Cmd>lua Scroll('}')<CR>") map { description = 'Scroll to next paragraph', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CLOSE_CURLY_BRACKET, command = fmt.cmd'lua Scroll("}")', } ---- Up/down movements:vim.keymap.set({ 'n', 'x' }, 'k', "<Cmd>lua Scroll('k', 0, 1)<CR>") map { description = 'Scroll line up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.K, command = fmt.cmd'lua Scroll("k", 0, 1)', }vim.keymap.set({ 'n', 'x' }, 'j', "<Cmd>lua Scroll('j', 0, 1)<CR>") map { description = 'Scroll line down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.J, command = fmt.cmd'lua Scroll("j", 0, 1)', }-- SCROLL_WHEEL_KEYMAPS: map { description = 'Scroll wheel up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SCROLL_WHEEL_UP, command = fmt.cmd'lua Scroll("<ScrollWheelUp>")', } map { description = 'Scroll wheel down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SCROLL_WHEEL_DOWN, command = fmt.cmd'lua Scroll("<ScrollWheelDown>")', }+43 / −28 text lines
want { 'alpha', 'alpha.themes.startify' }(function(alpha, theme) --FIXME add "open alpha" keymap theme.section.header.val = { [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]], [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]], [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]], [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]], [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]], [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]], [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]], [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]], [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]], [[ ░ ░ ]], } theme.section.top_buttons.val = { theme.button('e', ' New file', '<CMD>new | startinsert <CR>'), } theme.section.bottom_buttons.val = { theme.button('q', ' Quit NVIM', ':qa<CR>'), } theme.section.mru.val = { { type = 'padding', val = 0 } } theme.section.footer = { { type = 'text', val = 'bugabinga.net' }, } theme.mru_opts.ignore = function(path, _) return string.find(path, 'COMMIT_EDITMSG') end alpha.setup(theme.config)want { 'alpha', 'alpha.themes.startify', 'nvim-web-devicons',} (function(alpha, theme, devicons) theme.section.header.val = { [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]], [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]], [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]], [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]], [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]], [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]], [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]], [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]], [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]], [[ ░ ░ ]], } theme.section.top_buttons.val = { theme.button('e', devicons.get_icon 'NewFile' .. ' New file', fmt.cmd 'new | startinsert'), } theme.section.bottom_buttons.val = { theme.button('q', devicons.get_icon 'SignOut' .. ' Quit Neovim', fmt.cmd 'qa'), } -- hides the mru section theme.section.mru.val = { { type = 'padding', val = 0 } } theme.section.footer = { { type = 'text', val = devicons.get_icon 'Bug' .. ' bugabinga.net' }, } theme.mru_opts.ignore = function(path, _) return string.find(path, 'COMMIT_EDITMSG') end alpha.setup(theme.config) map { description = 'Toggle Start Screen', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.F12, command = fmt.cmd 'Alpha', }+24 / −17 text lines
local group = vim.api.nvim_create_augroup(group_name, { clear = true }) return function(list_of_autocommands) if list_of_autocommands.events then list_of_autocommands = { list_of_autocommands } end for _, autocommand in pairs(list_of_autocommands) do vim.api.nvim_create_autocmd(autocommand.events, { desc = autocommand.description, group = group, pattern = autocommand.pattern, -- command and callback are mutually exclusive. -- one of them has to be nil command = autocommand.command, callback = autocommand.callback, }) end end local group = vim.api.nvim_create_augroup(group_name, { clear = true }) return function(list_of_autocommands) if list_of_autocommands.events then list_of_autocommands = { list_of_autocommands } end for _, autocommand in pairs(list_of_autocommands) do -- command and callback are mutually exclusive. -- one of them has to be nil local command = nil local callback = nil if type(autocommand.command) == 'function' then callback = autocommand.command else command = autocommand.command end vim.api.nvim_create_autocmd(autocommand.events, { desc = autocommand.description, group = group, pattern = autocommand.pattern, command = command, callback = callback, }) end endnew file mode 100644+19 / −0 text lines
local want = require 'bugabinga.std.want'local function get_icon(icon_name) return want { 'nvim-web-devicons' } (function(devicons) return devicons.get_icon(icon_name) end)end --TODO: fill up those iconsreturn setmetatable({ FILE = {}, UI = {}, DOCUMENT = {}, MISC = {},}, { __call = function(_, ...) return get_icon(...) end,})+110 / −63 text lines
local bind = want { 'command_center' }(function(command_center) return function(map) map.visible = map.visible == nil or map.visible map.options = map.options or {} local options = vim.tbl_extend('keep', map.options, { silent = true, desc = map.description, }) if map.visible then local keybindings = {} if type(map.mode) == 'table' then for _, mode in ipairs(map.mode) do table.insert(keybindings, { mode, map.keys }) end else keybindings = { map.mode, map.keys } end command_center.add({ { description = map.description, category = map.category, cmd = map.command, keybindings = keybindings, }, }, command_center.mode.ADD_ONLY) end -- use neovim api to add keybind instead of command_center, because it has -- nicer defaults. vim.keymap.set(map.mode, map.keys, map.command, options) endlocal bind = want { 'command_center' } (function(command_center) return function(map) map.visible = map.visible == nil or map.visible map.options = map.options or {} local options = vim.tbl_extend('keep', map.options, { silent = true, desc = map.description, }) if map.visible then local keybindings = {} if type(map.mode) == 'table' then for _, mode in ipairs(map.mode) do table.insert(keybindings, { mode, map.keys }) end else keybindings = { map.mode, map.keys } end command_center.add({ { description = map.description, category = map.category, cmd = map.command, keybindings = keybindings, }, }, command_center.mode.ADD_ONLY) end -- use neovim api to add keybind instead of command_center, because it has -- nicer defaults. vim.keymap.set(map.mode, map.keys, map.command, options) end MODE = { NORMAL = 'n', VISUAL = 'x', ALL = '', }, KEY = { SPACE = '<SPACE>', ENTER = '<CR>', ESCAPE = '<ESC>', UP = '<Up>', DOWN = '<Down>', LEFT = '<Left>', RIGHT = '<Right>', ALT_H = '<A-h>', ALT_J = '<A-j>', ALT_K = '<A-k>', ALT_L = '<A-l>', ALT_SHIFT_H = '<A-H>', ALT_SHIFT_J = '<A-J>', ALT_SHIFT_K = '<A-K>', ALT_SHIFT_L = '<A-L>', }, COMMAND = { NOP = function() end, }, CATEGORY = { NAVIGATION = 'navigation', EDITING = 'editing', NOTIFY = 'notify', }, MODE = { NORMAL = 'n', VISUAL = 'x', ALL = '', }, KEY = { LEADER = '<LEADER>', SPACE = '<SPACE>', ENTER = '<CR>', ESCAPE = '<ESC>', UP = '<Up>', DOWN = '<Down>', LEFT = '<Left>', RIGHT = '<Right>', PAGE_UP = '<PageUp>', PAGE_DOWN = '<PageDown>', SCROLL_WHEEL_UP = '<ScrollWheelUp>', SCROLL_WHEEL_DOWN = '<ScrollWheelDown>', CONTROL_B = '<C-b>', CONTROL_D = '<C-d>', CONTROL_F = '<C-f>', CONTROL_U = '<C-u>', SHIFT_G = 'G', SHIFT_N = 'N', CONTROL_SHIFT_F = '<C-F>', ALT_H = '<A-h>', ALT_J = '<A-j>', ALT_K = '<A-k>', ALT_L = '<A-l>', ALT_SHIFT_H = '<A-H>', ALT_SHIFT_J = '<A-J>', ALT_SHIFT_K = '<A-K>', ALT_SHIFT_L = '<A-L>', F2 = '<F2>', F4 = '<F4>', F6 = '<F6>', F7 = '<F7>', F8 = '<F8>', F12 = '<F12>', CARET = '^', DOLLAR = '$', MULTIPLY = '*', HASHTAG = '#', OPEN_CURLY_BRACKET = '{', CLOSE_CURLY_BRACKET = '}', ZERO = '0', B = 'b', C = 'c', D = 'd', E = 'e', F = 'f', G = 'g', I = 'i', J = 'j', L = 'l', N = 'n', K = 'k', P = 'p', R = 'r', S = 's', T = 't', V = 'v', }, COMMAND = { NOP = function() end, }, CATEGORY = { NAVIGATION = 'navigation', EDITING = 'editing', NOTIFY = 'notify', VIEW = 'view', SEARCH = 'search', SCROLL = 'scroll', PROBLEMS = 'problems', LSP = 'lsp', VERSION_CONTROL = 'vcs', },+4 / −3 text lines
--- Determines the project root directory of the current buffer file. A "project" is not clearly defined for all programming languages, so this function uses a heuristic approach.---@param custom_markers table list of markers. a marker is a table with `name` and `weight` key. `name` can be a file or directory name, that indicates, that if a file/folder with that name exists in a directory, that directory is likely to be a project root. `weight` is a means to express confidence in that likelihood. Values should be between 1 and 3. Internally, there are some project-agnostic markers defined (e.g. README, LICENSE, .git, ...) that will be merged with `custom_markers`.---@param custom_markers table<string, number> list of markers. a marker is a table with `name` and `weight` key. `name` can be a file or directory name, that indicates, that if a file/folder with that name exists in a directory, that directory is likely to be a project root. `weight` is a means to express confidence in that likelihood. Values should be between 1 and 3. Internally, there are some project-agnostic markers defined (e.g. README, LICENSE, .git, ...) that will be merged with `custom_markers`.---@param custom_root string Given a `custom_root` the path traversal can be aborted before the filesystem root is reached. A useful value might be `~` for example, if your source code is always in your home directory. the root directory itself does __not__ get searched for markers!---@return string project_root The project root of the current buffer, or `nil`, if none could be determined.---@return string|nil project_root The project root of the current buffer, or `nil`, if none could be determined. local root = vim.fn.glob(custom_root, false, false)+8 / −2 text lines
+37 / −37 text lines
want { 'toggleterm' }(function(toggleterm) toggleterm.setup { size = 20, open_mapping = [[<LEADER>t]], hide_numbers = true, shade_filetypes = {}, shade_terminals = true, shading_factor = 2, start_in_insert = true, insert_mappings = false, persist_size = true, direction = 'float', close_on_exit = true, shell = vim.o.shell, float_opts = { border = 'curved', winblend = 0, highlights = { border = 'Normal', background = 'Normal', }, }, }want { 'toggleterm' } (function(toggleterm) toggleterm.setup { size = 20, open_mapping = [[<LEADER>t]], hide_numbers = true, shade_filetypes = {}, shade_terminals = true, shading_factor = 2, start_in_insert = true, insert_mappings = false, persist_size = true, direction = 'float', close_on_exit = true, shell = vim.o.shell, float_opts = { border = 'curved', winblend = 0, highlights = { border = 'Normal', background = 'Normal', }, }, } local function set_terminal_keymaps() local opts = { noremap = true } vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts) end local function set_terminal_keymaps() local opts = { noremap = true } vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts) end+32 / −0 text lines
map{ description = 'Show all To-Dos in the current project', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.T, command = function() local root = project.determine_project_root({},'~') local cwd = '' if root then cwd = ' cwd=' .. root end vim.cmd ('TodoTrouble' .. cwd) end, } map{ description = 'Search all To-Dos in the current project', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.T .. map.KEY.T, command = function() local root = project.determine_project_root({},'~') local cwd = '' if root then cwd = ' cwd=' .. root end vim.cmd ('TodoTelescope' .. cwd) end, }+187 / −199 text lines
local auto = require 'bugabinga.std.auto' configs.setup { -- A list of parser names, or "all" ensure_installed = { 'c', 'bash', 'cmake', 'comment', 'cpp', 'css', 'devicetree', 'dockerfile', 'dot', 'help', 'html', 'http', 'java', 'javascript', 'json', 'json5', 'jsonc', 'llvm', 'lua', 'make', 'markdown', 'markdown_inline', 'ninja', 'proto', 'python', 'query', 'regex', 'rust', 'toml', 'vim', 'yaml', 'zig', }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = false, -- List of parsers to ignore installing (for "all") ignore_install = {}, configs.setup { -- A list of parser names, or "all" -- FIXME: temporarily deactivated, because i am offline -- ensure_installed = 'all', -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = true, -- Automatically install missing parsers when entering buffer auto_install = true, -- List of parsers to ignore installing (for "all") ignore_install = {}, -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is -- the name of the parser) -- list of language that will be disabled disable = {}, -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. -- Instead of true it can also be a list of languages additional_vim_regex_highlighting = false, }, incremental_selection = { enable = true, keymaps = { init_selection = 'gnn', node_incremental = 'grn', scope_incremental = 'grc', node_decremental = 'grm', }, }, -- indent on = with TS indent = { enable = true, }, -- These features are mostly useful when there is treesitter parser, but no -- LSP. -- FIXME: harmonize the keybinds with LSP equivalents refactor = 'all', textsubjects = { enable = true, prev_selection = '<Down>', -- (Optional) keymap to select the previous selection keymaps = { ['<Up>'] = 'textsubjects-smart', ['<Right>'] = 'textsubjects-container-outer', ['<Left>'] = 'textsubjects-container-inner', }, }, textobjects = { select = { enable = true, -- Automatically jump forward to textobj, similar to targets.vim lookahead = true, keymaps = { -- You can use the capture groups defined in textobjects.scm ['af'] = '@function.outer', ['if'] = '@function.inner', ['ac'] = '@class.outer', ['ic'] = '@class.inner', }, }, swap = { enable = true, swap_next = { ['<leader>a'] = '@parameter.inner', }, swap_previous = { ['<leader>A'] = '@parameter.inner', }, }, move = { enable = true, set_jumps = true, -- whether to set jumps in the jumplist goto_next_start = { [']m'] = '@function.outer', [']]'] = '@class.outer', }, goto_next_end = { [']M'] = '@function.outer', [']['] = '@class.outer', }, goto_previous_start = { ['[m'] = '@function.outer', ['[['] = '@class.outer', }, goto_previous_end = { ['[M'] = '@function.outer', ['[]'] = '@class.outer', }, }, lsp_interop = { enable = true, border = 'rounded', peek_definition_code = { ['<leader>df'] = '@function.outer', ['<leader>dc'] = '@class.outer', }, }, }, playground = { enable = true, disable = {}, updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code persist_queries = false, -- Whether the query persists across vim sessions keybindings = { toggle_query_editor = 'o', toggle_hl_groups = 'i', toggle_injected_languages = 't', toggle_anonymous_nodes = 'a', toggle_language_display = 'I', focus_language = 'f', unfocus_language = 'F', update = 'R', goto_node = '<cr>', show_help = '?', }, }, context_commentstring = { enable = true, }, -- autoclose and rename tags autotag = { enable = true, }, } -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. -- Instead of true it can also be a list of languages additional_vim_regex_highlighting = false, }, incremental_selection = { enable = true, keymaps = { init_selection = 'gnn', node_incremental = 'grn', scope_incremental = 'grc', node_decremental = 'grm', }, }, -- indent on = with TS indent = { enable = true, }, -- These features are mostly useful when there is treesitter parser, but no -- LSP. -- FIXME harmonize the keybinds with LSP equivalents refactor = { highlight_definitions = { enable = true, -- Set to false if you have an `updatetime` of ~100. clear_on_cursor_move = false, }, smart_rename = { enable = true, keymaps = { smart_rename = 'grr', }, }, navigation = { enable = true, keymaps = { goto_definition = 'gnd', list_definitions = 'gnD', list_definitions_toc = 'gO', goto_next_usage = '<a-*>', goto_previous_usage = '<a-#>', }, }, }, textsubjects = { enable = true, prev_selection = '<Down>', -- (Optional) keymap to select the previous selection keymaps = { ['<Up>'] = 'textsubjects-smart', ['<Right>'] = 'textsubjects-container-outer', ['<Left>'] = 'textsubjects-container-inner', }, }, textobjects = { select = { enable = true, -- Automatically jump forward to textobj, similar to targets.vim lookahead = true, keymaps = { -- You can use the capture groups defined in textobjects.scm ['af'] = '@function.outer', ['if'] = '@function.inner', ['ac'] = '@class.outer', ['ic'] = '@class.inner', }, }, swap = { enable = true, swap_next = { ['<leader>a'] = '@parameter.inner', }, swap_previous = { ['<leader>A'] = '@parameter.inner', }, }, move = { enable = true, set_jumps = true, -- whether to set jumps in the jumplist goto_next_start = { [']m'] = '@function.outer', [']]'] = '@class.outer', }, goto_next_end = { [']M'] = '@function.outer', [']['] = '@class.outer', }, goto_previous_start = { ['[m'] = '@function.outer', ['[['] = '@class.outer', }, goto_previous_end = { ['[M'] = '@function.outer', ['[]'] = '@class.outer', }, }, lsp_interop = { enable = true, border = 'none', peek_definition_code = { ['<leader>df'] = '@function.outer', ['<leader>dc'] = '@class.outer', }, }, }, playground = { enable = true, disable = {}, updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code persist_queries = false, -- Whether the query persists across vim sessions keybindings = { toggle_query_editor = 'o', toggle_hl_groups = 'i', toggle_injected_languages = 't', toggle_anonymous_nodes = 'a', toggle_language_display = 'I', focus_language = 'f', unfocus_language = 'F', update = 'R', goto_node = '<cr>', show_help = '?', }, }, context_commentstring = { enable = true, }, -- autoclose and rename tags autotag = { enable = true, }, } map { description = 'Generate Doc Comment for Function', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.F, command = function() neogen.generate{ type = 'func'} end, } -- FIXME: this aucmd needs to be restricted to buffers where treesitter is loaded -- Treesitter highlights tend to highlight syntax errors immediately. -- But that i find distracting while typing. -- Disable the error highlight while typing, but keep it in normal mode. auto 'disable_error_highlight_while_typing' { { description = 'Disable the @error highlight while in Insert mode', events = 'InsertEnter', pattern = '*', command = function() want { 'nvim-treesitter.highlight' } (function(highlight) pcall(highlight.stop) pcall(highlight.set_custom_captures, { error = 'None' }) pcall(highlight.start) end) end, }, { description = 'Enable the @error highlight while in Normal mode', events = 'InsertLeave', pattern = '*', command = function() want { 'nvim-treesitter.highlight' } (function(highlight) pcall(highlight.stop) pcall(highlight.set_custom_captures, { error = 'TSError' }) pcall(highlight.start) end) end, }, }new file mode 100644+142 / −0 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 236.690490 msecTotal Max: 400.304000 msecTotal Min: 195.247000 msec AVERAGE MAX MIN---------------------------------169.968420 290.092000 139.875000: /home/oli/.config/nvim/init.lua 13.974000 28.363000 11.460000: loading packages 6.835580 12.380000 5.336000: loading after plugins 5.466760 8.905000 4.366000: loading rtp plugins 4.679380 7.926000 3.542000: sourcing vimrc file(s) 4.340620 8.601000 3.439000: /usr/share/nvim/runtime/filetype.lua 2.982450 8.741000 2.265000: reading ShaDa 2.655790 5.275000 1.801000: opening buffers 2.251370 5.856000 1.530000: BufEnter autocommands 1.618660 3.966000 1.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.420820 4.173000 1.004000: /home/oli/.config/nvim/filetype.lua 1.237190 3.538000 0.824000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 1.045070 2.595000 0.822000: /usr/share/nvim/runtime/syntax/syntax.vim 0.891420 2.410000 0.610000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.832830 2.767000 0.435000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.821020 1.894000 0.597000: /usr/share/vim/vimfiles/plugin/skim.vim 0.798470 2.223000 0.518000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim 0.740630 2.029000 0.543000: init lua interpreter 0.683750 1.961000 0.490000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.614360 2.907000 0.361000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.598100 2.327000 0.300000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.587120 2.415000 0.276000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim 0.530920 1.721000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.524870 1.722000 0.220000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.513220 1.815000 0.303000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.453430 1.854000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.427410 1.438000 0.301000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.422150 0.948000 0.326000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim 0.417700 2.051000 0.194000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.411170 0.789000 0.297000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim 0.408660 1.568000 0.306000: inits 1 0.402360 1.614000 0.274000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.382820 1.461000 0.161000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.335740 1.025000 0.261000: init highlight 0.318870 1.911000 0.122000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.281680 1.020000 0.190000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.241690 0.796000 0.170000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.233550 1.115000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.223740 0.835000 0.088000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim 0.211190 0.833000 0.133000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.199070 0.710000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.197310 0.894000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.189950 0.854000 0.125000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua 0.189230 0.571000 0.138000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.168640 0.697000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.156820 0.670000 0.112000: /usr/share/nvim/runtime/syntax/synload.vim 0.144780 0.461000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.142880 0.632000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.142150 0.399000 0.112000: event init 0.140790 0.590000 0.072000: /usr/share/nvim/runtime/ftplugin.vim 0.140150 0.659000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.125350 0.626000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.121020 0.507000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.118740 0.457000 0.076000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim 0.118720 0.369000 0.078000: /usr/share/nvim/runtime/plugin/shada.vim 0.115230 0.321000 0.087000: early init 0.113220 0.887000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.112250 0.355000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.106310 0.414000 0.067000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.102860 0.379000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.101030 1.148000 0.059000: /usr/share/nvim/runtime/plugin/man.vim 0.085390 0.325000 0.052000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.082080 0.363000 0.039000: /usr/share/nvim/runtime/indent.vim 0.080080 0.470000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim 0.078310 0.371000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.078270 0.282000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.075640 0.300000 0.050000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim 0.075340 0.483000 0.045000: /etc/xdg/nvim/sysinit.vim 0.075220 0.317000 0.052000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim 0.074660 0.326000 0.043000: expanding arguments 0.071840 0.439000 0.045000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.070970 0.239000 0.051000: locale set 0.065390 0.219000 0.043000: parsing arguments 0.064380 0.273000 0.042000: /usr/share/vim/vimfiles/plugin/black.vim 0.063050 0.446000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.061610 0.323000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.059760 0.457000 0.036000: init first window 0.058260 0.164000 0.041000: inits 2 0.057180 0.191000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.056520 0.276000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.051460 0.183000 0.021000: /usr/share/nvim/runtime/plugin/gzip.vim 0.049720 0.424000 0.028000: clearing screen 0.045950 0.245000 0.031000: /usr/share/vim/vimfiles/ftdetect/meson.vim 0.044510 0.263000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.041720 0.226000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim 0.039560 0.266000 0.025000: /usr/share/nvim/runtime/plugin/tutor.vim 0.039150 0.120000 0.026000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim 0.039030 0.127000 0.028000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/query.vim 0.036830 0.294000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.035770 0.256000 0.023000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hcl.vim 0.034040 0.172000 0.021000: /usr/share/nvim/runtime/filetype.vim 0.033930 0.605000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/graphql.vim 0.033530 0.200000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.032710 0.164000 0.022000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.032640 0.131000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim 0.032400 0.124000 0.021000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.031890 0.205000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/cooklang.vim 0.030590 0.234000 0.020000: inits 3 0.029750 0.211000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim 0.027400 0.153000 0.019000: init default mappings 0.027320 0.156000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim 0.026630 0.113000 0.018000: /usr/share/nvim/runtime/plugin/matchit.vim 0.026430 0.131000 0.018000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.026210 0.091000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ledger.vim 0.026160 0.086000 0.018000: init default autocommands 0.025710 0.053000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdresource.vim 0.025570 0.083000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim 0.025370 0.198000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hack.vim 0.025200 0.078000 0.015000: /usr/share/nvim/runtime/plugin/health.vim 0.024940 0.079000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim 0.023540 0.404000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/teal.vim 0.023540 0.120000 0.016000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.023360 0.149000 0.014000: /usr/share/nvim/archlinux.vim 0.022730 0.229000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/surface.vim 0.022600 0.080000 0.015000: window checked 0.022550 0.193000 0.015000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.021970 0.088000 0.016000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ql.vim 0.020280 0.057000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/fusion.vim 0.020210 0.073000 0.013000: /home/oli/.local/share/nvim/rplugin.vim 0.019480 0.064000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdscript.vim 0.019360 0.061000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gowork.vim 0.019260 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hjson.vim 0.019140 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/yang.vim 0.018990 0.136000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glsl.vim 0.018840 0.069000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/json5.vim 0.018830 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/pug.vim 0.018770 0.049000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/tlaplus.vim 0.018720 0.053000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/prisma.vim 0.018070 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/nix.vim 0.017990 0.066000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glimmer.vim 0.017850 0.044000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/heex.vim 0.013040 0.236000 0.005000: editing files in windows 0.012080 0.028000 0.009000: --- NVIM STARTING ---new file mode 100644+102 / −0 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 1850.736090 msecTotal Max: 1969.983000 msecTotal Min: 1821.947000 msec AVERAGE MAX MIN------------------------------------1006.310160 1006.838000 1006.138000: clearing screen 802.751960 911.582000 775.461000: /home/oli/.config/nvim/init.lua 7.836060 11.880000 7.161000: loading packages 4.288070 6.452000 3.935000: loading after plugins 3.741050 5.754000 3.373000: loading rtp plugins 3.100560 4.513000 2.869000: reading ShaDa 2.885810 4.400000 2.659000: sourcing vimrc file(s) 2.410220 4.000000 1.840000: opening buffers 1.840350 3.263000 1.641000: /usr/share/nvim/runtime/filetype.lua 1.337860 2.431000 1.042000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.102050 1.896000 0.954000: /home/oli/.config/nvim/filetype.lua 0.973060 1.637000 0.748000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.759020 1.349000 0.553000: BufEnter autocommands 0.751850 1.337000 0.675000: /usr/share/nvim/runtime/syntax/syntax.vim 0.667290 1.229000 0.579000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.650380 1.114000 0.576000: /usr/share/vim/vimfiles/plugin/skim.vim 0.611960 0.926000 0.559000: init lua interpreter 0.602680 1.008000 0.434000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.565550 0.906000 0.470000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.441350 0.998000 0.319000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.391140 0.647000 0.258000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.371630 0.687000 0.275000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.353460 1.047000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.335070 0.519000 0.302000: inits 1 0.331190 0.686000 0.187000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.308770 0.680000 0.205000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.304500 0.576000 0.263000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.289440 0.392000 0.267000: init highlight 0.288850 0.471000 0.257000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.267110 0.720000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.206530 0.400000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.202800 0.353000 0.181000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.187210 0.360000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.167000 0.342000 0.129000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.150500 0.349000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.145620 0.307000 0.118000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.143760 0.260000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.141360 0.339000 0.111000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua 0.138520 0.320000 0.082000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.134770 0.333000 0.102000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.133200 0.274000 0.116000: /usr/share/nvim/runtime/syntax/synload.vim 0.120360 0.165000 0.107000: event init 0.097450 0.206000 0.085000: early init 0.095100 0.239000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.086370 0.262000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.085730 0.174000 0.070000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.082690 0.155000 0.075000: /usr/share/nvim/runtime/plugin/shada.vim 0.079840 0.149000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.079290 0.198000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.076630 0.177000 0.064000: /usr/share/nvim/runtime/ftplugin.vim 0.075240 0.156000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.073600 0.148000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.071170 0.204000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.064820 0.121000 0.055000: /usr/share/nvim/runtime/plugin/man.vim 0.060320 0.132000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.059760 0.188000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.059360 0.106000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim 0.055910 0.125000 0.049000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.053740 0.084000 0.047000: locale set 0.052100 0.256000 0.044000: parsing arguments 0.051790 0.083000 0.045000: /etc/xdg/nvim/sysinit.vim 0.050950 0.246000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.050490 0.086000 0.044000: expanding arguments 0.047710 0.076000 0.040000: inits 2 0.047330 0.092000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.045090 0.081000 0.040000: /usr/share/vim/vimfiles/plugin/black.vim 0.044210 0.070000 0.033000: init first window 0.043190 0.105000 0.038000: /usr/share/nvim/runtime/indent.vim 0.042190 0.085000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.038530 0.097000 0.034000: /usr/share/vim/vimfiles/ftdetect/meson.vim 0.037170 0.076000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.028740 0.060000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.026970 0.090000 0.024000: /usr/share/nvim/runtime/plugin/tutor.vim 0.025430 0.237000 0.021000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.024940 0.052000 0.019000: /usr/share/nvim/runtime/plugin/gzip.vim 0.024930 0.047000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.024220 0.040000 0.021000: /usr/share/nvim/runtime/filetype.vim 0.023370 0.041000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim 0.022450 0.067000 0.020000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.021630 0.036000 0.019000: init default mappings 0.021550 0.043000 0.019000: inits 3 0.020880 0.038000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim 0.020190 0.036000 0.018000: init default autocommands 0.018600 0.033000 0.016000: /usr/share/nvim/runtime/plugin/matchit.vim 0.018000 0.033000 0.015000: window checked 0.017820 0.073000 0.015000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.016460 0.030000 0.014000: /usr/share/nvim/runtime/plugin/health.vim 0.015920 0.032000 0.014000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.015430 0.029000 0.014000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.015110 0.026000 0.013000: /usr/share/nvim/archlinux.vim 0.013520 0.026000 0.012000: /home/oli/.local/share/nvim/rplugin.vim 0.010160 0.014000 0.009000: --- NVIM STARTING --- 0.006420 0.019000 0.005000: editing files in windows+2 / −1 text lines
+1 / −0 text lines