repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

7ff140a95d348dde5013caa1b6541e5342771571

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

+264 / −265 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately

Diff layout

neovim/README.md

Modified

+9 / −13 text lines

3939# todo
41* navic highlights do not fit winbar
42* neogen does not generate JavDoc
43* pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc
44* command for toggling case conventions
4145* make highlights more visible when expanding snippets
42* fix bug:
43 cursor restore position on (session?) load jumps one location to somewhere
44 after correct location
45* toggling case conventions
46* Move to treesitter main branch
46* cursor restore position on (session?) load jumps one location to somewhere after correct location
4747* check out `vim.snippet`
4848* use `vim.base64` in wezterm plugin
49* Bug:
50 LuaLS is getting crazy diagnosing non-stop...
49* LuaLS is getting crazy diagnosing non-stop...
5150* integrate language tool?
52* ]s [s to jump to spelling mistakes
53* learn marks and refactor mark.lua
54* try Termdebug with gdb
51* refactor mark.lua
5552* adapt config to respect `vim.g.nerdfont` (std.constants?)
53* Do I want multiple LSPs per buffer? In case of markdown and text it seems useful, for code it seems like a headache...
5654* use ltex-ls for markdown, code comments and commit messages
57* learn from
58 <https://github.com/stevearc/dotfiles/blob/master/.config/nvim/plugin/exrc.lua>
59 and maybe adapt `std.localrc`
6055* setup DAP
6156* nvim spell for camel case words
6257* add nu-check to nvim-lint
6661 on_attach)
6762* split parts of config into plugins
6863* add support for Java multi line string in autopairs
64* try Termdebug with gdb
6965* pandoc with lua filters for diagrams for generating documents and previewing
7066 --> https://github.com/tex/vimpreviewpandoc
7167 outside of vim?

neovim/after/queries/lua/highlights.scm

Modified

+5 / −12 text lines

