Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
6fe5949cc2acc298d8c5f64353dcae30ddf399e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 4b50618500f4 · Showing diff
- Parent 2: d19f18dc4784 · Diff against parent 2
bugabingas dorkfiles
6fe5949cc2acc298d8c5f64353dcae30ddf399e8
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+338 / −302 text lines
+0 / −10 text lines
+7 / −15 text lines
+5 / −12 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 "ω"))+2 / −1 text lines
vim.opt_local.conceallevel = 1+2 / −1 text lines
"neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" }, "neotest-plenary": { "branch": "master", "commit": "dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" }, "nvim-treesitter": { "branch": "master", "commit": "baaae36ac709f405c0ee5d39ef9ffd8d8160f1a3" }, "nvim-treesitter-context": { "branch": "master", "commit": "e6e71047bb323fb36f5664993a42adaac252bb36" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" }, "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" }, "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" }, "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" }, "text-case.nvim": { "branch": "main", "commit": "d62c63a4e9a996c7321885937ab89920fca2c1c8" },+18 / −19 text lines
underline = true, virtual_text = { severity = { min = diagnostic.severity.WARN, }, source = false, spacing = 2, prefix = '⦿ ', format = diagnostic_format, }, float = { focusable = false, style = 'minimal', border = vim.g.border_style, source = 'if_many', header = 'Diagnostic', prefix = prefix_format, }, update_in_insert = false, signs = true, severity_sort = true, underline = true, virtual_text = { severity = { min = diagnostic.severity.WARN }, source = false, spacing = 2, prefix = '⦿ ', format = diagnostic_format, }, float = { focusable = false, style = 'minimal', source = 'if_many', header = 'Diagnostic', prefix = prefix_format, }, update_in_insert = false, signs = true, severity_sort = true,+3 / −3 text lines
+3 / −0 text lines
+1 / −0 text lines
+1 / −1 text lines
+2 / −0 text lines
+1 / −1 text lines
+15 / −13 text lines
+10 / −1 text lines
+7 / −0 text lines
new file mode 100644+22 / −0 text lines
return { 'johmsalas/text-case.nvim', dependencies = { 'nvim-telescope/telescope.nvim', }, config = function () require 'textcase'.setup {} require 'telescope'.load_extension 'textcase' end, keys = { 'ga', -- Default invocation prefix { 'gA', '<cmd>TextCaseOpenTelescope<CR>', mode = { 'n', 'x', }, desc = 'Telescope', }, }, cmd = { 'TextCaseOpenTelescope', 'TextCaseOpenTelescopeQuickChange', 'TextCaseOpenTelescopeLSPChange', 'TextCaseStartReplacingCommand', }, -- If you want to use the interactive feature of the `Subs` command right away, text-case.nvim -- has to be loaded on startup. Otherwise, the interactive feature of the `Subs` will only be -- available after the first executing of it or after a keymap of text-case.nvim has been used. lazy = false,}+36 / −34 text lines
'nvim-tree/nvim-tree.lua', version = '1.*', cmd = 'NvimTreeOpen', dependencies = { 'nvim-tree/nvim-web-devicons', 'antosha417/nvim-lsp-file-operations', }, init = function () -- disable netrw at the very start of your init.lua vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 'nvim-tree/nvim-tree.lua', version = '1.*', -- docs do not recommend to lazy load, but it does load slowly on win32! -- lazy = false, cmd = 'NvimTreeOpen', dependencies = { 'nvim-tree/nvim-web-devicons', 'antosha417/nvim-lsp-file-operations', }, init = function () -- disable netrw at the very start of your init.lua vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 -- set termguicolors to enable highlight groups vim.opt.termguicolors = true end, opts = { sort_by = 'case_sensitive', view = { width = 69, }, renderer = { group_empty = true, }, filters = { dotfiles = false, }, }, config = function ( _, opts ) require 'nvim-tree'.setup( opts ) require 'lsp-file-operations'.setup() end, -- set termguicolors to enable highlight groups vim.opt.termguicolors = true end, opts = { sort_by = 'case_sensitive', view = { width = 69, }, renderer = { group_empty = true, }, filters = { dotfiles = false, }, }, config = function ( _, opts ) require 'nvim-tree'.setup( opts ) require 'lsp-file-operations'.setup() end,+199 / −191 text lines
'nvim-treesitter/nvim-treesitter', -- version = '0.9.*', branch = 'master', -- restoring session throws errors, if this is lazy lazy = false, build = function () require 'nvim-treesitter.install'.update { with_sync = true, } end, dependencies = { 'nvim-treesitter/playground', 'nvim-treesitter/nvim-treesitter-textobjects', 'windwp/nvim-ts-autotag', 'RRethy/nvim-treesitter-endwise', 'nushell/tree-sitter-nu', }, config = function () local install = require 'nvim-treesitter.install' local configs = require 'nvim-treesitter.configs' 'nvim-treesitter/nvim-treesitter', -- version = '0.9.*', branch = 'master', -- restoring session throws errors, if this is lazy lazy = false, build = function () require 'nvim-treesitter.install'.update { with_sync = false, } end, dependencies = { 'nvim-treesitter/playground', 'nvim-treesitter/nvim-treesitter-textobjects', 'windwp/nvim-ts-autotag', 'RRethy/nvim-treesitter-endwise', 'nvim-treesitter/nvim-treesitter-context', 'nushell/tree-sitter-nu', }, config = function () local install = require 'nvim-treesitter.install' local configs = require 'nvim-treesitter.configs' ---@diagnostic disable-next-line: missing-fields configs.setup { sync_install = false, ensure_installed = { 'bash', 'c', -- https://github.com/nvim-treesitter/nvim-treesitter/issues/5389 'comment', 'diff', 'dot', 'git_config', 'gitcommit', 'gitignore', 'java', 'just', 'jsonc', 'markdown', 'markdown_inline', 'nu', 'lua', 'luap', 'luadoc', 'regex', 'vim', 'vimdoc', 'query', 'zig', }, ---@diagnostic disable-next-line: missing-fields configs.setup { sync_install = false, ensure_installed = { 'bash', 'c', 'comment', 'diff', 'dot', 'dtd', 'git_config', 'gitattributes', 'gitcommit', 'gitignore', 'ini', 'java', 'just', 'jsonc', 'lua', 'luap', 'luadoc', 'markdown', 'markdown_inline', 'muttrc', 'nasm', 'nix', 'nu', 'passwd', 'pem', 'properties', 'proto', 'printf', 'query', 'regex', 'ssh_config', 'toml', 'udev', 'vim', 'vimdoc', 'xml', 'zig', }, playground = { enable = true, disable = should_disable, updatetime = 25, persist_queries = false, 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 = '?', }, }, playground = { enable = true, disable = should_disable, updatetime = 25, persist_queries = false, 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 = '?', }, }, ['al'] = { query = '@loop.outer', desc = 'outer loop', }, ['il'] = { query = '@loop.inner', desc = 'inner loop', }, ['agc'] = { query = '@comment.outer', desc = 'outer comment', }, ['igc'] = { query = '@comment.inner', desc = 'inner comment', }, }, selection_modes = { ['@parameter.outer'] = 'v', ['@function.outer'] = 'v', ['@class.outer'] = '<c-v>', ['@scope'] = 'V', }, include_surroundig_whitespace = true, }, ['at'] = { query = '@comment.outer', desc = 'outer comment', }, lsp_interop = { enable = true, disable = should_disable, border = vim.g.border_style, floating_preview_opts = {}, peek_definition_code = { ['<leader>lpf'] = { query = '@function.outer', desc = 'Peek definition of outer function.', }, ['<leader>lpc'] = { query = '@class.outer', desc = 'Peek definition of outer class.', }, }, }, ['as'] = { query = '@scope', query_group = 'locals', desc = 'language scope', }, }, selection_modes = { ['@parameter.outer'] = 'v', ['@function.outer'] = 'v', ['@class.outer'] = '<c-v>', ['@scope'] = 'V', }, include_surroundig_whitespace = true, }, swap = { enable = true, disable = should_disable, swap_next = { ['<leader>rwn'] = { query = '@parameter.inner', desc = 'Swap parameter with next', }, }, swap_previous = { ['<leader>rwp'] = { query = '@parameter.inner', desc = 'Swap parameter with previous', }, }, }, lsp_interop = { enable = true, disable = should_disable, border = vim.g.border_style, floating_preview_opts = {}, peek_definition_code = { ['<leader>lpf'] = { query = '@function.outer', desc = 'Peek definition of outer function.', }, ['<leader>lpc'] = { query = '@class.outer', desc = 'Peek definition of outer class.', }, }, }, move = { enable = true, disable = should_disable, set_jumps = true, goto_next = { [']f'] = { query = '@call.outer', desc = 'Goto next function call', }, [']m'] = { query = '@fucntion.outer', desc = 'Goto next function definition', }, [']c'] = { query = '@class.outer', desc = 'Goto next class', }, [']o'] = { query = '@conditional.outer', desc = 'Goto next conditional', }, [']p'] = { query = '@parameter.outer', desc = 'Goto next parameter', }, }, goto_previous = { ['[f'] = { query = '@call.outer', desc = 'Goto previous function call', }, ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition', }, ['[c'] = { query = '@class.outer', desc = 'goto previous class', }, ['[o'] = { query = '@conditional.outer', desc = 'Goto previous conditional', }, ['[p'] = { query = '@parameter.outer', desc = 'Goto previous parameter', }, }, }, }, } end, move = { enable = true, disable = should_disable, set_jumps = true, goto_next = { [']f'] = { query = '@call.outer', desc = 'Goto next function call', }, [']m'] = { query = '@fucntion.outer', desc = 'Goto next function definition', }, [']c'] = { query = '@class.outer', desc = 'Goto next class', }, [']o'] = { query = '@conditional.outer', desc = 'Goto next conditional', }, [']p'] = { query = '@parameter.outer', desc = 'Goto next parameter', }, }, goto_previous = { ['[f'] = { query = '@call.outer', desc = 'Goto previous function call', }, ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition', }, ['[c'] = { query = '@class.outer', desc = 'goto previous class', }, ['[o'] = { query = '@conditional.outer', desc = 'Goto previous conditional', }, ['[p'] = { query = '@parameter.outer', desc = 'Goto previous parameter', }, }, }, }, } require 'treesitter-context'.setup { enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. line_numbers = true, multiline_threshold = 20, -- Maximum number of lines to show for a single context trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' -- Separator between context and content. Should be a single character string, like '-'. -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. separator = nil, zindex = 20, -- The Z-index of the context window on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching } end,+1 / −0 text lines
+3 / −0 text lines