dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: nugu updates for floating windows
49273b6c5ae6be6bdccb61af4b7f97d78fee3481
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
markdown inside hover popup has to use Normal highlight.
this commit adjusts the style of the hover window around that fact.
Changed files (8)
neovim/lua/bugabinga/lsp/init.lua
Modified 16 -local token_update = function ( lsp_client )
15 +local token_update = function ( lsp_client )
17 16 local token
= lsp_client.data.token
18 17 local buffer
= lsp_client.buffer
19 18 local client_id
= lsp_client.data.client_id
32 -local expand_path = function ( path )
31 +local expand_path = function ( path )
33 32 if vim.fn.executable( path )
== 1 then 34 33 return vim.fn.exepath( path )
40 -local expand_command = function ( command )
39 +local expand_command = function ( command )
41 40 vim.validate {
command = { command, {
'string',
'table' } } }
43 42 if type( command )
== 'table' then 48 47 return expand_path( command )
51 -local lsp_start = function ( file_type_event )
50 +local lsp_start = function ( file_type_event )
52 51 dbg.print
'trying to start lsp' 53 52 local match
= file_type_event.match
235 234 local old_omnifunc
236 235 local old_tagfunc
239 -local add = function ( client_id, keybind_remover )
238 +local add = function ( client_id, keybind_remover )
241 240 client_id = { client_id,
'number' },
242 241 keybind_remover = { keybind_remover,
'function' },
247 246 table.
insert( keybinds[client_id], keybind_remover )
250 -local lsp_attach = function ( args )
251 +local lsp_attach = function ( args )
251 252 local bufnr
= args.buf
252 253 local client_id
= args.data.client_id
253 254 local client
= vim.lsp.get_client_by_id( client_id )
273 274 if client.server_capabilities.documentHighlightProvider
then 276 - local debounced_highlight
= defer.debounce_leading( vim.lsp.buf.document_highlight, delay )
277 - local debounced_clear
= defer.debounce_leading( vim.lsp.buf.clear_references, delay )
279 - auto
'document_highlight' {
281 - description =
'Highlight symbol under cursor on hold',
282 - events =
'CursorHold',
284 - command = debounced_highlight,
287 - description =
'Remove highlight from symbol under cursor on move',
288 - events = {
'CursorMoved',
'InsertEnter' },
290 - command = debounced_clear,
295 300 if client.server_capabilities.inlayHintProvider
then 380 -local lsp_detach = function ( args )
385 +local lsp_detach = function ( args )
381 386 dbg.print(
'DETACH LSP', args )
383 388 local bufnr
= args.buf
507 512 completion_kinds[i]
= completion_icons[kind]
or kind
517 +vim.lsp.handlers[
'textDocument/hover']
= vim.lsp.with(
518 + vim.lsp.handlers.hover, {
519 + border = vim.g.border_style,
520 + title =
' ' .. icon.hover
.. ' ',
510 524 return setmetatable( _, {} )
neovim/lua/bugabinga/nugu/init.lua
Modified 42 42 vim.g.terminal_color_14
= ui_important_global
43 43 vim.g.terminal_color_15
= ui_normal
46 45 local set_group_properties = function ( self, properties )
48 47 properties = { properties,
'table' },
107 106 local link_group = function ( self, key, value )
109 108 local group
= add_group( self, key )
110 - for name, link_group
in pairs( self.groups )
do 111 - if link_group
== value
then 109 + for name, group_link
in pairs( self.groups )
do 110 + if group_link
== value
then 113 112 group.link
= name
131 130 _.Search {
bg = content_unfocus }
132 131 _.IncSearch {
fg = content_focus }
133 132 _.CurSearch {
fg = content_important_global,
bg = content_unfocus }
134 -_.NormalFloat {
fg = ui_normal,
bg = ui_backdrop }
135 -_.FloatBorder {
fg = _.NormalFloat.bg,
bg = _.NormalFloat.bg }
133 +_.NormalFloat
= _.Normal
134 +_.FloatBorder {
fg = ui_accent,
bg = _.Normal.bg }
136 135 _.ColorColumn {
fg = ui_important_global,
bg = _.Normal.bg }
137 136 _.Conceal {
fg = content_focus,
bg = _.Normal.bg }
138 137 _.Cursor {
bg = ui_accent }
152 151 _.FoldColumn
= _.LineNr
153 152 _.SignColumn
= _.LineNr
154 153 _.ModeMsg {
bold =
true }
155 -_.MsgArea
= _.Normal
154 +_.MsgArea
= _.StatusLine
156 155 _.MsgSeparator
= _.Debug
157 156 _.MoreMsg
= _.Normal
158 157 _.NonText {
fg = content_unfocus }
175 174 _.WinbarNC {
fg = ui_minor,
bg = _.LineNr.bg }
176 175 _.Title {
fg = content_important_global,
sp = content_important_global,
bold =
true,
underline =
true }
177 176 _.TabLine
= _.StatusLine
178 -_.TabLineFill {
fg = _.TabLine.fg,
bg = content_backdrop }
179 -_.TabLineSel {
fg = ui_important_global,
bg = ui_unfocus }
177 +_.TabLineFill
= _.StatusLine
178 +_.TabLineSel {
fg = ui_important_global,
bold =
true,
underline =
true }
180 179 _.Visual {
bg = content_unfocus }
181 180 _.VisualNOS {
bg = ui_unfocus }
182 181 _.WarningMsg {
fg = warning,
bold =
true }
203 202 _.Parameter {
fg = content_focus }
204 203 _.Exception
= _.Statement
206 -_.PreProc {
fg = content_important_global,
bg = content_unfocus,
bold =
true }
205 +_.PreProc {
fg = content_important_global,
bold =
true }
207 206 _.Include
= _.PreProc
208 207 _.Define
= _.PreProc
209 208 _.Macro
= _.PreProc
256 255 _.LspReferenceRead
= _.LspReferenceText
257 256 _.LspReferenceWrite
= _.LspReferenceText
258 257 _.LspInlayHint {
fg = content_minor,
bg = _.Normal.bg }
258 +_.LspSignatureActiveParameter
= _.Debug
260 260 _[
'@text.literal']
= _.Comment
261 261 _[
'@text.reference']
= _.Identifier
306 306 _[
'@debug']
= _.Debug
307 307 _[
'@tag']
= _.Tag
309 -_[
'@markup.raw.block']
= _.PreProc
310 -_[
'@markup.raw.block.vimdoc']
= _.Normal
309 +_[
'@markup.raw.block'] {
bg = content_backdrop }
312 313 _[
'@lsp.type.namespace']
= _[
'@namespace']
313 314 _[
'@lsp.type.type']
= _[
'@type']
neovim/lua/bugabinga/options/ui.lua
Modified108 108 vim.opt.winblend
= 0 111 -vim.g.border_style
= 'solid' 111 +vim.g.border_style
= 'single' 114 114 vim.opt.showmode
= false neovim/lua/bugabinga/plugins/incubator.lua
Modified 19 - enable
= FUCK_STABILITY,
19 + enabled
= FUCK_STABILITY,
36 - enable
= FUCK_STABILITY,
36 + enabled
= FUCK_STABILITY,
52 52 position
= 'right',
55 - enable
= FUCK_STABILITY,
55 + enabled
= FUCK_STABILITY,
64 64 keys
= {
']r',
'[r' },
66 - enable
= FUCK_STABILITY,
66 + enabled
= FUCK_STABILITY,
81 - enable
= FUCK_STABILITY,
81 + enabled
= FUCK_STABILITY,
85 86 'chrisgrieser/nvim-rulebook',
87 88 {
'<leader>ri',
function ()
require 'rulebook'.ignoreRule()
end },
89 90 {
'<leader>ry',
function ()
require 'rulebook'.yankDiagnosticCode()
end },
90 91 {
'<leader>sf',
function ()
require 'rulebook'.suppressFormatter()
end,
mode = {
'n',
'x' } },
92 - enable
= FUCK_STABILITY,
93 + enabled
= FUCK_STABILITY,
96 97 'chrisgrieser/nvim-dr-lsp',
97 98 event =
'LspAttach',
99 - enable = FUCK_STABILITY,
100 + enabled = FUCK_STABILITY,
103 104 'Wansmer/symbol-usage.nvim',
104 105 event =
'LspAttach',
106 - enable = FUCK_STABILITY,
107 + enabled = FUCK_STABILITY,
114 115 init = function ()
115 116 vim.o.mousemoveevent
= true 117 - enable
= FUCK_STABILITY,
118 + enabled
= FUCK_STABILITY,
127 128 desc
= 'Show time spent',
130 - enable
= FUCK_STABILITY,
131 + enabled
= FUCK_STABILITY,
143 144 desc
= 'telescope: Show recently and frequently used files.',
146 - enable
= FUCK_STABILITY,
147 + enabled
= FUCK_STABILITY,
150 151 'cenk1cenk2/scratch.nvim',
151 - enable = FUCK_STABILITY,
152 + enabled = FUCK_STABILITY,
157 158 build
= 'cargo build --release',
159 - enable
= FUCK_STABILITY,
172 - enable
= FUCK_STABILITY,
174 + enabled
= FUCK_STABILITY,
178 180 config = function ()
179 181 require 'tiny-inline-diagnostic'.setup()
181 - enable
= FUCK_STABILITY,
183 + enabled
= FUCK_STABILITY,
187 189 dependencies
= {
'winston0410/cmd-parser.nvim' },
188 190 opts
= {
highlight =
'Visual' },
189 - enable
= FUCK_STABILITY,
191 + enabled
= FUCK_STABILITY,
206 - enable
= FUCK_STABILITY,
208 + enabled
= FUCK_STABILITY,
211 213 'zbirenbaum/neodim',
212 214 event
= 'LspAttach',
214 - enable
= FUCK_STABILITY,
216 + enabled
= FUCK_STABILITY,
218 220 'rafcamlet/nvim-luapad',
219 221 cmd = {
'Luapad',
'LuaRun' },
221 - enable = FUCK_STABILITY,
223 + enabled = FUCK_STABILITY,
226 228 'ravibrock/spellwarn.nvim',
227 229 event
= 'VeryLazy',
229 - enable
= FUCK_STABILITY,
231 + enabled
= FUCK_STABILITY,
234 236 config = function ()
235 237 require 'decisive'.setup {}
240 241 {
'<leader>cca',
":lua require('decisive').align_csv({})<cr>", {
silent =
true },
desc =
'Align CSV',
mode =
'n' },
242 243 {
'[c',
":lua require('decisive').align_csv_prev_col()<cr>", {
silent =
true },
desc =
'Align CSV prev col',
mode =
'n' },
243 244 {
']c',
":lua require('decisive').align_csv_next_col()<cr>", {
silent =
true },
desc =
'Align CSV next col',
mode =
'n' },
245 - enable
= FUCK_STABILITY,
246 + enabled
= FUCK_STABILITY,
273 274 disabled_fts
= ignored.filetypes,
275 - enable
= FUCK_STABILITY,
276 + enabled
= FUCK_STABILITY,
291 292 {
path =
'wezterm-types',
mods = {
'wezterm' } },
294 - enable
= FUCK_STABILITY,
295 + enabled
= FUCK_STABILITY,
297 298 'shortcuts/no-neck-pain.nvim',
299 - enable = FUCK_STABILITY,
300 + enabled = FUCK_STABILITY,
305 306 'mizlan/iswap.nvim',
306 307 event
= 'VeryLazy',
307 - enable
= FUCK_STABILITY,
308 + enabled
= FUCK_STABILITY,
382 - enable
= FUCK_STABILITY,
383 + enabled
= FUCK_STABILITY,
neovim/lua/bugabinga/plugins/whichkey.lua
Modified18 18 event
= 'VeryLazy',
21 + group = icon.group
.. ' ',
23 23 CR = icon.return_key,
24 24 Esc = icon.esc_key,
41 - {
'<leader> ',
group =
'fun' },
42 - {
'<leader>b',
group =
'|b|uffer' },
43 - {
'<leader>f',
group =
'|f|iles' },
44 - {
'<leader>j',
group =
'|j|oin' },
45 - {
'<leader>l',
group =
'|l|sp' },
46 - {
'<leader>lc',
group =
'|c|alls' },
47 - {
'<leader>t',
group =
'|t|oggle' },
48 - {
'<leader>v',
group =
'|v|ersion control' },
49 - {
'<leader>z',
group =
'la|z|y' },
41 + {
'<leader> ',
group =
'fun' },
43 + {
'<leader>b',
group =
'Buffers' },
44 + {
'<leader>f',
group =
'Files' },
45 + {
'<leader>j',
group =
'Join' },
46 + {
'<leader>l',
group =
'Lsp' },
47 + {
'<leader>t',
group =
'Toggle' },
48 + {
'<leader>v',
group =
'Version control' },
49 + {
'<leader>z',
group =
'laZy' },
neovim/lua/std/icon.lua
Modifiedwezterm/bugabinga/code_fonts.csv
Modified 85 85 1,
ProggySquareTTSZ 102 -1,
Verily Serif Mono 102 +0,
Verily Serif Mono wezterm/bugabinga/window.lua
Modified 1 1 return function ( cfg )
2 2 cfg.window_decorations
= 'RESIZE' 3 3 cfg.enable_wayland
= true 4 + cfg.use_resize_increments
= true 4 5 cfg.window_padding
= {