repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: fix some internal treesitter functions for win32

0da4a2334e2e076e94c713c90f0a9c3c27f450bd

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

unsigned

Browse filesCompare with HEAD

Changed files (11)

+435 / −388 text lines

git/gitconfig

Modified

+5 / −4 text lines

63 63 # try to automatically correct mispelled git commands
64 64 autocorrect = 7
66 -# In order to have host-specific configuration, I include additional settings here.
67 -# On each host a different file might be symlinked into '.gitconfig.include'.
68 -[include]
69 - path = .gitconfig.include
70 66 [credential "https://github.com"]
71 67 helper =
72 68 helper = !/usr/bin/gh auth git-credential
73 69 [credential "https://gist.github.com"]
74 70 helper =
75 71 helper = !/usr/bin/gh auth git-credential
73 +# In order to have host-specific configuration, I include additional settings here.
74 +# On each host a different file might be symlinked into '.gitconfig.include'.
75 +[include]
76 + path = .gitconfig.include

git/gitconfig.PC-00625

Modified

+0 / −15 text lines

2 2 [user]
3 3 name = Oliver Krylow
4 4 email = o.krylow@isp-insoft.de
6 -[credential]
7 - helper = manager-core
9 -[credential "helperselector"]
10 - selected = manager-core
12 -[core]
13 - editor = code --wait
14 - fsmonitor=true
16 -[diff]
17 - tool = code-difftool
19 -[difftool "code-difftool"]
20 - cmd = code --wait --diff $LOCAL $REMOTE

neovim/lazy-lock.json

Modified

+6 / −3 text lines

19 19 "hydra.nvim": { "branch": "master", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" },
20 20 "inc-rename.nvim": { "branch": "main", "commit": "ed0f6f2b917cac4eb3259f907da0a481b27a3b7e" },
21 21 "indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" },
22 - "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
22 + "lazy.nvim": { "branch": "main", "commit": "7ca3bdb566c3ba4492f2d22b37c2c9e26f09470f" },
23 23 "lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
24 24 "lush.nvim": { "branch": "main", "commit": "966aad1accd47fa11fbe2539234f81f678fef2de" },
25 25 "mason.nvim": { "branch": "main", "commit": "d66c60e17dd6fd8165194b1d14d21f7eb2c1697a" },
34 34 "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
35 35 "nvim-genghis": { "branch": "main", "commit": "b15d7d0c37f7739a5723f20dfae9e501b9952b08" },
36 36 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
37 + "nvim-jdtls": { "branch": "master", "commit": "a5c6f38f8151d7b4f5b32c005a95022fa66f4c9d" },
37 38 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
38 39 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
39 40 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
41 + "nvim-spectre": { "branch": "master", "commit": "be7ff1d29ddf2de59b3dc293988d110c2c00ac84" },
40 42 "nvim-surround": { "branch": "main", "commit": "0d6882635817a2677749a330127d12ac30a4f3c8" },
41 - "nvim-treesitter": { "branch": "master", "commit": "f3fb301b267e85e4cbc725561da4a82b1c3089c8" },
43 + "nvim-treesitter": { "branch": "master", "commit": "d6c9c85e14e15bc59478a0d5d810e88dad0ac53f" },
44 + "nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" },
42 45 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bd103502252027434ec42f628d2dbf54821d4ce6" },
43 46 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
44 47 "nvim-ts-context-commentstring": { "branch": "main", "commit": "95e9ba9de4289d221666b66fd930d157c7ca08c6" },
61 64 "virt-column.nvim": { "branch": "master", "commit": "5fc72873dc3175eddbdbbedea8071919c99ad755" },
62 65 "which-key.nvim": { "branch": "main", "commit": "bf09a25bdc9a83bcc69d2cf078e680368676513b" },
63 66 "zen-mode.nvim": { "branch": "main", "commit": "6e6c963d70a8e47854fa656987666bfb863f9c4e" }
64 -}

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

Modified

+10 / −1 text lines