1(("local" @keyword) (#set! conceal "⋅"))
2(("function" @keyword.function) (#set! conceal "ϝ"))
3(("end" @keyword.function) (#set! conceal "∎"))
4(("return" @keyword.return) (#set! conceal "↳"))
5(("then" @conditional) (#set! conceal "⟶"))
6
7((dot_index_expression table: (identifier) @variable (#eq? @variable "vim")) (#set! conceal ""))
8
9((function_call name: (identifier) @function (#eq? @function "require")) (#set! conceal ""))
11; ((function_call name: (identifier) @function (#eq? @function "want")) (#set! conceal "ω"))
12; ((local_declaration name: (identifier) @variable (#eq? @variable "want") (#set! conceal "ω"))
1;; inherits: lua
2;; extends
3(("local" @keyword) (#set! conceal "·"))
4(("function" @keyword.function) (#set! conceal "λ"))
5(("return" @keyword.return) (#set! conceal "󰌑"))

neovim/ftplugin/lua.lua

Modified

+2 / −1 text lines

55 vim.opt_local.path:append( path .. '/lua' )
66end
77vim.opt_local.suffixesadd:prepend '.lua'
8vim.opt_local.conceallevel = 1
910local map = require 'std.map'
2021 remap = true,
23--TODO: add debug.print, require, prequire
24--TODO: add dbg.print, require, prequire
2425prequire 'nvim-surround'.buffer_setup {
2526 surrounds = {
2627 ['R'] = {

neovim/lazy-lock.json

Modified

+13 / −14 text lines

22 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
33 "LuaSnip": { "branch": "master", "commit": "be7be2ca7f55bb881a7ffc16b2efa5af034ab06b" },
44 "actions-preview.nvim": { "branch": "master", "commit": "5072b1b1065a6b22bdd46b5c21780a91d6a08071" },
5 "auto-dark-mode.nvim": { "branch": "master", "commit": "e328dc463d238cb7d690fb4daf068eba732a5a14" },
65 "better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" },
76 "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
87 "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
109 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
1110 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
1211 "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" },
13 "conform.nvim": { "branch": "master", "commit": "9d5ba06d6ee7418c674f498634617416d15b6239" },
12 "conform.nvim": { "branch": "master", "commit": "820eec990d5f332d30cf939954c8672a43a0459e" },
1413 "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
1514 "dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" },
1615 "fidget.nvim": { "branch": "main", "commit": "1ba38e4cbb24683973e00c2e36f53ae64da38ef5" },
2221 "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
2322 "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
2423 "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
25 "mason-tool-installer.nvim": { "branch": "main", "commit": "6c15772d5e4a01d0b2ad3ad6df23cf38517c4ad2" },
24 "mason-tool-installer.nvim": { "branch": "main", "commit": "b129892f783740e6cf741f2ea09fa5dd512aa584" },
2625 "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
2726 "mini.bracketed": { "branch": "main", "commit": "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
2827 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
2928 "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
3029 "neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" },
31 "neorg": { "branch": "main", "commit": "7c5464722a4e8240efd9ecd7bef85d38f94c1ab5" },
30 "neorg": { "branch": "main", "commit": "c17b8e9e7327e03f78fbdccfb15abd09ec607bd0" },
3231 "neotest": { "branch": "master", "commit": "f03a78cef74db5638e4312e18b767294a90de8da" },
3332 "neotest-plenary": { "branch": "master", "commit": "dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" },
3433 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
4948 "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
5049 "nvim-nio": { "branch": "master", "commit": "5a3a06e5df34f1b4fc1500622b10620c49c60da6" },
5150 "nvim-spectre": { "branch": "master", "commit": "2b012554a2536465243c0dff3605b5927c49ed23" },
52 "nvim-surround": { "branch": "main", "commit": "84a26afce16cffa7e3322cfa80a42cddf60616eb" },
51 "nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" },
5352 "nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" },
54 "nvim-treesitter": { "branch": "master", "commit": "2bad828b48aed74efe8f7e4ea15550e18c7b482d" },
53 "nvim-treesitter": { "branch": "master", "commit": "7099c9e5310ec3ef70f99e8c935c061ae9990cdd" },
5554 "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" },
56 "nvim-treesitter-textobjects": { "branch": "master", "commit": "252e65409bc783b0d154f3a341e423c2c4475b26" },
55 "nvim-treesitter-textobjects": { "branch": "master", "commit": "23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" },
5756 "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
5857 "nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" },
59 "nvim-web-devicons": { "branch": "master", "commit": "6e355632387a085f15a66ad68cf681c1d7374a04" },
58 "nvim-web-devicons": { "branch": "master", "commit": "b3468391470034353f0e5110c70babb5c62967d3" },
6059 "nvim-window": { "branch": "main", "commit": "fad0dc96de265b0bdcb21d1071329e5ab1deb4af" },
6160 "oil.nvim": { "branch": "master", "commit": "e462a3446505185adf063566f5007771b69027a1" },
62 "overseer.nvim": { "branch": "master", "commit": "b04b0b105c07b4f02b3073ea3a98d6eca90bf152" },
61 "overseer.nvim": { "branch": "master", "commit": "dd701ed0639ef1e10d0ca8dec039719e916c4a7b" },
6362 "pair-ls.nvim": { "branch": "master", "commit": "e7a8f55f54a6a1956b782ddefba79dc6bb308d1d" },
6463 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
6564 "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
6665 "qf_helper.nvim": { "branch": "master", "commit": "91dad029c11d1c39b0d1276eda52616f651072be" },
6766 "resession.nvim": { "branch": "master", "commit": "dc8825439c619030925543a444c4186a2487c200" },
68 "schemastore.nvim": { "branch": "main", "commit": "c5d5abc86910fb31b9f734cae2547322e81d3a26" },
69 "specs.nvim": { "branch": "main", "commit": "e929006d3f6bb8e43f03e13ac364c67236eb5299" },
67 "schemastore.nvim": { "branch": "main", "commit": "cf82be744f4dba56d5d0c13d7fe429dd1d4c02e7" },
68 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
7069 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
7170 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
7271 "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
73 "suda.vim": { "branch": "master", "commit": "66727b416837836712975e748bc8a19fb6cf4ec3" },
72 "suda.vim": { "branch": "master", "commit": "d0ccc1a5172f6a26182238767e60e08b931d11fa" },
7473 "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
7574 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
7675 "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" },
7776 "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
7877 "tint.nvim": { "branch": "master", "commit": "862835626941d263466754b9c8e2ce2cb004f5ac" },
7978 "todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
80 "tree-sitter-nu": { "branch": "main", "commit": "c5b7816043992b1cdc1462a889bc74dc08576fa6" },
79 "tree-sitter-nu": { "branch": "main", "commit": "b090676f0205f52debb93745b9ad788385583276" },
8180 "treesj": { "branch": "main", "commit": "60e27280030f9cd8dfb6ceb335922c6ff76682cc" },
8281 "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
8382 "venn.nvim": { "branch": "main", "commit": "e4d68341a73dd56c64955058821a58295fb337b1" },
8584 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
8685 "which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" },
8786 "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" }
88}No final newline
87}

neovim/lua/bugabinga/lsp/clients/java.lua

Modified

+3 / −3 text lines

107107 jdk17.path = '/usr/lib64/jvm/java-17-openjdk-17'
108108 jdk21.path = '/usr/lib64/jvm/java-21-openjdk-21'
109109 elseif host == 'NB-00718' then
110 jdk11.path = 'C:/Users/okr/scoop/apps/openjdk11'
111 jdk17.path = 'C:/Users/okr/scoop/apps/openjdk17'
112 jdk21.path = 'C:/Users/okr/scoop/apps/openjdk21'
110 jdk11.path = 'C:/Users/okr/scoop/apps/openjdk11/current'
111 jdk17.path = 'C:/Users/okr/scoop/apps/openjdk17/current'
112 jdk21.path = 'C:/Users/okr/scoop/apps/openjdk21/current'
113113 else
114114 vim.notify 'missing jdk paths in java settings for lsp'
115115 end

neovim/lua/bugabinga/plugins/genghis.lua

Modified

+2 / −0 text lines

7878 'Duplicate',
7979 'Rename',
8080 'Move',
81 'MoveToFolderInCwd',
8182 'Trash',
8283 'CopyFilename',
8384 'CopyFilepath',
85 'CopyFilepathWithTilde',
8486 'CopyRelativePath',
8587 'CopyDirectoryPath',
8688 'CopyRelativeDirectoryPath',

neovim/lua/bugabinga/plugins/tree.lua

Modified

+36 / −34 text lines

11local map = require 'std.map'
33map.normal {
4 description = 'Toggle Tree File Explorer',
5 category = 'explorer',
6 keys = '<leader>e',
7 command = function () require 'nvim-tree.api'.tree.toggle() end,
4 description = 'Toggle Tree File Explorer',
5 category = 'explorer',
6 keys = '<leader>e',
7 command = function () require 'nvim-tree.api'.tree.toggle() end,
88}
1010return {
11 'nvim-tree/nvim-tree.lua',
12 version = '1.*',
13 cmd = 'NvimTreeOpen',
14 dependencies = {
15 'nvim-tree/nvim-web-devicons',
16 'antosha417/nvim-lsp-file-operations',
17 },
18 init = function ()
19 -- disable netrw at the very start of your init.lua
20 vim.g.loaded_netrw = 1
21 vim.g.loaded_netrwPlugin = 1
11 'nvim-tree/nvim-tree.lua',
12 version = '1.*',
13 -- docs do not recommend to lazy load, but it does load slowly on win32!
14 -- lazy = false,
15 cmd = 'NvimTreeOpen',
16 dependencies = {
17 'nvim-tree/nvim-web-devicons',
18 'antosha417/nvim-lsp-file-operations',
19 },
20 init = function ()
21 -- disable netrw at the very start of your init.lua
22 vim.g.loaded_netrw = 1
23 vim.g.loaded_netrwPlugin = 1
23 -- set termguicolors to enable highlight groups
24 vim.opt.termguicolors = true
25 end,
26 opts = {
27 sort_by = 'case_sensitive',
28 view = {
29 width = 69,
30 },
31 renderer = {
32 group_empty = true,
33 },
34 filters = {
35 dotfiles = false,
36 },
37 },
38 config = function ( _, opts )
39 require 'nvim-tree'.setup( opts )
40 require 'lsp-file-operations'.setup()
41 end,
25 -- set termguicolors to enable highlight groups
26 vim.opt.termguicolors = true
27 end,
28 opts = {
29 sort_by = 'case_sensitive',
30 view = {
31 width = 69,
32 },
33 renderer = {
34 group_empty = true,
35 },
36 filters = {
37 dotfiles = false,
38 },
39 },
40 config = function ( _, opts )
41 require 'nvim-tree'.setup( opts )
42 require 'lsp-file-operations'.setup()
43 end,

neovim/lua/bugabinga/plugins/treesitter.lua

Modified

+190 / −188 text lines

11require 'bugabinga.health'.add_dependency
2{
3 name = 'CMake',
4 name_of_executable = 'cmake',
5}
6 {
7 name_of_executable = 'make',
8 }
9 {
10 name_of_executable = 'zig',
11 }
12 {
13 name = 'TreeSitter CLI',
14 name_of_executable = 'tree-sitter',
15 }
16 {
17 name_of_executable = 'tar',
18 }
2{ name = 'CMake', name_of_executable = 'cmake', }
3 { name_of_executable = 'make', }
4 { name_of_executable = 'zig', }
5 { name = 'TreeSitter CLI', name_of_executable = 'tree-sitter', }
6 { name_of_executable = 'tar', }
208return {
21 'nvim-treesitter/nvim-treesitter',
22 -- version = '0.9.*',
23 branch = 'master',
24 -- restoring session throws errors, if this is lazy
25 lazy = false,
26 build = function ()
27 require 'nvim-treesitter.install'.update { with_sync = true, }
28 end,
29 dependencies = {
30 'nvim-treesitter/playground',
31 'nvim-treesitter/nvim-treesitter-textobjects',
32 'windwp/nvim-ts-autotag',
33 'RRethy/nvim-treesitter-endwise',
34 'nushell/tree-sitter-nu',
35 },
36 config = function ()
37 local install = require 'nvim-treesitter.install'
38 local configs = require 'nvim-treesitter.configs'
9 'nvim-treesitter/nvim-treesitter',
10 -- version = '0.9.*',
11 branch = 'master',
12 -- restoring session throws errors, if this is lazy
13 lazy = false,
14 build = function ()
15 require 'nvim-treesitter.install'.update { with_sync = true, }
16 end,
17 dependencies = {
18 'nvim-treesitter/playground',
19 'nvim-treesitter/nvim-treesitter-textobjects',
20 'windwp/nvim-ts-autotag',
21 'RRethy/nvim-treesitter-endwise',
22 'nushell/tree-sitter-nu',
23 },
24 config = function ()
25 local install = require 'nvim-treesitter.install'
26 local configs = require 'nvim-treesitter.configs'
40 install.prefer_git = false
41 install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC', }
28 install.prefer_git = false
29 install.compilers = { 'clang', 'zig', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC', }
44 local should_disable = function ( _, bufnr )
45 local max_filesize = 5 * 1024 * 1024 --MiB
46 local ok, stats = pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr or 0 ) )
47 if ok and stats and stats.size > max_filesize then
48 return true
49 end
50 return false
51 end
32 local should_disable = function ( _, bufnr )
33 local max_filesize = 5 * 1024 * 1024 --MiB
34 local ok, stats = pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr or 0 ) )
35 if ok and stats and stats.size > max_filesize then
36 return true
37 end
38 return false
39 end
53 ---@diagnostic disable-next-line: missing-fields
54 configs.setup {
55 sync_install = false,
56 ensure_installed = {
57 'bash',
58 'c',
59 -- https://github.com/nvim-treesitter/nvim-treesitter/issues/5389
60 'comment',
61 'diff',
62 'dot',
63 'git_config',
64 'gitcommit',
65 'gitignore',
66 'java',
67 'just',
68 'jsonc',
69 'markdown',
70 'markdown_inline',
71 'nu',
72 'lua',
73 'luap',
74 'luadoc',
75 'regex',
76 'vim',
77 'vimdoc',
78 'query',
79 'zig',
80 },
41 ---@diagnostic disable-next-line: missing-fields
42 configs.setup {
43 sync_install = false,
44 ensure_installed = {
45 'bash',
46 'c',
47 'comment',
48 'diff',
49 'dot',
50 'dtd',
51 'git_config',
52 'gitattributes',
53 'gitcommit',
54 'gitignore',
55 'ini',
56 'java',
57 'just',
58 'jsonc',
59 'lua',
60 'luap',
61 'luadoc',
62 'markdown',
63 'markdown_inline',
64 'muttrc',
65 'nasm',
66 'nix',
67 'nu',
68 'passwd',
69 'pem',
70 'properties',
71 'proto',
72 'printf',
73 'query',
74 'regex',
75 'ssh_config',
76 'toml',
77 'udev',
78 'vim',
79 'vimdoc',
80 'xml',
81 'zig',
82 },
82 ignore_install = { 'oil', },
84 ignore_install = { 'oil', },
84 auto_install = true,
86 auto_install = true,
86 autotag = { enable = true, disable = should_disable, },
87 ewndwise = { enable = true, disable = should_disable, },
88 autotag = { enable = true, disable = should_disable, },
89 ewndwise = { enable = true, disable = should_disable, },
89 highlight = {
90 enable = true,
91 disable = should_disable,
92 additional_vim_regex_highlighting = false,
93 },
91 highlight = {
92 enable = true,
93 disable = should_disable,
94 additional_vim_regex_highlighting = false,
95 },
95 incremental_selection = {
96 enable = true,
97 disable = should_disable,
98 keymaps = {
99 init_selection = '<up>',
100 node_incremental = '<up>',
101 node_decremental = '<down>',
102 scope_incremental = '<right>',
103 },
104 },
97 incremental_selection = {
98 enable = true,
99 disable = should_disable,
100 keymaps = {
101 init_selection = '<up>',
102 node_incremental = '<up>',
103 node_decremental = '<down>',
104 scope_incremental = '<right>',
105 },
106 },
106 indent = { enable = true, },
108 indent = { enable = true, },
108 playground = {
109 enable = true,
110 disable = should_disable,
111 updatetime = 25,
112 persist_queries = false,
113 keybindings = {
114 toggle_query_editor = 'o',
115 toggle_hl_groups = 'i',
116 toggle_injected_languages = 't',
117 toggle_anonymous_nodes = 'a',
118 toggle_language_display = 'I',
119 focus_language = 'f',
120 unfocus_language = 'F',
121 update = 'R',
122 goto_node = '<cr>',
123 show_help = '?',
124 },
125 },
110 playground = {
111 enable = true,
112 disable = should_disable,
113 updatetime = 25,
114 persist_queries = false,
115 keybindings = {
116 toggle_query_editor = 'o',
117 toggle_hl_groups = 'i',
118 toggle_injected_languages = 't',
119 toggle_anonymous_nodes = 'a',
120 toggle_language_display = 'I',
121 focus_language = 'f',
122 unfocus_language = 'F',
123 update = 'R',
124 goto_node = '<cr>',
125 show_help = '?',
126 },
127 },
127 textobjects = {
128 select = {
129 enable = true,
130 disable = should_disable,
131 lookahead = true,
132 keymaps = {
133 ['af'] = { query = '@call.outer', desc = 'outer function call', },
134 ['if'] = { query = '@call.inner', desc = 'inner function call', },
129 textobjects = {
130 select = {
131 enable = true,
132 disable = should_disable,
133 lookahead = true,
134 keymaps = {
135 ['af'] = { query = '@call.outer', desc = 'outer function call', },
136 ['if'] = { query = '@call.inner', desc = 'inner function call', },
136 ['am'] = { query = '@function.outer', desc = 'outer function definition', },
137 ['im'] = { query = '@function.inner', desc = 'inner function definition', },
138 ['am'] = { query = '@function.outer', desc = 'outer function definition', },
139 ['im'] = { query = '@function.inner', desc = 'inner function definition', },
139 ['aa'] = { query = '@assignment.outer', desc = 'outer assignment', },
140 ['ia'] = { query = '@assignment.inner', desc = 'inner assignment', },
141 ['aa'] = { query = '@assignment.outer', desc = 'outer assignment', },
142 ['ia'] = { query = '@assignment.inner', desc = 'inner assignment', },
142 -- l overwrites builtin. i have no good idea for better binding. use ia instead.
143 -- ['la'] = { query = '@assignment.lhs', desc = 'left hand side of assignment'},
144 -- ['ra'] = { query = '@assignment.rhs', desc = 'right hand side of assignment'},
144 -- l overwrites builtin. i have no good idea for better binding. use ia instead.
145 -- ['la'] = { query = '@assignment.lhs', desc = 'left hand side of assignment'},
146 -- ['ra'] = { query = '@assignment.rhs', desc = 'right hand side of assignment'},
146 ['ac'] = { query = '@class.outer', desc = 'outer class', },
147 ['ic'] = { query = '@class.inner', desc = 'inner class', },
148 ['ac'] = { query = '@class.outer', desc = 'outer class', },
149 ['ic'] = { query = '@class.inner', desc = 'inner class', },
149 ['ao'] = { query = '@conditional.outer', desc = 'outer conditional', },
150 ['io'] = { query = '@conditional.inner', desc = 'inner conditional', },
151 ['ao'] = { query = '@conditional.outer', desc = 'outer conditional', },
152 ['io'] = { query = '@conditional.inner', desc = 'inner conditional', },
152 ['al'] = { query = '@loop.outer', desc = 'outer loop', },
153 ['il'] = { query = '@loop.inner', desc = 'inner loop', },
154 ['al'] = { query = '@loop.outer', desc = 'outer loop', },
155 ['il'] = { query = '@loop.inner', desc = 'inner loop', },
155 -- this overwrites the built-in 'paragraph' object
156 ['ap'] = { query = '@parameter.outer', desc = 'outer parameter', },
157 ['ip'] = { query = '@parameter.inner', desc = 'inner parameter', },
157 -- this overwrites the built-in 'paragraph' object
158 ['ap'] = { query = '@parameter.outer', desc = 'outer parameter', },
159 ['ip'] = { query = '@parameter.inner', desc = 'inner parameter', },
159 ['at'] = { query = '@comment.outer', desc = 'outer comment', },
161 ['at'] = { query = '@comment.outer', desc = 'outer comment', },
161 ['as'] = { query = '@scope', query_group = 'locals', desc = 'language scope', },
162 },
163 selection_modes = {
164 ['@parameter.outer'] = 'v',
165 ['@function.outer'] = 'v',
166 ['@class.outer'] = '<c-v>',
167 ['@scope'] = 'V',
168 },
169 include_surroundig_whitespace = true,
170 },
163 ['as'] = { query = '@scope', query_group = 'locals', desc = 'language scope', },
164 },
165 selection_modes = {
166 ['@parameter.outer'] = 'v',
167 ['@function.outer'] = 'v',
168 ['@class.outer'] = '<c-v>',
169 ['@scope'] = 'V',
170 },
171 include_surroundig_whitespace = true,
172 },
172 swap = {
173 enable = true,
174 disable = should_disable,
175 swap_next = {
176 ['<leader>rwn'] = { query = '@parameter.inner', desc = 'Swap parameter with next', },
177 },
178 swap_previous = {
179 ['<leader>rwp'] = { query = '@parameter.inner', desc = 'Swap parameter with previous', },
180 },
181 },
174 swap = {
175 enable = true,
176 disable = should_disable,
177 swap_next = {
178 ['<leader>rwn'] = { query = '@parameter.inner', desc = 'Swap parameter with next', },
179 },
180 swap_previous = {
181 ['<leader>rwp'] = { query = '@parameter.inner', desc = 'Swap parameter with previous', },
182 },
183 },
183 lsp_interop = {
184 enable = true,
185 disable = should_disable,
186 border = vim.g.border_style,
187 floating_preview_opts = {},
188 peek_definition_code = {
189 ['<leader>lpf'] = { query = '@function.outer', desc = 'Peek definition of outer function.', },
190 ['<leader>lpc'] = { query = '@class.outer', desc = 'Peek definition of outer class.', },
191 },
192 },
185 lsp_interop = {
186 enable = true,
187 disable = should_disable,
188 border = vim.g.border_style,
189 floating_preview_opts = {},
190 peek_definition_code = {
191 ['<leader>lpf'] = { query = '@function.outer', desc = 'Peek definition of outer function.', },
192 ['<leader>lpc'] = { query = '@class.outer', desc = 'Peek definition of outer class.', },
193 },
194 },
194 move = {
195 enable = true,
196 disable = should_disable,
197 set_jumps = true,
198 goto_next = {
199 [']f'] = { query = '@call.outer', desc = 'Goto next function call', },
200 [']m'] = { query = '@fucntion.outer', desc = 'Goto next function definition', },
201 [']c'] = { query = '@class.outer', desc = 'Goto next class', },
202 [']o'] = { query = '@conditional.outer', desc = 'Goto next conditional', },
203 [']p'] = { query = '@parameter.outer', desc = 'Goto next parameter', },
204 },
205 goto_previous = {
206 ['[f'] = { query = '@call.outer', desc = 'Goto previous function call', },
207 ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition', },
208 ['[c'] = { query = '@class.outer', desc = 'goto previous class', },
209 ['[o'] = { query = '@conditional.outer', desc = 'Goto previous conditional', },
210 ['[p'] = { query = '@parameter.outer', desc = 'Goto previous parameter', },
211 },
212 },
213 },
214 }
215 end,
196 move = {
197 enable = true,
198 disable = should_disable,
199 set_jumps = true,
200 goto_next = {
201 [']f'] = { query = '@call.outer', desc = 'Goto next function call', },
202 [']m'] = { query = '@fucntion.outer', desc = 'Goto next function definition', },
203 [']c'] = { query = '@class.outer', desc = 'Goto next class', },
204 [']o'] = { query = '@conditional.outer', desc = 'Goto next conditional', },
205 [']p'] = { query = '@parameter.outer', desc = 'Goto next parameter', },
206 },
207 goto_previous = {
208 ['[f'] = { query = '@call.outer', desc = 'Goto previous function call', },
209 ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition', },
210 ['[c'] = { query = '@class.outer', desc = 'goto previous class', },
211 ['[o'] = { query = '@conditional.outer', desc = 'Goto previous conditional', },
212 ['[p'] = { query = '@parameter.outer', desc = 'Goto previous parameter', },
213 },
214 },
215 },
216 }
217 end,

neovim/lua/std/project.lua

Modified

+1 / −0 text lines

11local debug = require 'std.dbg'
22local table = require 'std.table'
3
34local join = table.join
45local dirname = vim.fs.dirname
56local normalize = vim.fs.normalize

neovim/spell/nerd.utf-8.add

Modified

+3 / −0 text lines

2424lsp
2525autopairs
2626cterm/!
27navic
28winbar
2729resession
2830configs
2931BufNewFile
5759modulepath
5860FFI
5961jdtls
62sinnfrei

neovim/spell/nerd.utf-8.add.spl

Modified

Binary size (old → new): 789 → 822 bytes.