dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: refactores lsp configs for version 0.11
neovim: split up options into smaller chunks
neovim: new incubator plugin: arrow
f21154c0ab4222b9211f42715196beeb2ffac514
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (23)
neovim/lsp/ast_grep.lua
Addednew file mode 100644 2 + cmd = {
'ast-grep',
'lsp' },
3 + workspace_required =
true,
10 + root_markers = {
'sgconfig.yaml',
'sgconfig.yml' },
neovim/lsp/hyprls.lua
Addednew file mode 100644 2 + cmd = {
'hyprls',
'--stdio' },
3 + filetypes = {
'hyprlang' },
4 + root_markers = {
'.git' },
neovim/lsp/lemminx.lua
Addednew file mode 100644 3 + filetypes = {
'xml',
'xsd',
'xsl',
'xslt',
'svg' },
4 + root_markers = {
'.git',
'.svn' },
neovim/lsp/marksman.lua
Addednew file mode 100644 1 +local bin_name
= 'marksman' 2 +local cmd
= { bin_name,
'server' }
6 + filetypes = {
'markdown',
'markdown.mdx' },
7 + root_markers = {
'.marksman.toml',
'.git' },
neovim/lsp/nushell.lua
Addednew file mode 100644 2 + cmd = {
'nu',
'--lsp' },
3 + filetypes = {
'nu' },
4 + root_markers = {
'.git' },
neovim/lsp/pkgbuild_ls.lua
Addednew file mode 100644 2 + cmd = {
'pkgbuild-language-server' },
3 + filetypes = {
'PKGBUILD' },
4 + root_markers = {
'.git' },
neovim/lsp/protols.lua
Addednew file mode 100644 3 + filetypes = {
'proto' },
4 + root_markers = {
'.git' },
neovim/lsp/superhtml.lua
Addednew file mode 100644 2 + cmd = {
'superhtml',
'lsp' },
3 + filetypes = {
'superhtml',
'html' },
4 + root_markers = {
'.git' },
neovim/lsp/taplo.lua
Addednew file mode 100644 2 + cmd = {
'taplo',
'lsp',
'stdio' },
3 + filetypes = {
'toml' },
4 + root_markers = {
'.taplo.toml',
'taplo.toml',
'.git' },
neovim/lsp/ziggy.lua
Addednew file mode 100644 2 + cmd = {
'ziggy',
'lsp' },
3 + filetypes = {
'ziggy' },
4 + root_markers = {
'.git' },
neovim/lsp/ziggy_schema.lua
Addednew file mode 100644 2 + cmd = {
'ziggy',
'lsp',
'--schema' },
3 + filetypes = {
'ziggy_schema' },
4 + root_markers = {
'.git' },
new file mode 100644 3 + filetypes = {
'zig',
'zir' },
4 + root_markers = {
'zls.json',
'build.zig',
'.git' },
5 + workspace_required =
false,
neovim/lua/bugabinga/incubator.lua
Modified 112 +puk.defer
'nvim-autopairs' (
function(autopairs)
114 + disable_filetype = ignored.filetypes,
115 + disable_in_visualblock =
true,
120 +puk.defer
'arrow' (
function(arrow)
124 + buffer_leader_key =
'm',
neovim/lua/bugabinga/lsp.lua
Modified 1 1 local puk
= require 'std.puk' 2 +local const
= require'std.const' 2 3 local project
= require 'std.project' 3 4 local dbg
= require 'std.dbg' 4 5 local icon
= require 'std.icon' 16 17 vim.lsp.config (
"*", {
capabilities = {
textDocument = {
semanticTokens = {
multilineTokenSupport =
true }}}})
19 +if not const.win32
then 23 -local language_servers
= {
24 - zls = {
root_dir = project.find_zig_project_root },
25 - ziggy = {
root_dir = project.find_zig_project_root },
26 - ziggy_schema = {
root_dir = project.find_zig_project_root },
30 - unusedparams =
true,
35 - completeUnimported =
true,
36 - usePlaceholders =
true,
38 - diagnosticsDelay =
'500ms',
40 - assignVariableTypes =
true,
41 - compositeLiteralFields =
true,
42 - constantValues =
true,
43 - functionTypeParameters =
true,
44 - parameterNames =
true,
45 - rangeVariableTypes =
true,
56 41 local lsp_attach = function ( args )
57 42 local bufnr
= args.buf
neovim/lua/bugabinga/options/core.lua
Addednew file mode 100644 1 +local icon
= require 'std.icon' 6 +vim.g.loaded_python3_provider
= 0 7 +vim.g.loaded_ruby_provider
= 0 8 +vim.g.loaded_node_provider
= 0 9 +vim.g.loaded_perl_provider
= 0 12 +vim.g.qf_disable_statusline
= 1 17 +vim.opt.autoread
= true 20 +vim.opt.fileencoding
= 'utf-8' 23 +vim.opt.backup
= true 31 +vim.opt.backupdir
= vim.fn.stdpath
'state' .. '/backup//' 34 +vim.opt.writebackup
= true 37 +vim.opt.swapfile
= true 38 +vim.opt.updatecount
= 100 41 +vim.opt.undofile
= true 44 +vim.opt.updatetime
= 50 46 +vim.opt.timeoutlen
= 250 49 +vim.opt.path:append
'**' 51 +vim.opt.wildignore
= {
79 +vim.opt.whichwrap:append
'<' 80 +vim.opt.whichwrap:append
'>' 81 +vim.opt.whichwrap:append
'[' 82 +vim.opt.whichwrap:append
']' 83 +vim.opt.whichwrap:append
'h' 84 +vim.opt.whichwrap:append
'l' 87 +vim.opt.iskeyword:append
'-' 91 +vim.opt.expandtab
= false 93 +vim.opt.tabstop
= tab_size
94 +vim.opt.shiftwidth
= tab_size
95 +vim.opt.softtabstop
= tab_size
96 +vim.opt.shiftround
= true 98 +vim.opt.smarttab
= true 100 +vim.opt.wrap
= false 102 +vim.opt.breakindent
= true 105 +vim.opt.scrolloff
= 0 106 +vim.opt.sidescrolloff
= 0 109 +vim.opt.smartindent
= true 111 +vim.opt.autoindent
= true 112 +vim.opt.copyindent
= true 115 +vim.opt.splitbelow
= true 116 +vim.opt.splitright
= true 117 +vim.opt.splitkeep
= 'screen' 122 +vim.opt.mousemodel
= 'popup_setpos' 125 +vim.opt.hlsearch
= true 127 +vim.opt.ignorecase
= true 128 +vim.opt.smartcase
= true 129 +vim.opt.incsearch
= true 130 +vim.opt.showmatch
= true 131 +vim.opt.hidden
= true 134 +vim.opt.inccommand
= 'nosplit' 137 +vim.opt.confirm
= true 141 +vim.opt.listchars
= {
146 + trail = icon.trail,
147 + extends = icon.extends,
148 + precedes = icon.precedes,
153 +vim.opt.showcmd
= false 156 +vim.opt.wildmode
= 'full' 157 +vim.opt.wildignorecase
= true 158 +vim.opt.wildoptions
= 'fuzzy,pum' 161 +vim.opt.completeopt:append
'menuone' 162 +vim.opt.completeopt:append
'noselect' 163 +vim.opt.completeopt:append
'popup' 166 +vim.opt.signcolumn
= 'yes:2' 169 +vim.opt.ruler
= false 172 +vim.opt.laststatus
= 3 175 +vim.opt.fillchars
= {
191 +vim.opt.syntax
= 'off' 196 +vim.opt.shortmess:append
'I' 201 +vim.opt.cmdheight
= 1 204 +vim.opt.conceallevel
= 0 207 +vim.opt.foldenable
= false 210 +vim.opt.colorcolumn
= {
'80',
'120',
'140' }
213 +vim.opt.cursorline
= false 216 +vim.opt.pumheight
= 10 219 +vim.opt.pumblend
= 0 220 +vim.opt.winblend
= 0 223 +vim.g.border_style
= {
224 + {
"🬷",
'FloatBorderCorner' },
225 + {
"▔",
'FloatBorder' },
226 + {
"🬲",
'FloatBorderCorner' },
227 + {
"🮈",
'FloatBorder' },
228 + {
"🬕",
'FloatBorderCorner' },
229 + {
"▁",
'FloatBorder' },
230 + {
"🬨",
'FloatBorderCorner' },
231 + {
"▍",
'FloatBorder' },
235 +vim.opt.showmode
= false 238 +vim.opt.showtabline
= 2 241 +vim.opt.smoothscroll
= true neovim/lua/bugabinga/options/grep.lua
Addednew file mode 100644 1 +if vim.fn.executable
'rg' then 3 + vim.opt.grepprg
= 'rg --hidden --vimgrep --no-heading --smart-case -- ' 4 + vim.opt.grepformat
= '%f:%l:%c:%m' 7 +require 'bugabinga.health'.add_dependency
10 + name_of_executable =
'rg',
neovim/lua/bugabinga/options/init.lua
Modified 1 -local const
= require 'std.const' 2 -local icon
= require 'std.icon' 7 -vim.g.loaded_python3_provider
= 0 8 -vim.g.loaded_ruby_provider
= 0 9 -vim.g.loaded_node_provider
= 0 10 -vim.g.loaded_perl_provider
= 0 13 -vim.g.qf_disable_statusline
= 1 16 1 require 'bugabinga.options.filetypes' 21 -vim.opt.autoread
= true 24 -vim.opt.fileencoding
= 'utf-8' 27 -vim.opt.backup
= true 35 -vim.opt.backupdir
= vim.fn.stdpath
'state' .. '/backup//' 38 -vim.opt.writebackup
= true 41 -vim.opt.swapfile
= true 42 -vim.opt.updatecount
= 100 45 -vim.opt.undofile
= true 48 -vim.opt.updatetime
= 50 50 -vim.opt.timeoutlen
= 250 53 -vim.opt.path:append
'**' 55 -vim.opt.wildignore
= {
83 -vim.opt.whichwrap:append
'<' 84 -vim.opt.whichwrap:append
'>' 85 -vim.opt.whichwrap:append
'[' 86 -vim.opt.whichwrap:append
']' 87 -vim.opt.whichwrap:append
'h' 88 -vim.opt.whichwrap:append
'l' 91 -vim.opt.iskeyword:append
'-' 95 -vim.opt.expandtab
= false 97 -vim.opt.tabstop
= tab_size
98 -vim.opt.shiftwidth
= tab_size
99 -vim.opt.softtabstop
= tab_size
100 -vim.opt.shiftround
= true 102 -vim.opt.smarttab
= true 104 -vim.opt.wrap
= false 106 -vim.opt.breakindent
= true 109 -vim.opt.scrolloff
= 0 110 -vim.opt.sidescrolloff
= 0 113 -vim.opt.smartindent
= true 115 -vim.opt.autoindent
= true 116 -vim.opt.copyindent
= true 119 -vim.opt.splitbelow
= true 120 -vim.opt.splitright
= true 121 -vim.opt.splitkeep
= 'screen' 126 -vim.opt.mousemodel
= 'popup_setpos' 128 -vim.schedule(
function()
129 -if vim.fn.executable
'nu' then 131 - vim.schedule(
function()
133 - vim.opt.shell
= 'nu' 138 - vim.opt.shellcmdflag
= '--stdin --no-newline --commands' 143 - vim.opt.shellredir
= 'out+err> "%s"' 148 - vim.opt.shellpipe
= 149 - '| complete | get stderr stdout | str join (char nl) | ansi strip | tee { save --force --raw "%s" }' 155 - vim.opt.shelltemp
= false 156 - vim.opt.shellxquote
= '' 157 - vim.opt.shellxescape
= '' 158 - vim.opt.shellquote
= '' 162 -require 'bugabinga.health'.add_dependency
165 - name_of_executable =
'nu',
171 -vim.opt.hlsearch
= true 173 -vim.opt.ignorecase
= true 174 -vim.opt.smartcase
= true 175 -vim.opt.incsearch
= true 176 -vim.opt.showmatch
= true 177 -vim.opt.hidden
= true 180 -vim.opt.inccommand
= 'nosplit' 182 -vim.schedule(
function()
183 -if vim.fn.executable
'rg' then 185 - vim.opt.grepprg
= 'rg --hidden --vimgrep --no-heading --smart-case -- ' 186 - vim.opt.grepformat
= '%f:%l:%c:%m' 189 -require 'bugabinga.health'.add_dependency
192 - name_of_executable =
'rg',
197 -vim.opt.confirm
= true 2 +require 'bugabinga.options.core' 199 4 vim.schedule(
function()
200 -if const.wsl
or const.win32
then 201 - require 'bugabinga.health'.add_dependency
203 - name =
'win32yank',
204 - name_of_executable =
'win32yank.exe',
206 - vim.g.clipboard
= {
207 - name =
'win32yank-wsl',
209 - [
'+'] =
'win32yank.exe -i --crlf',
210 - [
'*'] =
'win32yank.exe -i --crlf',
213 - [
'+'] =
'win32yank.exe -o --lf',
214 - [
'*'] =
'win32yank.exe -o --lf',
216 - cache_enabled =
true,
223 -vim.opt.listchars
= {
228 - trail = icon.trail,
229 - extends = icon.extends,
230 - precedes = icon.precedes,
234 -vim.schedule(
function()
236 -vim.cmd
[[ language en_US.utf8 ]] 239 -vim.cmd
[[ set title ]] 243 -vim.opt.showcmd
= false 246 -vim.opt.wildmode
= 'full' 247 -vim.opt.wildignorecase
= true 248 -vim.opt.wildoptions
= 'fuzzy,pum' 251 -vim.opt.completeopt:append
'menuone' 252 -vim.opt.completeopt:append
'noselect' 253 -vim.opt.completeopt:append
'popup' 256 -vim.opt.signcolumn
= 'yes:2' 259 -vim.opt.ruler
= false 262 -vim.opt.laststatus
= 3 265 -vim.opt.fillchars
= {
281 -vim.opt.syntax
= 'off' 286 -vim.opt.shortmess:append
'I' 291 -vim.opt.cmdheight
= 1 294 -vim.opt.conceallevel
= 0 297 -vim.opt.foldenable
= false 300 -vim.opt.colorcolumn
= {
'80',
'120',
'140' }
303 -vim.opt.cursorline
= false 306 -vim.opt.pumheight
= 10 309 -vim.opt.pumblend
= 0 310 -vim.opt.winblend
= 0 313 -vim.g.border_style
= {
314 - {
"🬷",
'FloatBorderCorner' },
315 - {
"▔",
'FloatBorder' },
316 - {
"🬲",
'FloatBorderCorner' },
317 - {
"🮈",
'FloatBorder' },
318 - {
"🬕",
'FloatBorderCorner' },
319 - {
"▁",
'FloatBorder' },
320 - {
"🬨",
'FloatBorderCorner' },
321 - {
"▍",
'FloatBorder' },
325 -vim.opt.showmode
= false 328 -vim.opt.showtabline
= 2 330 -local is_tty
= vim.env.XDG_SESSION_TYPE
== 'tty' and vim.env.SSH_TTY
== '' 332 - vim.opt.termguicolors
= false 333 - vim.g.nerdfont
= false 334 - vim.opt.lazyredraw
= true 336 - vim.opt.termguicolors
= true 337 - vim.g.nerdfont
= true 338 - vim.opt.lazyredraw
= false 342 -vim.opt.smoothscroll
= true 351 -if vim.g.neovide
then 352 - vim.g.neovide_profiler
= false 354 - vim.g.neovide_touch_deadzone
= 0.0 356 - vim.g.neovide_underline_stroke_scale
= 2.5 357 - vim.g.neovide_touch_drag_timeout
= 0.69 358 - vim.g.neovide_padding_top
= 8 359 - vim.g.neovide_padding_left
= 8 360 - vim.g.neovide_padding_bottom
= 0 361 - vim.g.neovide_padding_right
= 0 362 - vim.g.neovide_hide_mouse_when_typing
= true 363 - vim.g.neovide_refresh_rate_idle
= 5 364 - vim.g.neovide_theme
= 'auto' 365 - vim.g.experimental_layer_grouping
= true 368 -vim.schedule(
function()
369 -require 'bugabinga.options.behaviour' 370 -require 'bugabinga.options.keymaps' 371 -require 'bugabinga.options.spelling' 372 -require 'bugabinga.options.commands' 373 -require 'bugabinga.options.menus' 5 + require 'bugabinga.options.behaviour' 6 + require 'bugabinga.options.keymaps' 7 + require 'bugabinga.options.spelling' 8 + require 'bugabinga.options.commands' 9 + require 'bugabinga.options.menus' 10 + require 'bugabinga.options.shell' 11 + require 'bugabinga.options.win32' 12 + require 'bugabinga.options.neovide' 13 + require 'bugabinga.options.tty' neovim/lua/bugabinga/options/neovide.lua
Addednew file mode 100644 2 + vim.g.neovide_profiler
= false 4 + vim.g.neovide_touch_deadzone
= 0.0 6 + vim.g.neovide_underline_stroke_scale
= 2.5 7 + vim.g.neovide_touch_drag_timeout
= 0.69 8 + vim.g.neovide_padding_top
= 8 9 + vim.g.neovide_padding_left
= 8 10 + vim.g.neovide_padding_bottom
= 0 11 + vim.g.neovide_padding_right
= 0 12 + vim.g.neovide_hide_mouse_when_typing
= true 13 + vim.g.neovide_refresh_rate_idle
= 5 14 + vim.g.neovide_theme
= 'auto' 15 + vim.g.experimental_layer_grouping
= true neovim/lua/bugabinga/options/shell.lua
Addednew file mode 100644 1 +if vim.fn.executable
'nu' then 8 + vim.opt.shellcmdflag
= '--stdin --no-newline --commands' 13 + vim.opt.shellredir
= 'out+err> "%s"' 19 + '| complete | get stderr stdout | str join (char nl) | ansi strip | tee { save --force --raw "%s" }' 25 + vim.opt.shelltemp
= false 26 + vim.opt.shellxquote
= '' 27 + vim.opt.shellxescape
= '' 28 + vim.opt.shellquote
= '' 31 +require 'bugabinga.health'.add_dependency
34 + name_of_executable =
'nu',
neovim/lua/bugabinga/options/tty.lua
Addednew file mode 100644 1 +local is_tty
= vim.env.XDG_SESSION_TYPE
== 'tty' and vim.env.SSH_TTY
== '' 3 + vim.opt.termguicolors
= false 4 + vim.g.nerdfont
= false 5 + vim.opt.lazyredraw
= true 7 + vim.opt.termguicolors
= true 8 + vim.g.nerdfont
= true 9 + vim.opt.lazyredraw
= false neovim/lua/bugabinga/options/win32.lua
Addednew file mode 100644 1 +local const
= require 'std.const' 3 +if const.wsl
or const.win32
then 4 + require 'bugabinga.health'.add_dependency
7 + name_of_executable =
'win32yank.exe',
10 + name =
'win32yank-wsl',
12 + [
'+'] =
'win32yank.exe -i --crlf',
13 + [
'*'] =
'win32yank.exe -i --crlf',
16 + [
'+'] =
'win32yank.exe -o --lf',
17 + [
'*'] =
'win32yank.exe -o --lf',
19 + cache_enabled =
true,
neovim/puk.plugins.nuon
Modified 13 - neovim/nvim-lspconfig,
15 - "39dc331899521bbb4e102b614b71ab37464f8326",
295 287 "c23f200fee469a415c77265ca55b496feb646992",
293 + windwp/nvim-autopairs,
295 + "4d74e75913832866aa7de35e4202463ddf6efd1b",
301 + otavioschwanck/arrow.nvim,
303 + "6e0f726f55f99332dd726a53effd6813786b6d49",
tools/packages.nuon
Modified 2 2 [name binary version win32_url lnx_url];
7 + https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-windows.zip
8 + https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-linux-musl.tar.xz
14 + https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-windows.zip
15 + https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-linux-musl.tar.gz
67 81 Contextive.LanguageServer
68 82 Contextive.LanguageServer
70 84 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-win-x64-{ version }.zip
71 85 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-linux-x64-{ version }.zip