74 74 local jdk19 = {
75 75 name = "JavaSE-19",
77 + local jdk21 = {
78 + name = "JavaSE-21",
79 + }
78 81 if host == 'pop-os' then
79 82 jdk11.path = '/usr/lib/jvm/openjdk-11'
80 83 jdk17.path = '/usr/lib/jvm/openjdk-17'
81 84 jdk19.path = '/usr/lib/jvm/openjdk-19'
85 + jdk21.path = '~/.jdks/openjdk-21'
86 +elseif host == 'PC-00625' then
87 + jdk11.path = '~/scoop/apps/openjdk11/current'
88 + jdk17.path = '~/scoop/apps/openjdk17/current'
89 + jdk19.path = '~/scoop/apps/openjdk19/current'
90 + jdk21.path = '~/scoop/apps/openjdk21/current'
83 92 vim.notify 'missing jdk paths in java settings for lsp'
86 - return { jdk11, jdk17, jdk19 }
95 + return { jdk11, jdk17, jdk19, jdk21 }
89 98 local java_settings = {

neovim/lua/bugabinga/options/keymaps.lua

Modified

+3 / −41 text lines

122 122 command = function() return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end,
125 +local host = vim.uv.os_gethostname()
126 +local browser = host == 'PC-00625' and 'chrome' or 'firefox'
125 127 local function open_link_under_cursor()
126 128 ---@diagnostic disable-next-line: missing-parameter
127 129 local file_under_cursor = vim.fn.expand '<cfile>'
129 131 if file_under_cursor and file_under_cursor:match '%a+://.+' then
130 132 local Job = require 'plenary.job'
131 133 local job = Job:new {
132 - command = 'firefox',
134 + command = browser,
133 135 args = { file_under_cursor },
134 136 on_exit = function()
135 137 vim.notify('Openend ' .. file_under_cursor)
187 189 keys = 'U',
188 190 command = vim.cmd.redo,
191 -map {
192 - keys = '<bs>',
193 - command = '<nop>',
196 -map.normal {
197 - description = 'Move next in quickfix list',
198 - category = 'navigation',
199 - keys = '<A-bs>',
200 - command = '<cmd>cnext<cr>',
203 -map.normal {
204 - description = 'Move back in quickfix list',
205 - category = 'navigation',
206 - keys = '<bs>',
207 - command = '<cmd>cprevious<cr>',
210 -map.normal {
211 - description = 'Open quickfix list',
212 - category = 'navigation',
213 - keys = '<bs><bs>',
214 - command = '<cmd>copen<cr>',
217 -map.normal {
218 - description = 'Open nvim configuration',
219 - category = 'config',
220 - keys = '<F2><F2>',
221 - command = '<cmd>tabedit ' .. vim.fn.stdpath'config' .. '<cr>',
224 -map.normal {
225 - description = 'Execute current line as lua in neovim',
226 - category = 'config',
227 - keys = '<cr><cr>',
228 - command = '<cmd>lua <c-r><c-l><cr>'

neovim/lua/bugabinga/options/ui.lua

Modified

+1 / −1 text lines

62 62 -- transparent popups and floating windows
63 63 vim.opt.pumblend = 8
64 -vim.opt.winblend = 8
64 +vim.opt.winblend = 0
66 66 vim.g.border_style = 'shadow'

neovim/lua/bugabinga/plugins/autopairs.lua

Modified

+8 / −3 text lines

1 +local ignored = require 'std.ignored'
1 3 return {
2 - 'windwp/nvim-autopairs',
3 - event = "InsertEnter",
4 - opts = {}
4 + 'windwp/nvim-autopairs',
5 + event = 'InsertEnter',
6 + opts = {
7 + disable_filetype = ignored.filetypes,
8 + check_ts = true,
9 + }

neovim/lua/bugabinga/plugins/heirline.lua

Modified

+252 / −237 text lines

1 -local icon = require'std.icon'
2 -local auto = require'std.auto'
1 +local icon = require 'std.icon'
2 +local auto = require 'std.auto'
4 4 return {
7 7 event = 'BufEnter',
8 8 dependencies = {
9 9 'nvim-tree/nvim-web-devicons',
10 - -- 'lewis6991/gitsigns.nvim',
10 + 'lewis6991/gitsigns.nvim',
12 - config = function()
13 - local heirline = require'heirline'
14 - local conditions = require("heirline.conditions")
15 - local utils = require("heirline.utils")
12 + config = function ()
13 + local heirline = require 'heirline'
14 + local conditions = require 'heirline.conditions'
15 + local utils = require 'heirline.utils'
17 - local nugu = require'bugabinga.nugu.palette'
18 - heirline.load_colors(nugu)
17 + local nugu = require 'bugabinga.nugu.palette'
18 + heirline.load_colors( nugu )
20 20 auto 'ReloadHeirlineColors' {
21 21 description = 'Reload dark/light nugu colors for Heirline',
22 22 events = 'ColorScheme',
23 - command = function() utils.on_colorscheme(nugu) end,
23 + command = function () utils.on_colorscheme( nugu ) end,
26 - local vi_mode = {
27 - init = function(self)
28 - self.mode = vim.fn.mode(1) -- :h mode()
26 + local vi_mode = {
27 + init = function ( self )
28 + self.mode = vim.fn.mode( 1 ) -- :h mode()
31 31 static = {
32 32 mode_names = {
33 33 n = icon.normal,
34 - no = icon.normal .. "?",
35 - nov = icon.normal .. "?",
36 - noV = icon.normal .. "?",
37 - ["no\22"] = icon.normal .. "?",
38 - niI = icon.normal .. "i",
39 - niR = icon.normal .. "r",
40 - niV = icon.normal .. "v",
41 - nt = icon.normal .. "t",
34 + no = icon.normal .. '?',
35 + nov = icon.normal .. '?',
36 + noV = icon.normal .. '?',
37 + ['no\22'] = icon.normal .. '?',
38 + niI = icon.normal .. 'i',
39 + niR = icon.normal .. 'r',
40 + niV = icon.normal .. 'v',
41 + nt = icon.normal .. 't',
42 42 v = icon.visual,
43 - vs = icon.visual .. "s",
44 - V = icon.visual .. "_",
45 - Vs = icon.visual .. "s",
46 - ["\22"] = "^" .. icon.visual,
47 - ["\22s"] = "^" .. icon.visual,
43 + vs = icon.visual .. 's',
44 + V = icon.visual .. '_',
45 + Vs = icon.visual .. 's',
46 + ['\22'] = '^' .. icon.visual,
47 + ['\22s'] = '^' .. icon.visual,
48 48 s = icon.select,
49 - S = icon.select .. "_",
50 - ["\19"] = "^" .. icon.select,
49 + S = icon.select .. '_',
50 + ['\19'] = '^' .. icon.select,
51 51 i = icon.insert,
52 - ic = icon.insert .. "c",
53 - ix = icon.insert .. "x",
52 + ic = icon.insert .. 'c',
53 + ix = icon.insert .. 'x',
54 54 R = icon.replace,
55 - Rc = icon.replace .. "c",
56 - Rx = icon.replace .. "x",
57 - Rv = icon.replace .. "v",
58 - Rvc = icon.replace .. "v",
59 - Rvx = icon.replace .. "v",
55 + Rc = icon.replace .. 'c',
56 + Rx = icon.replace .. 'x',
57 + Rv = icon.replace .. 'v',
58 + Rvc = icon.replace .. 'v',
59 + Rvx = icon.replace .. 'v',
60 60 c = icon.command,
61 - cv = icon.command .. "x",
61 + cv = icon.command .. 'x',
62 62 r = icon.pending,
63 - rm = icon.pending .. "m",
64 - ["r?"] = icon.pending .. "?",
65 - ["!"] = icon.exclaim,
63 + rm = icon.pending .. 'm',
64 + ['r?'] = icon.pending .. '?',
65 + ['!'] = icon.exclaim,
66 66 t = icon.terminal,
68 68 mode_colors = {
69 - n = "ui_normal" ,
70 - i = "ui_accent",
71 - v = "ui_important_global",
72 - V = "ui_important_global",
73 - ["\22"] = "ui_important_global",
74 - c = "ui_important_global",
75 - s = "ui_important_global",
76 - S = "ui_important_global",
77 - ["\19"] = "ui_important_global",
78 - R = "ui_important_global",
79 - r = "ui_important_global",
80 - ["!"] = "ui_important_global",
81 - t = "ui_important_global",
69 + n = 'ui_normal',
70 + i = 'ui_accent',
71 + v = 'ui_important_global',
72 + V = 'ui_important_global',
73 + ['\22'] = 'ui_important_global',
74 + c = 'ui_important_global',
75 + s = 'ui_important_global',
76 + S = 'ui_important_global',
77 + ['\19'] = 'ui_important_global',
78 + R = 'ui_important_global',
79 + r = 'ui_important_global',
80 + ['!'] = 'ui_important_global',
81 + t = 'ui_important_global',
85 - provider = function(self)
85 + provider = function ( self )
86 86 local mode_name = self.mode_names[self.mode]
87 - return " ".. icon.vim .." %3(" .. mode_name .. "%) "
87 + return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) '
90 - hl = function(self)
91 - local mode = self.mode:sub(1, 1) -- get only the first mode character
90 + hl = function ( self )
91 + local mode = self.mode:sub( 1, 1 ) -- get only the first mode character
92 92 return { fg = self.mode_colors[mode], bold = true }
95 95 update = {
96 - "ModeChanged",
97 - pattern = "*:*",
98 - callback = vim.schedule_wrap( function() vim.cmd.redrawstatus() end),
96 + 'ModeChanged',
97 + pattern = '*:*',
98 + callback = vim.schedule_wrap( function () vim.cmd.redrawstatus() end ),
102 - local file_icon = {
103 - init = function(self)
102 + local file_icon = {
103 + init = function ( self )
104 104 local filename = self.filename
105 - local extension = vim.fn.fnamemodify(filename, ":e")
106 - self.icon = require("nvim-web-devicons").get_icon_color(filename, extension, { default = true })
105 + local extension = vim.fn.fnamemodify( filename, ':e' )
106 + self.icon = require 'nvim-web-devicons'.get_icon_color( filename, extension, { default = true } )
108 - provider = function(self)
109 - return self.icon and (self.icon .. " ")
108 + provider = function ( self )
109 + return self.icon and (self.icon .. ' ')
111 111 hl = 'DefaultIcon',
114 - local file_name = {
115 - init = function(self)
116 - self.lfilename = vim.fs.normalize(vim.fn.fnamemodify(self.filename, ":."))
117 - if self.lfilename == "" then self.lfilename = "~new~" end
114 + local file_name = {
115 + init = function ( self )
116 + self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) )
117 + if self.lfilename == '' then self.lfilename = '~new~' end
120 120 flexible = 2,
123 - provider = function(self)
123 + provider = function ( self )
124 124 return self.lfilename
128 - provider = function(self)
129 - return vim.fs.normalize(vim.fn.pathshorten(self.lfilename))
128 + provider = function ( self )
129 + return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) )
134 - local file_flags = {
134 + local file_flags = {
136 - condition = function()
136 + condition = function ()
137 137 return vim.bo.modified
139 - provider = string.format(" %s ", icon.modified),
139 + provider = string.format( ' %s ', icon.modified ),
140 140 hl = 'Comment',
143 - condition = function()
143 + condition = function ()
144 144 return not vim.bo.modifiable or vim.bo.readonly
146 - provider = string.format(" %s ", icon.lock),
146 + provider = string.format( ' %s ', icon.lock ),
147 147 hl = 'ErrorMsg',
151 - local file_name_block = {
152 - init = function(self)
153 - self.filename = vim.fs.normalize(vim.api.nvim_buf_get_name(0))
151 + local file_name_block = {
152 + init = function ( self )
153 + self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) )
156 156 file_name,
157 157 file_flags,
158 158 { provider = ' ' },
159 159 file_icon,
160 - { provider = '%<'} -- this means that the statusline is cut here when there's not enough space
160 + { provider = '%<' } -- this means that the statusline is cut here when there's not enough space
163 - local file_type = {
164 - provider = function()
165 - return icon.file .. ' ' .. string.upper(vim.bo.filetype)
163 + local file_type = {
164 + provider = function ()
165 + return icon.file .. ' ' .. string.upper( vim.bo.filetype )
169 - local file_encoding = {
170 - provider = function()
169 + local file_encoding = {
170 + provider = function ()
171 171 local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc'
172 172 return enc ~= 'utf-8' and enc:upper()
176 - local file_format = {
176 + local file_format = {
177 177 static = {
178 178 dos = icon.newline .. icon.carriage_return,
179 179 unix = icon.newline,
180 180 mac = icon.carriage_return,
182 - provider = function(self)
182 + provider = function ( self )
183 183 local fileformat = vim.bo.fileformat
184 184 return self[fileformat]
188 - local file_size = {
189 - provider = function()
188 + local file_size = {
189 + provider = function ()
190 190 -- stackoverflow, compute human readable file size
191 191 -- i want to see vim opening a 1EiB file 󰱯
192 192 local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
193 - local fsize = vim.fn.getfsize(vim.api.nvim_buf_get_name(0))
193 + local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) )
194 194 fsize = (fsize < 0 and 0) or fsize
195 195 if fsize < 1024 then
196 - return fsize..suffix[1]
196 + return fsize .. suffix[1]
198 - local i = math.floor((math.log(fsize) / math.log(1024)))
199 - return string.format("%.2g%s", fsize / math.pow(1024, i), suffix[i + 1])
198 + local i = math.floor( (math.log( fsize ) / math.log( 1024 )) )
199 + return string.format( '%.2g%s', fsize / math.pow( 1024, i ), suffix[i + 1] )
203 - local file_last_modified = {
204 - provider = function()
205 - local ftime = vim.fn.getftime(vim.api.nvim_buf_get_name(0))
203 + local file_last_modified = {
204 + provider = function ()
205 + local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) )
206 206 if ftime > 0 then
207 - local timeago = require'std.timeago'
208 - return timeago.format(ftime)
207 + local timeago = require 'std.timeago'
208 + return timeago.format( ftime )
213 - local lsp_active = {
213 + local lsp_active = {
214 214 condition = conditions.lsp_attached,
215 - update = {'LspAttach', 'LspDetach', 'BufEnter'},
215 + update = { 'LspAttach', 'LspDetach', 'BufEnter' },
217 - provider = function()
217 + provider = function ()
218 218 local names = {}
219 - for _, client in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do
220 - table.insert(names, client.name)
219 + for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do
220 + table.insert( names, client.name )
222 - return icon.lsp .. " " .. table.concat(names, " ")
222 + return icon.lsp .. ' ' .. table.concat( names, ' ' )
226 - local diagnostic_enabled = {
227 - init = function(self)
226 + local diagnostic_enabled = {
227 + init = function ( self )
228 228 self.icon = vim.diagnostic.is_disabled() and icon.toggle_off or icon.toggle_on
230 - provider = function(self)
230 + provider = function ( self )
231 231 return icon.diagnostic .. ' ' .. self.icon
235 - local diagnostic = {
235 + local diagnostic = {
236 236 condition = conditions.has_diagnostics,
238 238 static = {
239 - error_icon = icon.error,
240 - warn_icon = icon.warn,
241 - info_icon = icon.info,
242 - hint_icon = icon.hint,
239 + error_icon = icon.error,
240 + warn_icon = icon.warn,
241 + info_icon = icon.info,
242 + hint_icon = icon.hint,
245 - init = function(self)
246 - self.errors = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.ERROR })
247 - self.warnings = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN })
248 - self.hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT })
249 - self.info = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.INFO })
245 + init = function ( self )
246 + self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR } )
247 + self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN } )
248 + self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT } )
249 + self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO } )
252 - update = { "DiagnosticChanged", "BufEnter" },
252 + update = { 'DiagnosticChanged', 'BufEnter' },
255 - provider = function(self)
255 + provider = function ( self )
256 256 -- 0 is just another output, we can decide to print it or not!
257 - return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. " ")
257 + return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ')
259 259 hl = 'DiagnosticError',
262 - provider = function(self)
263 - return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. " ")
262 + provider = function ( self )
263 + return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ')
265 265 hl = 'DiagnosticWarn',
268 - provider = function(self)
269 - return self.info > 0 and (self.info_icon .. ' ' .. self.info .. " ")
268 + provider = function ( self )
269 + return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ')
271 271 hl = 'DiagnosticInfo',
274 - provider = function(self)
274 + provider = function ( self )
275 275 return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints)
277 277 hl = 'DiagnosticHint',
281 - local is_svn_repo = function()
282 - local svn_dir = vim.fs.find('.svn', {
281 + local is_svn_repo = function ()
282 + local svn_dir = vim.fs.find( '.svn', {
283 283 upward = true,
284 284 stop = vim.uv.os_homedir(),
285 - path = vim.fs.dirname(vim.api.nvim_buf_get_name(0)),
285 + path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ),
286 286 type = 'directory',
287 - })
287 + } )
289 - return not vim.tbl_isempty(svn_dir)
289 + return not vim.tbl_isempty( svn_dir )
292 - local svn_get_relative_url = function()
293 - local job = require'plenary.job'
294 - local relative_url = '[ERR]'
292 + local svn_get_relative_url = function ()
293 + local job = require 'plenary.job'
294 + local relative_url = '[unversioned]'
296 - job:new{
296 + job:new {
297 297 command = 'svn',
298 - args = { 'info', '--show-item', 'relative-url', '--no-newline' },
299 - on_exit = function(current_job, exit_code)
298 + args = { 'info', '--show-item', 'relative-url', '--no-newline' },
299 + on_exit = function ( current_job, exit_code )
300 300 if exit_code == 0 then relative_url = current_job:result() end
302 302 }:sync()
304 - return relative_url[1]
304 + return type(relative_url) == 'table' and relative_url[1] or relative_url
307 - local svn = {
307 + local svn = {
308 308 condition = is_svn_repo,
310 310 update = 'BufEnter',
312 - init = function(self)
312 + init = function ( self )
313 313 self.relative_url = svn_get_relative_url()
317 - provider = function(self)
318 - return icon.subversion .. ' ' .. icon.branch.. ' ' .. self.relative_url
317 + provider = function ( self )
318 + return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url
324 - local git = {
324 + local git = {
325 325 condition = conditions.is_git_repo,
327 - init = function(self)
327 + init = function ( self )
328 328 self.status_dict = vim.b.gitsigns_status_dict
332 - provider = function(self)
333 - return icon.git .. " " .. icon.branch .. " " .. self.status_dict.head .. ' '
332 + provider = function ( self )
333 + return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.head .. ' '
337 - provider = function(self)
337 + provider = function ( self )
338 338 local count = self.status_dict.added or 0
339 - return count > 0 and (icon.diff_add .. " " .. count .. ' ')
339 + return count > 0 and (icon.diff_add .. ' ' .. count .. ' ')
341 341 hl = 'DiffAdd',
344 - provider = function(self)
344 + provider = function ( self )
345 345 local count = self.status_dict.removed or 0
346 - return count > 0 and (icon.diff_remove .. " " .. count .. ' ')
346 + return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ')
348 348 hl = 'DiffDelete',
351 - provider = function(self)
351 + provider = function ( self )
352 352 local count = self.status_dict.changed or 0
353 - return count > 0 and (icon.diff_change .. " " .. count .. ' ')
353 + return count > 0 and (icon.diff_change .. ' ' .. count .. ' ')
355 355 hl = 'DiffChange',
359 - local work_dir = {
360 - init = function(self)
361 - self.icon = (vim.fn.haslocaldir(0) == 1 and icon['local'] or "") .. " " .. icon.global .. " "
362 - self.cwd = vim.fs.normalize(vim.uv.cwd()):gsub(vim.fs.normalize(vim.uv.os_homedir()),"~")
359 + local work_dir = {
360 + init = function ( self )
361 + self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local'] or '') .. ' ' .. icon.global .. ' '
362 + self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' )
365 365 flexible = 1,
368 368 -- evaluates to the full-length path
369 - provider = function(self)
369 + provider = function ( self )
370 370 return self.icon .. self.cwd
374 374 -- evaluates to the shortened path
375 - provider = function(self)
376 - local cwd = vim.fn.pathshorten(self.cwd)
375 + provider = function ( self )
376 + local cwd = vim.fn.pathshorten( self.cwd )
377 377 return self.icon .. cwd
381 381 -- evaluates to "", hiding the component
382 - provider = "",
382 + provider = '',
386 - local help_file_name = {
387 - condition = function()
388 - return vim.bo.filetype == "help"
386 + local help_file_name = {
387 + condition = function ()
388 + return vim.bo.filetype == 'help'
390 - provider = function()
391 - local filename = vim.api.nvim_buf_get_name(0)
392 - return vim.fn.fnamemodify(filename, ":t")
390 + provider = function ()
391 + local filename = vim.api.nvim_buf_get_name( 0 )
392 + return vim.fn.fnamemodify( filename, ':t' )
394 394 hl = 'Question',
397 - local terminal_name = {
397 + local terminal_name = {
398 398 -- we could add a condition to check that buftype == 'terminal'
399 399 -- or we could do that later (see #conditional-statuslines below)
400 - provider = function()
401 - local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "")
402 - tname = vim.fs.basename(tname)
403 - return icon.terminal .. " " .. tname
400 + provider = function ()
401 + local tname, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:', '' )
402 + tname = vim.fs.basename( tname )
403 + return icon.terminal .. ' ' .. tname
405 405 hl = 'Bold',
408 - local togglers = {
409 - provider = function()
410 - local togglers = require'bugabinga.options.togglers'
411 - return tostring(togglers)
412 - end,
408 + local togglers = {
409 + provider = function ()
410 + local togglers = require 'bugabinga.options.togglers'
411 + return tostring( togglers )
412 + end,
415 - local macro_recording = {
416 - condition = function()
417 - return vim.fn.reg_recording() ~= "" and vim.o.cmdheight == 0
415 + local macro_recording = {
416 + condition = function ()
417 + return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0
419 - provider = icon.macro .. " ",
419 + provider = icon.macro .. ' ',
420 420 hl = 'PreProc',
421 - utils.surround({ "░▒▓ ", " ▓▒░" }, nil, {
422 - provider = function()
421 + utils.surround( { '░▒▓ ', ' ▓▒░' }, nil, {
422 + provider = function ()
423 423 return vim.fn.reg_recording()
425 425 hl = 'Bold',
426 - }),
426 + } ),
427 427 update = {
428 - "RecordingEnter",
429 - "RecordingLeave",
428 + 'RecordingEnter',
429 + 'RecordingLeave',
433 - local lazy = {
434 - condition = function()
435 - local ok, lazy_status = pcall(require, "lazy.status")
433 + local lazy = {
434 + condition = function ()
435 + local ok, lazy_status = pcall( require, 'lazy.status' )
436 436 return ok and lazy_status.has_updates()
438 - update = { "User", pattern = "LazyUpdate" },
439 - provider = function() return ' ' .. icon.lazy .. ' ' .. require'lazy.status'.updates() .. ' ' end,
438 + update = { 'User', pattern = 'LazyUpdate' },
439 + provider = function () return ' ' .. icon.lazy .. ' ' .. require 'lazy.status'.updates() .. ' ' end,
440 440 on_click = {
441 - callback = function() require'lazy'.update() end,
442 - name = "update_plugins",
441 + callback = function () require 'lazy'.update() end,
442 + name = 'update_plugins',
444 444 hl = 'LazyProgressTodo',
447 - local align = { provider = "%=" }
448 - local space = { provider = " " }
447 + local align = { provider = '%=' }
448 + local space = { provider = ' ' }
450 - local default_statusline = {
450 + local default_statusline = {
451 451 vi_mode, macro_recording, align,
452 452 work_dir, space, git, svn, align,
453 453 diagnostic_enabled, space, diagnostic, space, lsp_active, align,
454 454 togglers, align,
455 - lazy, space, file_encoding, space, file_format, space ,file_type, space, file_size, space, file_last_modified,
455 + lazy, space, file_encoding, space, file_format, space, file_type, space, file_size, space, file_last_modified,
458 - local special_statusline = {
459 - condition = function()
460 - return conditions.buffer_matches({
461 - buftype = { "nofile", "prompt", "help", "quickfix", "noice", "Trouble" },
462 - filetype = { "^git.*", "fugitive" },
463 - })
458 + local special_statusline = {
459 + condition = function ()
460 + return conditions.buffer_matches {
461 + buftype = { 'nofile', 'prompt', 'help', 'quickfix', 'noice', 'Trouble' },
462 + filetype = { '^git.*', 'fugitive' },
466 - file_type, space, help_file_name, align
466 + file_type,
467 + space,
468 + help_file_name,
469 + align
469 - local terminal_statusline = {
472 + local terminal_statusline = {
471 - condition = function()
472 - return conditions.buffer_matches({ buftype = { "terminal" } })
474 + condition = function ()
475 + return conditions.buffer_matches { buftype = { 'terminal' } }
475 - { condition = conditions.is_active, vi_mode, space }, file_type, space, terminal_name, align,
478 + { condition = conditions.is_active, vi_mode, space },
479 + file_type,
480 + space,
481 + terminal_name,
482 + align,
478 - local inactive_statusline = {
485 + local inactive_statusline = {
479 486 condition = conditions.is_not_active,
480 - file_type, space, file_name, align,
487 + file_type,
488 + space,
489 + file_name,
490 + align,
483 - local statuslines = {
484 - hl = function()
493 + local statuslines = {
494 + hl = function ()
485 495 if conditions.is_active() then
486 - return "StatusLine"
496 + return 'StatusLine'
488 - return "StatusLineNC"
498 + return 'StatusLineNC'
492 502 fallthrough = false,
494 - special_statusline, terminal_statusline, inactive_statusline, default_statusline,
504 + special_statusline,
505 + terminal_statusline,
506 + inactive_statusline,
507 + default_statusline,
497 - local winbars = {
498 - hl = function()
510 + local winbars = {
511 + hl = function ()
499 512 if conditions.is_active() then
500 - return "Winbar"
513 + return 'Winbar'
502 - return "WinbarNC"
515 + return 'WinbarNC'
506 519 fallthrough = false,
509 - condition = function()
510 - return conditions.buffer_matches({ buftype = { "terminal" } })
522 + condition = function ()
523 + return conditions.buffer_matches { buftype = { 'terminal' } }
513 - file_type, space, terminal_name,
526 + file_type,
527 + space,
528 + terminal_name,
516 531 file_name_block,
519 - local tabpage = {
520 - provider = function(self)
521 - return "%" .. self.tabnr .. "T " .. self.tabpage .. " %T"
534 + local tabpage = {
535 + provider = function ( self )
536 + return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T'
523 - hl = function(self)
538 + hl = function ( self )
524 539 if not self.is_active then
525 - return "TabLine"
540 + return 'TabLine'
527 - return "TabLineSel"
542 + return 'TabLineSel'
532 - local tab_pages = {
547 + local tab_pages = {
533 548 -- only show this component if there's 2 or more tabpages
534 - condition = function()
549 + condition = function ()
535 550 return #vim.api.nvim_list_tabpages() >= 2
537 - { provider = "%=" },
538 - utils.make_tablist(tabpage),
552 + { provider = '%=' },
553 + utils.make_tablist( tabpage ),
541 - local tabline = { tab_pages }
556 + local tabline = { tab_pages }
543 558 -- local statuscolumn = {}
551 566 opts = {
552 567 colors = nugu,
553 - disable_winbar_cb = function(args)
554 - return conditions.buffer_matches({
555 - buftype = { "nofile", "prompt", "help", "quickfix" },
556 - filetype = { "^git.*", "noice", "Trouble" },
557 - }, args.buf)
568 + disable_winbar_cb = function ( args )
569 + return conditions.buffer_matches( {
570 + buftype = { 'nofile', 'prompt', 'help', 'quickfix' },
571 + filetype = { '^git.*', 'noice', 'Trouble' },
572 + }, args.buf )

neovim/lua/bugabinga/plugins/noice.lua

Modified

+73 / −69 text lines

1 -local map = require'std.map'
1 +local map = require 'std.map'
3 3 return {
4 - {
5 - 'folke/noice.nvim',
6 - event = 'VeryLazy',
7 - dependencies = {
8 - 'MunifTanjim/nui.nvim',
9 - 'rcarriga/nvim-notify',
10 - },
11 - opts = {
12 - cmdline = {
13 - view = 'cmdline', -- cmdline on bottom
14 - },
15 - lsp = {
16 - -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
17 - override = {
18 - ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
19 - ['vim.lsp.util.stylize_markdown'] = true,
20 - ['cmp.entry.get_documentation'] = true,
21 - },
22 - },
23 - presets = {
24 - inc_rename = true, -- enables an input dialog for inc-rename.nvim
25 - },
26 - views = {
27 - vsplit = {
28 - size = { width = 'auto', height = 'auto'},
4 + {
5 + 'folke/noice.nvim',
6 + event = 'VeryLazy',
7 + dependencies = {
8 + 'MunifTanjim/nui.nvim',
9 + 'rcarriga/nvim-notify',
10 + },
11 + opts = {
12 + cmdline = {
13 + view = 'cmdline', -- cmdline on bottom
14 + },
15 + lsp = {
16 + -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
17 + override = {
18 + ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
19 + ['vim.lsp.util.stylize_markdown'] = true,
20 + ['cmp.entry.get_documentation'] = true,
30 - popupmenu = {
31 - border = { style = vim.g.border_style},
22 + },
23 + presets = {
24 + inc_rename = true, -- enables an input dialog for inc-rename.nvim
25 + long_message_to_split = true,
26 + },
27 + views = {
28 + vsplit = {
29 + size = { width = 'auto', height = 'auto' },
33 - popup = {
34 - border = { style = vim.g.border_style},
31 + popupmenu = {
32 + border = { style = vim.g.border_style },
36 - hover = {
37 - border = { style = vim.g.border_style},
34 + popup = {
35 + border = { style = vim.g.border_style },
36 + },
37 + hover = {
38 + border = { style = vim.g.border_style },
38 39 position = { row = -2, col = 2 },
40 - -- does not seem to play well with other popups?
41 - cmdline = {
42 - relative = "cursor",
41 + -- does not seem to play well with other popups?
42 + cmdline = {
43 + relative = 'cursor',
43 44 position = { row = 0, col = 0 },
44 - size = { min_width = 42, width = 'auto', height = 'auto'},
45 - border = { style = vim.g.border_style},
45 + size = { min_width = 42, width = 'auto', height = 'auto' },
46 + border = { style = vim.g.border_style, padding = { 1, 2 } },
47 48 cmdline_popupmenu = {
48 - relative = "cursor",
49 - position = { row = 1, col = 0 },
50 - size = { min_width = 42, width = "auto", height = 'auto' },
51 - border = { style = vim.g.border_style, padding = { 0, 1 } },
52 - win_options = { winhighlight = { Normal = "Normal", FloatBorder = "NoiceCmdlinePopupBorder" } },
49 + relative = 'cursor',
50 + position = { row = 2, col = 0 },
51 + size = { min_width = 42, width = 'auto', height = 'auto' },
52 + border = { style = vim.g.border_style},
53 + win_options = { winhighlight = { FloatBorder = 'NoiceCmdlinePopupBorder' } },
55 56 routes = {
57 + {
58 + filter = { event = 'msg_show', kind = '', find = 'written', },
59 + opts = { skip = true },
60 + },
57 62 filter = { event = 'msg_show', kind = 'quickfix' },
58 63 opts = { skip = true },
61 - filter = { event = "msg_show", find = "E42" },
66 + filter = { event = 'msg_show', find = 'E42' },
62 67 opts = { skip = true },
65 - filter = { event = "msg_show", kind = "", find = '^".*" %[.*%]', },
70 + filter = { event = 'msg_show', kind = '', find = '^".*" %[.*%]', },
66 71 opts = { skip = true },
69 - filter = { event = "notify", min_height = 15 },
70 - view = "split",
74 + filter = { event = 'notify', min_height = 15 },
75 + view = 'split',
73 - filter = { cmdline = "^:%s*!" },
78 + filter = { cmdline = '^:%s*!' },
74 79 --TODO: pipe external commands to terminal?
75 80 --terminal view does not exist, right?
76 - view = "vsplit"
81 + view = 'vsplit'
79 84 filter = { cmdline = true, min_height = 2 },
80 - view = "cmdline_output",
85 + view = 'cmdline_output',
83 - filter = { any = { { cmdline = "^:%s*lua%s+"}, { cmdline = "^:%s*lua%s*=%s*"}, { cmdline = "^:%s*=%s*"}, } },
88 + filter = { any = { { cmdline = '^:%s*lua%s+' }, { cmdline = '^:%s*lua%s*=%s*' }, { cmdline = '^:%s*=%s*' }, } },
84 89 view = 'cmdline_output',
88 - config = function(_, opts)
89 - local noice = require'noice'
90 - noice.setup(opts)
93 + config = function ( _, opts )
94 + local noice = require 'noice'
95 + noice.setup( opts )
92 97 map.normal {
93 98 description = 'Open search for notifications...',
94 99 category = 'search',
95 100 keys = '<C-n><C-n>',
96 - command = function() noice.cmd'history' end,
101 + command = function () noice.cmd 'history' end,
99 104 map.command_line {
100 105 description = 'Redirect Cmdline',
101 106 category = 'ui',
102 107 keys = '<S-cr>',
103 - command = function() noice.redirect(vim.fn.getcmdline()) end,
108 + command = function () noice.redirect( vim.fn.getcmdline() ) end,
106 111 map.normal {
107 112 description = 'Dismiss current notifications',
108 113 category = 'notify',
109 114 keys = '<esc>',
110 - command = function() noice.cmd 'dismiss' end,
115 + command = function () noice.cmd 'dismiss' end,
113 - local noice_lsp = require'noice.lsp'
118 + local noice_lsp = require 'noice.lsp'
115 120 map.normal {
116 121 description = 'Scroll up in documentation popup',
117 122 category = 'ui',
118 123 keys = '<C-f>',
119 - command = function()
120 - if not noice_lsp.scroll(-4) then return '<C-f>' end
124 + command = function ()
125 + if not noice_lsp.scroll( -4 ) then return '<C-f>' end
122 127 options = { expr = true },
126 131 description = 'Scroll down in documentation popup',
127 132 category = 'ui',
128 133 keys = '<C-b>',
129 - command = function()
130 - if not noice_lsp.scroll(4) then return '<C-b>' end
134 + command = function ()
135 + if not noice_lsp.scroll( 4 ) then return '<C-b>' end
132 137 options = { expr = true },
138 142 'rcarriga/nvim-notify',
139 - config = function()
140 - local notify = require'notify'
141 - local fade = require'notify.stages.fade'('bottom_up')
143 + config = function ()
144 + local notify = require 'notify'
145 + local fade = require 'notify.stages.fade' 'bottom_up'
143 - local shadow_fade = function(...)
144 - local opts = fade[1](...)
147 + local shadow_fade = function ( ... )
148 + local opts = fade[1]( ... )
145 149 if opts then
146 150 opts.border = vim.g.border_style
147 151 opts.row = opts.row - 1
152 156 notify.setup {
153 - stages = { shadow_fade, unpack(fade, 2) },
157 + stages = { shadow_fade, unpack( fade, 2 ) },
154 158 render = 'compact',
155 159 timeout = 2500,
156 160 fps = 60,

neovim/lua/bugabinga/plugins/oil.lua

Modified

+1 / −1 text lines

31 31 float = {
32 32 border = vim.g.border_style,
33 33 padding = 2,
34 - win_options = { winblend = vim.o.winblend },
34 + -- win_options = { winblend = vim.o.winblend },

neovim/lua/bugabinga/plugins/treesitter.lua

Modified

+76 / −13 text lines

19 19 name_of_executable = 'tar'
21 + {
22 + name_of_executable = 'curl'
23 + }
22 25 return {
23 26 'nvim-treesitter/nvim-treesitter',
49 52 'windwp/nvim-ts-autotag',
50 53 'nvim-treesitter/playground',
51 54 'nvim-treesitter/nvim-treesitter-textobjects',
55 + 'RRethy/nvim-treesitter-endwise',
53 57 config = function ()
54 58 local install = require 'nvim-treesitter.install'
55 59 local configs = require 'nvim-treesitter.configs'
56 60 local parsers = require 'nvim-treesitter.parsers'
61 + -- nvim-treesitter assumes that windows users use either cmd or powershell.
62 + -- my win32 + nushell combination does not work well.
63 + -- override some internal functions of nvim-treesitter for nushell support.
64 + local shell = require 'nvim-treesitter.shell_command_selectors'
65 + shell.make_directory_change_for_command = function ( dir, command )
66 + return string.format( 'cd %s; %s', dir, command )
67 + end
68 + shell.select_mv_cmd = function ( from, to, cwd )
69 + return {
70 + cmd = 'mv',
71 + opts = {
72 + args = { '--force', from, to },
73 + cwd = cwd,
74 + }
75 + }
76 + end
77 + shell.select_install_rm_cmd = function ( cache_folder, project_name )
78 + local project = vim.fs.joinpath( cache_folder, project_name )
79 + return {
80 + cmd = 'rm',
81 + opts = {
82 + args = {
83 + '--recursive',
84 + '--force',
85 + '--permanent',
86 + project,
87 + }
88 + },
89 + err = 'Could not delete project ' .. project,
90 + }
91 + end
92 + shell.select_rm_file_cmd = function ( file, info_msg )
93 + return {
94 + cmd = 'rm',
95 + opts = {
96 + args = { '--force', '--permanent', file }
97 + },
98 + info = info_msg,
99 + err = 'Could not delete file ' .. file,
101 + end
102 + shell.select_mkdir_cmd = function ( directory, cwd, info_msg )
103 + return {
104 + cmd = 'mkdir',
105 + opts = {
106 + args = { directory },
107 + cwd = cwd,
108 + },
109 + info = info_msg,
110 + err = 'Could not create directory ' .. directory,
112 + end
58 114 install.prefer_git = false
59 - install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
115 + install.compilers = { 'zig' }
61 117 ---@diagnostic disable-next-line: missing-fields
62 118 configs.setup {
84 140 'vim',
85 141 'vimdoc',
86 142 'query',
143 + 'xml',
87 144 'zig',
92 149 auto_install = true,
94 - autotag = { enable = true },
151 + autotag = {
152 + enable = true,
153 + filetypes = {
154 + 'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'tsx', 'jsx', 'rescript', 'css', 'lua', 'xml', 'php', 'markdown'
155 + },
156 + },
158 + endwise = { enable = true },
96 160 context_commentstring = { enable = true, enable_autocmd = false },
147 211 ['if'] = { query = '@function.inner', desc = 'Select inner function' },
149 213 ['ac'] = { query = '@class.outer', desc = 'Select outer class' },
150 - ['ic'] = { query = '@class.inner' , desc = 'Select inner class' },
214 + ['ic'] = { query = '@class.inner', desc = 'Select inner class' },
152 - ['at'] = { query = '@comment.outer' , desc = 'Select outer comment' },
216 + ['at'] = { query = '@comment.outer', desc = 'Select outer comment' },
154 218 ['as'] = { query = '@scope', query_group = 'locals', desc = 'Select language scope' },
165 229 swap = {
166 230 enable = true,
167 231 swap_next = {
168 - ['<leader>sn'] = { query = '@parameter.inner' , desc = 'Swap parameter with next' },
232 + ['<leader>sn'] = { query = '@parameter.inner', desc = 'Swap parameter with next' },
170 234 swap_previous = {
171 - ['<leader>sp'] = { query = '@parameter.inner' , desc = 'Swap parameter with previous' },
235 + ['<leader>sp'] = { query = '@parameter.inner', desc = 'Swap parameter with previous' },
186 250 enable = true,
187 251 set_jumps = true,
188 252 goto_next = {
189 - [']f'] = { query = '@function.outer' , desc = 'Goto next funtion' },
253 + [']f'] = { query = '@function.outer', desc = 'Goto next funtion' },
190 254 [']c'] = { query = '@class.outer', desc = 'Goto next class' },
191 255 [']s'] = { query = '@scope', query_group = 'locals', desc = 'Goto next scope' },
192 - [']i'] = { query = '@conditional.outer' , desc = 'Goto next conditional' },
193 - [']a'] = { query = '@parameter.outer' , desc = 'Goto next parameter' },
256 + [']i'] = { query = '@conditional.outer', desc = 'Goto next conditional' },
257 + [']a'] = { query = '@parameter.outer', desc = 'Goto next parameter' },
195 259 goto_previous = {
196 - ['[f'] = { query = '@function.outer' , desc = 'Goto previous function' },
260 + ['[f'] = { query = '@function.outer', desc = 'Goto previous function' },
197 261 ['[c'] = { query = '@class.outer', desc = 'goto previous class' },
198 262 ['[s'] = { query = '@scope', query_group = 'locals', desc = 'Goto previous scope' },
199 - ['[i'] = { query = '@conditional.outer' , desc = 'Goto previous conditional' },
200 - ['[a'] = { query = '@parameter.outer' , desc = 'Goto previous parameter' },
263 + ['[i'] = { query = '@conditional.outer', desc = 'Goto previous conditional' },
264 + ['[a'] = { query = '@parameter.outer', desc = 'Goto previous parameter' },