dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide neovim: remove cmp
0bff741c56b57367557fe14296aacc83135e591a
Oliver Jan Krylow <oliver@bugabinga.net > · 11 Mar 2024
unsigned
Browse files Compare with HEAD
Changed files (30) +239 / −439 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
Diff layout Auto Unified Split
+6 / −3 text lines
41 + * kill custom lsp stuff in favor of lspconfig and try neoconf + nvim-java42 + * does status bar fail to display if lsp fails to load?41 43 * pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc* pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc42 44 * use gen.ai to generate docs* use gen.ai to generate docs43 45 * learn marks and refactor mark.lua* learn marks and refactor mark.lua44 46 * use ltex-ls for markdown, code comments and commit messages* use ltex-ls for markdown, code comments and commit messages
47 + * create a floating window that shows plugins, that have commands, as reminder45 48 * setup DAP* setup DAP46 49 * add nu-check to nvim-lint* add nu-check to nvim-lint47 50 * create facade over vim.api.nvim_create_user_command* create facade over vim.api.nvim_create_user_command48 - * create skelleton -plugin for default file content based on file type49 - * add support for Java mutliline string in autopairs50 - * nvim spell for camelcase words51 + * create skeleton -plugin for default file content based on file type52 + * add support for Java multi line string in autopairs53 + * nvim spell for camel case words+1 / −3 text lines
15 14 local ok, loadedlocal ok, loaded38 37 ok, loaded = pcall ( require , 'bugabinga.lsp' )ok, loaded = pcall ( require , 'bugabinga.lsp' )39 38 if not ok then vim.print( 'error while loading lsp' , loaded ) end if not ok then vim.print( 'error while loading lsp' , loaded ) end neovim/lazy-lock.json Modified +17 / −27 text lines
2 2 "Comment.nvim" : { "branch" : "master" , "commit" : "0236521ea582747b58869cb72f70ccfa967d2e89" }, "Comment.nvim" : { "branch" : "master" , "commit" : "0236521ea582747b58869cb72f70ccfa967d2e89" },3 - "LuaSnip" : { "branch" : "master" , "commit" : "8ae1dedd988eb56441b7858bd1e8554dfadaa46d" },
4 3 "actions-preview.nvim" : { "branch" : "master" , "commit" : "5c240e6356156b72cfbf7c05feefadae61d7a06f" }, "actions-preview.nvim" : { "branch" : "master" , "commit" : "5c240e6356156b72cfbf7c05feefadae61d7a06f" },
4 + "auto-dark-mode.nvim" : { "branch" : "master" , "commit" : "e328dc463d238cb7d690fb4daf068eba732a5a14" },5 5 "better-escape.nvim" : { "branch" : "master" , "commit" : "7e86edafb8c7e73699e0320f225464a298b96d12" }, "better-escape.nvim" : { "branch" : "master" , "commit" : "7e86edafb8c7e73699e0320f225464a298b96d12" },6 - "cmp-buffer" : { "branch" : "main" , "commit" : "3022dbc9166796b644a841a02de8dd1cc1d311fa" },7 - "cmp-emoji" : { "branch" : "main" , "commit" : "19075c36d5820253d32e2478b6aaf3734aeaafa0" },8 - "cmp-nvim-lsp" : { "branch" : "main" , "commit" : "5af77f54de1b16c34b23cba810150689a3a90312" },9 - "cmp-nvim-lsp-document-symbol" : { "branch" : "main" , "commit" : "f0f53f704c08ea501f9d222b23491b0d354644b0" },10 - "cmp-nvim-lsp-signature-help" : { "branch" : "main" , "commit" : "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },11 - "cmp-omni" : { "branch" : "main" , "commit" : "4ef610bbd85a5ee4e97e09450c0daecbdc60de86" },12 - "cmp-path" : { "branch" : "main" , "commit" : "91ff86cd9c29299a64f968ebb45846c485725f23" },13 - "cmp_luasnip" : { "branch" : "master" , "commit" : "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
14 6 "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },15 7 "dressing.nvim" : { "branch" : "master" , "commit" : "6f212262061a2120e42da0d1e87326e8a41c0478" }, "dressing.nvim" : { "branch" : "master" , "commit" : "6f212262061a2120e42da0d1e87326e8a41c0478" },16 8 "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" }, "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" },17 - "friendly-snippets" : { "branch" : "main" , "commit" : "dcd4a586439a1c81357d5b9d26319ae218cc9479" },18 - "gen.nvim" : { "branch" : "main" , "commit" : "a6cc144ccd885a6ba104e8285a37e6ab627eda78" },9 + "gen.nvim" : { "branch" : "main" , "commit" : "85a739cea06148a56d52f26b01d63de6671ce4ce" },19 10 "gitsigns.nvim" : { "branch" : "main" , "commit" : "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "gitsigns.nvim" : { "branch" : "main" , "commit" : "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },20 11 "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" }, "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" },21 12 "heirline.nvim" : { "branch" : "master" , "commit" : "03cff30d7e7d3ba6fdc00925f015822f79cef908" }, "heirline.nvim" : { "branch" : "master" , "commit" : "03cff30d7e7d3ba6fdc00925f015822f79cef908" },22 13 "hlargs.nvim" : { "branch" : "main" , "commit" : "0f2dbf02ff948e8fc8ebe07b215f3174a12bbe3c" }, "hlargs.nvim" : { "branch" : "main" , "commit" : "0f2dbf02ff948e8fc8ebe07b215f3174a12bbe3c" },
14 + "hyper.nvim" : { "branch" : "main" , "commit" : "b84fb39e703b1dd487d20c4faf028ee51374c88b" },23 15 "indent-blankline.nvim" : { "branch" : "master" , "commit" : "821a7acd88587d966f7e464b0b3031dfe7f5680c" }, "indent-blankline.nvim" : { "branch" : "master" , "commit" : "821a7acd88587d966f7e464b0b3031dfe7f5680c" },24 - "lazy.nvim" : { "branch" : "main" , "commit" : "aedcd79811d491b60d0a6577a9c1701063c2a609" },25 - "lspkind.nvim" : { "branch" : "master" , "commit" : "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },16 + "lazy.nvim" : { "branch" : "main" , "commit" : "83493db50a434a4c5c648faf41e2ead80f96e478" },26 17 "lush.nvim" : { "branch" : "main" , "commit" : "2e8d34e748642621d761a65e3c2a198154b914e8" }, "lush.nvim" : { "branch" : "main" , "commit" : "2e8d34e748642621d761a65e3c2a198154b914e8" },27 18 "mason-tool-installer.nvim" : { "branch" : "main" , "commit" : "1212fb6082b7177dde17ea65e429e027835aeb40" }, "mason-tool-installer.nvim" : { "branch" : "main" , "commit" : "1212fb6082b7177dde17ea65e429e027835aeb40" },28 19 "mason.nvim" : { "branch" : "main" , "commit" : "3b5068f0fc565f337d67a2d315d935f574848ee7" }, "mason.nvim" : { "branch" : "main" , "commit" : "3b5068f0fc565f337d67a2d315d935f574848ee7" },31 22 "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" }, "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },32 23 "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" }, "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },33 24 "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" }, "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" },34 - "neodev.nvim" : { "branch" : "main" , "commit" : "3157f2e876fd6223d36cfa76bee4709247d62fa5" },35 - "neogen" : { "branch" : "main" , "commit" : "70127baaff25611deaf1a29d801fc054ad9d2dc1" },25 + "neoconf.nvim" : { "branch" : "main" , "commit" : "db1d1bd45f4e91da6abc898281711fa47eda0ece" },26 + "neogen" : { "branch" : "main" , "commit" : "b95347a588401a755eadd17482edc1662876bd58" },36 27 "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" }, "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" },37 - "nui.nvim" : { "branch" : "main" , "commit" : "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },28 + "nui.nvim" : { "branch" : "main" , "commit" : "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },38 29 "nvim-autopairs" : { "branch" : "master" , "commit" : "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" }, "nvim-autopairs" : { "branch" : "master" , "commit" : "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },39 - "nvim-cmp" : { "branch" : "main" , "commit" : "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
40 30 "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" }, "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" },41 - "nvim-genghis" : { "branch" : "main" , "commit" : "d04dbfe57b0ae908ba8e397962a1fcef98ca9fd9" },31 + "nvim-genghis" : { "branch" : "main" , "commit" : "8613fc1b43db6cc761733b3630eabff9e86296f7" },42 32 "nvim-gomove" : { "branch" : "main" , "commit" : "2b44ae7ac0804f4e3959228122f7c85bef1964e3" }, "nvim-gomove" : { "branch" : "main" , "commit" : "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },43 33 "nvim-jdtls" : { "branch" : "master" , "commit" : "a4746791876166dc146eae573a1b49d24a6652e7" }, "nvim-jdtls" : { "branch" : "master" , "commit" : "a4746791876166dc146eae573a1b49d24a6652e7" },44 34 "nvim-lastplace" : { "branch" : "main" , "commit" : "0bb6103c506315044872e0f84b1f736c4172bb20" }, "nvim-lastplace" : { "branch" : "main" , "commit" : "0bb6103c506315044872e0f84b1f736c4172bb20" },45 35 "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" }, "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" },46 36 "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" }, "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },47 - "nvim-surround" : { "branch" : "main" , "commit" : "8f2af76134f37058dc4c27a24bc5f86c9cae76dc" },48 - "nvim-tree.lua" : { "branch" : "master" , "commit" : "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677" },49 - "nvim-treesitter" : { "branch" : "master" , "commit" : "db12bd416e2764420047e4a5d6b96fe44e4377d5" },50 - "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "7f00d94543f1fd37cab2afa2e9a6cd54e1c6b9ef" },37 + "nvim-surround" : { "branch" : "main" , "commit" : "84a26afce16cffa7e3322cfa80a42cddf60616eb" },38 + "nvim-tree.lua" : { "branch" : "master" , "commit" : "efafd73efa9bc8c26282aed563ba0f01c7465b06" },39 + "nvim-treesitter" : { "branch" : "master" , "commit" : "9775d5d7c724f81acdd441e7e9edefc4514e990b" },40 + "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "b7a0bfa3e93697ca5b61b15df633404bf8f45883" },51 41 "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" },52 42 "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" }, "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },53 - "nvim-web-devicons" : { "branch" : "master" , "commit" : "0bb67ef952ea3eb7b1bac9c011281471d99a27bc" },43 + "nvim-web-devicons" : { "branch" : "master" , "commit" : "4adea17610d140a99c313e3f79a9dc01825d59ae" },54 44 "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" }, "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },55 - "oil.nvim" : { "branch" : "master" , "commit" : "132b4ea0740c417b9d717411cab4cf187e1fd095" },45 + "oil.nvim" : { "branch" : "master" , "commit" : "18dfd2458dc741fea683357a17aaa95870b25a3c" },56 46 "persistence.nvim" : { "branch" : "main" , "commit" : "4982499c1636eac254b72923ab826ee7827b3084" }, "persistence.nvim" : { "branch" : "main" , "commit" : "4982499c1636eac254b72923ab826ee7827b3084" },57 47 "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" },58 - "plenary.nvim" : { "branch" : "master" , "commit" : "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },59 - "schemastore.nvim" : { "branch" : "main" , "commit" : "a93078f016d3216f4ab4e4c65306b65212314d8d" },60 - "specs.nvim" : { "branch" : "main" , "commit" : "2743e412bbe21c9d73954c403d01e8de7377890d" },48 + "plenary.nvim" : { "branch" : "master" , "commit" : "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },49 + "schemastore.nvim" : { "branch" : "main" , "commit" : "6eb5d8d9ec9f81b75aaa6d15d0f6dc12a066fd3f" },50 + "specs.nvim" : { "branch" : "main" , "commit" : "e929006d3f6bb8e43f03e13ac364c67236eb5299" },61 51 "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" }, "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" },62 52 "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" }, "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },63 53 "substitute.nvim" : { "branch" : "main" , "commit" : "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" }, "substitute.nvim" : { "branch" : "main" , "commit" : "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },neovim/lua/bugabinga/diagnostic.lua Modified +1 / −0 text lines
70 70 sign { name = 'DiagnosticSignHint' , text = diagnostic_icons.hint }sign { name = 'DiagnosticSignHint' , text = diagnostic_icons.hint }71 71 sign { name = 'DiagnosticSignInfo' , text = diagnostic_icons.info }sign { name = 'DiagnosticSignInfo' , text = diagnostic_icons.info }73 74 map.normal {map.normal {74 75 description = 'Toggle diagnostics' , description = 'Toggle diagnostics' ,75 76 category = 'diagnostic' , category = 'diagnostic' ,neovim/lua/bugabinga/lsp/clients/archlinux.lua Deleted deleted file mode 100644+0 / −10 text lines
1 - local project = require 'std.project' 4 - name = 'pkgbuild-language-server' ,5 - command = 'pkgbuild-language-server' ,6 - filetypes = { 'PKGBUILD' },7 - root_dir = project.find_vcs_project_root,8 - single_file_support = true ,
neovim/lua/bugabinga/lsp/clients/init.lua Modified +13 / −14 text lines
2 - require 'bugabinga.lsp.clients.java' ,3 - require 'bugabinga.lsp.clients.lua' ,4 - require 'bugabinga.lsp.clients.json' ,5 - require 'bugabinga.lsp.clients.archlinux' ,6 - require 'bugabinga.lsp.clients.asm' ,7 - require 'bugabinga.lsp.clients.bash' ,8 - require 'bugabinga.lsp.clients.c' ,9 - require 'bugabinga.lsp.clients.graphviz' ,10 - require 'bugabinga.lsp.clients.markdown' ,11 - require 'bugabinga.lsp.clients.rust' ,12 - require 'bugabinga.lsp.clients.toml' ,13 - require 'bugabinga.lsp.clients.vim' ,14 - require 'bugabinga.lsp.clients.xml' ,15 - require 'bugabinga.lsp.clients.zig' ,2 + require 'bugabinga.lsp.clients.java' ,3 + require 'bugabinga.lsp.clients.lua' ,4 + require 'bugabinga.lsp.clients.json' ,5 + require 'bugabinga.lsp.clients.asm' ,6 + require 'bugabinga.lsp.clients.bash' ,7 + require 'bugabinga.lsp.clients.c' ,8 + require 'bugabinga.lsp.clients.graphviz' ,9 + require 'bugabinga.lsp.clients.markdown' ,10 + require 'bugabinga.lsp.clients.rust' ,11 + require 'bugabinga.lsp.clients.toml' ,12 + require 'bugabinga.lsp.clients.vim' ,13 + require 'bugabinga.lsp.clients.xml' ,14 + require 'bugabinga.lsp.clients.zig' ,neovim/lua/bugabinga/lsp/clients/java.lua Modified +10 / −15 text lines
1 1 local table = require 'std.table' local table = require 'std.table' 2 2 local project = require 'std.project' local project = require 'std.project' 3 3 local auto = require 'std.auto' local auto = require 'std.auto' 4 - local map = require 'std.map' 4 + local map = require 'std.map' 6 6 local create_shared_config_path = function ( base_path, syntax_server )local create_shared_config_path = function ( base_path, syntax_server )7 7 local os_config local os_config54 54 local create_jdtls_command = function ( syntax_server )local create_jdtls_command = function ( syntax_server )55 55 local mason_registry = require 'mason-registry' local mason_registry = require 'mason-registry' 56 - local jdtls_package_path = mason_registry.get_package( 'jdtls' ) :get_install_path()56 + local jdtls_package_path = mason_registry.get_package 'jdtls' :get_install_path()57 57 local shared_config_path = create_shared_config_path( jdtls_package_path, syntax_server ) local shared_config_path = create_shared_config_path( jdtls_package_path, syntax_server )58 58 local launcher_jar = find_launcher_jar( jdtls_package_path ) local launcher_jar = find_launcher_jar( jdtls_package_path )59 59 local data_dir = create_data_dir() local data_dir = create_data_dir()94 94 local jdk17 = { local jdk17 = {95 95 name = 'JavaSE-17' , name = 'JavaSE-17' ,100 97 local jdk21 = { local jdk21 = {101 98 name = 'JavaSE-21' , name = 'JavaSE-21' ,104 - if host == 'pop-os ' then 105 - jdk11.path = '/usr/lib /jvm/java-11-openjdk-amd64 ' 106 - jdk17.path = '/usr/lib /jvm/java-17-openjdk-amd64 ' 107 - jdk19.path = '/usr/lib/jvm/java-19-openjdk-amd64' 108 - jdk21.path = '/home/oli/.jdks/openjdk-21' 101 + if host == 'velma ' then 102 + jdk11.path = '/usr/lib64 /jvm/java-11-openjdk-11 ' 103 + jdk17.path = '/usr/lib64 /jvm/java-17-openjdk-17 ' 104 + jdk21.path = '/usr/lib64/jvm/java-21-openjdk-21' 109 105 elseif host == 'NB-00718' then elseif host == 'NB-00718' then 110 106 jdk11.path = 'C:/Users/okr/scoop/apps/openjdk11' jdk11.path = 'C:/Users/okr/scoop/apps/openjdk11' 111 107 jdk17.path = 'C:/Users/okr/scoop/apps/openjdk17' jdk17.path = 'C:/Users/okr/scoop/apps/openjdk17' 112 - jdk19.path = 'C:/Users/okr/scoop/apps/openjdk19'
113 108 jdk21.path = 'C:/Users/okr/scoop/apps/openjdk21' jdk21.path = 'C:/Users/okr/scoop/apps/openjdk21' 115 110 vim.notify 'missing jdk paths in java settings for lsp' vim.notify 'missing jdk paths in java settings for lsp' 118 - return { jdk11, jdk17, jdk19 , jdk21 }113 + return { jdk11, jdk17, jdk21 }121 116 local java_settings = {local java_settings = {221 216 description = 'Extract Variable' , description = 'Extract Variable' ,222 217 category = 'jdlts' , category = 'jdlts' ,223 218 keys = '<leader>ljv' , keys = '<leader>ljv' ,224 - command = function () jdtls.extract_variable(true ) end ,219 + command = function () jdtls.extract_variable( true ) end ,227 222 map.visual { map.visual {228 223 description = 'Extract Constant' , description = 'Extract Constant' ,229 224 category = 'jdlts' , category = 'jdlts' ,230 225 keys = '<leader>ljc' , keys = '<leader>ljc' ,231 - command = function () jdtls.extract_constant(true ) end ,226 + command = function () jdtls.extract_constant( true ) end ,234 229 map.visual { map.visual {235 230 description = 'Extract Method' , description = 'Extract Method' ,236 231 category = 'jdlts' , category = 'jdlts' ,237 232 keys = '<leader>ljm' , keys = '<leader>ljm' ,238 - command = function () jdtls.extract_method(true ) end ,233 + command = function () jdtls.extract_method( true ) end ,241 236 auto 'refresh_codelens' { auto 'refresh_codelens' {neovim/lua/bugabinga/lsp/clients/lua.lua Modified +2 / −3 text lines
4 4 name = 'LuaLS' , name = 'LuaLS' ,5 5 filetypes = 'lua' , filetypes = 'lua' ,6 6 command = 'lua-language-server' , command = 'lua-language-server' ,7 - root_dir = project.find_lua_project_root ,7 + root_dir = project.find_lua_project_root,8 8 single_file_support = true , single_file_support = true ,9 9 workspaces = true , workspaces = true ,10 10 settings = { settings = {12 12 addonManager = { enable = false }, addonManager = { enable = false },13 - completion = { callSnippet = 'Both ' , postfix = '.' },13 + completion = { callSnippet = 'Disable ' , postfix = '.' },14 14 diagnostics = { globals = { 'vim' }, workspaceRate = 50 }, diagnostics = { globals = { 'vim' }, workspaceRate = 50 },15 15 hint = { enable = true , setType = true }, hint = { enable = true , setType = true },16 16 telemetry = { enable = false }, telemetry = { enable = false },18 18 workspace = { checkThirdParty = false , } workspace = { checkThirdParty = false , }21 - before_init = require 'neodev.lsp' .before_init,
neovim/lua/bugabinga/lsp/init.lua Modified +45 / −11 text lines
38 38 local expand_command = function ( command )local expand_command = function ( command )39 39 vim.validate { command = { command, { 'string' , 'table' } } } vim.validate { command = { command, { 'string' , 'table' } } }41 - debug .print( 'expanding command' , command )
43 41 if type ( command ) == 'table' then if type ( command ) == 'table' then 44 42 command[1 ] = expand_path( command[1 ] ) command[1 ] = expand_path( command[1 ] )45 43 return command return command51 49 local lsp_start = function ( file_type_event )local lsp_start = function ( file_type_event )
50 + debug .print 'trying to start lsp' 52 51 local match = file_type_event.match local match = file_type_event.match54 53 local matches_to_ignore = ignored.filetypes local matches_to_ignore = ignored.filetypes55 - debug .print( 'filetypes to ignore' , ignored.filetypes)56 - if vim.iter( ignored.filetypes):find( match ) then return end 54 + debug .print( 'filetypes to ignore' , ignored.filetypes, ' current filetype ' , match )55 + if vim.iter( ignored.filetypes ):find( match ) then return end 58 57 local bufnr = file_type_event.buf local bufnr = file_type_event.buf59 58 local buftype = vim.api.nvim_get_option_value( 'buftype' , { buf = bufnr } ) local buftype = vim.api.nvim_get_option_value( 'buftype' , { buf = bufnr } )60 - if vim.iter(ignored.buftypes):find(buftype) then return end 59 + debug .print( 'buftypes to ignore' , ignored.buftypes, 'current buftype' , buftype )60 + if vim.iter( ignored.buftypes ):find( buftype ) then return end 62 62 local buffer_path = vim.api.nvim_buf_get_name( bufnr ) local buffer_path = vim.api.nvim_buf_get_name( bufnr )99 99 :totable() :totable()101 101 debug .print( 'POTENTIAL CLIENTS' , debug .print( 'POTENTIAL CLIENTS' ,102 - vim.iter( potential_client_configs ):map( function ( config ) return { name = config . name , command = config . command } end ) 102 + vim.iter( potential_client_configs ):map( function ( config )105 111 if table .is_empty( potential_client_configs ) then if table .is_empty( potential_client_configs ) then 106 112 debug .print( 'found no lsp client for' , buffer_path ) debug .print( 'found no lsp client for' , buffer_path )115 121 for _, config in ipairs ( potential_client_configs ) do for _, config in ipairs ( potential_client_configs ) do 116 122 local root_dir = type ( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path ) local root_dir = type ( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )117 123 local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()118 - local cmp_capabilities = require 'cmp_nvim_lsp' .default_capabilities()119 - capabilities = table .extend( 'force' , capabilities, cmp_capabilities , config.capabilities )120 - debug .print( 'lsp capabilities' , capabilities, config.capabilities, cmp_capabilities )124 + capabilities = table .extend( 'force' , capabilities, config.capabilities )122 126 debug .print( 'starting command:' , config.command ) debug .print( 'starting command:' , config.command )423 427 desc = 'Shows detailed information about running LSP clients.' , desc = 'Shows detailed information about running LSP clients.' ,433 + local completion_icons = {457 + local completion_kinds = vim.lsp.protocol.CompletionItemKind458 + for i, kind in ipairs ( completion_kinds ) do 459 + completion_kinds[i] = completion_icons[kind] or kind428 462 return setmetatable ( _, {} )return setmetatable ( _, {} )neovim/lua/bugabinga/lsp/lightbulb.lua Modified +1 / −1 text lines
4 4 local lb_name = 'mariasolos/lightbulb' local lb_name = 'mariasolos/lightbulb' 5 5 local lb_namespace = vim.api.nvim_create_namespace( lb_name )local lb_namespace = vim.api.nvim_create_namespace( lb_name )6 - local lb_icon = require 'std.icon' .hint6 + local lb_icon = require 'std.icon' .hint7 7 local lb_group = vim.api.nvim_create_augroup( lb_name, { clear = true } )local lb_group = vim.api.nvim_create_augroup( lb_name, { clear = true } )8 8 local code_action_method = vim.lsp.protocol.Methods.textDocument_codeActionlocal code_action_method = vim.lsp.protocol.Methods.textDocument_codeAction9 9 local timer = vim.uv.new_timer()local timer = vim.uv.new_timer()neovim/lua/bugabinga/options/behaviour.lua Modified +12 / −11 text lines
1 + local debug = require 'std.debug' 1 2 local auto = require 'std.auto' local auto = require 'std.auto' 6 7 vim.opt.timeoutlen = 250 vim.opt.timeoutlen = 250 9 - vim.opt.whichwrap:append'<' 10 - vim.opt.whichwrap:append'>' 11 - vim.opt.whichwrap:append'[' 12 - vim.opt.whichwrap:append']' 13 - vim.opt.whichwrap:append'h' 14 - vim.opt.whichwrap:append'l' 10 + vim.opt.whichwrap:append '<' 11 + vim.opt.whichwrap:append '>' 12 + vim.opt.whichwrap:append '[' 13 + vim.opt.whichwrap:append ']' 14 + vim.opt.whichwrap:append 'h' 15 + vim.opt.whichwrap:append 'l' 27 28 vim.opt.wrap = false vim.opt.wrap = false 30 - vim.opt.scrolloff = 999 31 - vim.opt.sidescrolloff = 999 32 + vim.opt.sidescrolloff = 0 34 35 vim.opt.smartindent = true vim.opt.smartindent = true 99 100 if table .contains( ignored.filetypes, filetype ) then return end if table .contains( ignored.filetypes, filetype ) then return end 100 101 local buftype = vim.api.nvim_buf_get_option( buffer, 'buftype' ) local buftype = vim.api.nvim_buf_get_option( buffer, 'buftype' )101 102 if table .contains( ignored.buftypes, buftype ) then return end if table .contains( ignored.buftypes, buftype ) then return end 102 - local root = vim.fs.normalize(project.find_root_by_filetype( file, filetype ))103 - local cwd = vim.fs.normalize(vim.uv.cwd())103 + local root = vim.fs.normalize( project.find_root_by_filetype( file, filetype ) )104 + local cwd = vim.fs.normalize( vim.uv.cwd() )104 105 if root and cwd ~= root then if root and cwd ~= root then 105 106 vim.uv.chdir( root ) vim.uv.chdir( root )106 107 vim.notify( 'Changed root directory to ' .. root .. ' from ' .. cwd ) vim.notify( 'Changed root directory to ' .. root .. ' from ' .. cwd )108 + debug .print( buffer, file, vim.inspect( filetype ), vim.inspect( buftype ) )neovim/lua/bugabinga/options/keymaps.lua Modified +13 / −12 text lines
6 6 keys = '<space>' , keys = '<space>' ,7 7 command = '<nop>' , command = '<nop>' ,10 9 vim.g.mapleader = ' ' vim.g.mapleader = ' ' 11 10 vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' ' 20 13 map.normal {map.normal {21 14 description = 'Insert newline under cursor' , description = 'Insert newline under cursor' ,22 15 category = 'editing' , category = 'editing' ,24 17 command = function () command = function ()25 18 local current_buffer = 0 local current_buffer = 0 26 19 local current_line = vim.api.nvim_win_get_cursor( current_buffer )[1 ] local current_line = vim.api.nvim_win_get_cursor( current_buffer )[1 ]33 26 map.normal {map.normal {34 27 description = 'Insert newline above cursor' , description = 'Insert newline above cursor' ,35 28 category = 'editing' , category = 'editing' ,36 - keys = '<C-S-enter>' ,37 30 command = function () command = function ()38 31 local current_buffer = 0 local current_buffer = 0 39 32 local current_line = vim.api.nvim_win_get_cursor( current_buffer )[1 ] - 1 local current_line = vim.api.nvim_win_get_cursor( current_buffer )[1 ] - 1 40 33 local strict_indexing = false local strict_indexing = false 41 34 local newline = { '' } local newline = { '' }42 36 vim.api.nvim_buf_set_lines( current_buffer, current_line, current_line, strict_indexing, newline ) vim.api.nvim_buf_set_lines( current_buffer, current_line, current_line, strict_indexing, newline )101 95 command = function () return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end , command = function () return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end ,
99 + local win32 = vim.loop.os_uname().sysname:match 'Win' 100 + local wsl2 = vim.loop.os_uname().release:match 'WSL2' 104 102 local function open_link_under_cursor ()local function open_link_under_cursor ()106 104 local file_under_cursor = vim.fn.expand '<cfile>' local file_under_cursor = vim.fn.expand '<cfile>' 109 107 if file_under_cursor and file_under_cursor:match '%a+://.+' then if file_under_cursor and file_under_cursor:match '%a+://.+' then 110 108 vim.system( vim.system(112 - { 'firefox' , file_under_cursor },110 + (win32 or wsl2) and { 'cmd.exe' , '/C' , 'start' , 'msedge' , file_under_cursor }111 + or { 'firefox' , file_under_cursor },113 112 { text = true }, { text = true },114 113 function ( completed ) function ( completed )115 114 if completed.code == 0 then if completed.code == 0 then 116 - vim.notify( 'Openend ' .. file_under_cursor )115 + vim.schedule( function () vim.notify( 'Opened ' .. file_under_cursor ) end )118 117 error ( 'Failed to open ' .. file_under_cursor .. ' because: ' .. completed.stderr ) error ( 'Failed to open ' .. file_under_cursor .. ' because: ' .. completed.stderr )
122 + vim.notify 'Found no url under cursor !' 190 191 vim.lsp.buf.format { async = false } vim.lsp.buf.format { async = false }193 - vim.cmd [[silent make]] 196 197 vim.cmd [[wa]] vim.cmd [[wa]] neovim/lua/bugabinga/options/ui.lua Modified +2 / −0 text lines
96 96 vim.opt.shortmess:append 'c' vim.opt.shortmess:append 'c' 98 98 vim.opt.shortmess:append 'I' vim.opt.shortmess:append 'I'
100 + vim.opt.shortmess:append 't' 101 103 vim.opt.cmdheight = 1 vim.opt.cmdheight = 1 neovim/lua/bugabinga/plugins/autopairs.lua Modified +2 / −14 text lines
4 4 'windwp/nvim-autopairs' , 'windwp/nvim-autopairs' ,5 5 event = 'InsertEnter' , event = 'InsertEnter' ,7 + disable_filetype = ignored.filetypes,10 - local autopairs = require 'nvim-autopairs' 12 - disable_filetype = ignored.filetypes,14 - local cmp_autopairs = require 'nvim-autopairs.completion.cmp' 15 - local cmp = require 'cmp' 18 - cmp_autopairs.on_confirm_done()
neovim/lua/bugabinga/plugins/cmp.lua Deleted deleted file mode 100644+0 / −117 text lines
5 - event = 'InsertEnter' ,8 - 'hrsh7th/cmp-nvim-lsp' ,10 - 'hrsh7th/cmp-nvim-lsp-document-symbol' ,11 - 'hrsh7th/cmp-nvim-lsp-signature-help' ,13 - { 'L3MON4D3/LuaSnip' , version = '2.*' , build = 'make install_jsregexp' },14 - 'saadparwaiz1/cmp_luasnip' ,15 - 'rafamadriz/friendly-snippets' ,16 - 'onsails/lspkind.nvim' ,19 - local cmp = require 'cmp' 20 - local luasnip = require 'luasnip' 21 - local lspkind = require 'lspkind' 23 - require 'luasnip.loaders.from_vscode' .lazy_load()29 - fetching_timeout = 400 ,32 - autocomplete = false ,33 - completeopt = 'menu,menuone,preview,noselect' ,36 - completion = cmp.config.window.bordered(),37 - documentation = cmp.config.window.bordered(),43 - format = lspkind.cmp_format {49 - nvim_lsp_signature_help = '[sig]' ,51 - nvim_lsp_document_symbol = '[sym]' ,60 - preselect = cmp.PreselectMode.None,61 - snippet = { expand = function ( args ) luasnip.lsp_expand( args.body ) end },63 - ['<c-p>' ] = cmp.mapping.select_prev_item(),64 - ['<c-n>' ] = cmp.mapping.select_next_item(),65 - ['<c-k>' ] = cmp.mapping.select_prev_item(),66 - ['<c-j>' ] = cmp.mapping.select_next_item(),67 - ['<tab>' ] = cmp.mapping( function ( fallback )68 - if cmp.visible() then 69 - cmp.select_next_item()70 - elseif luasnip.expand_or_locally_jumpable() then 71 - luasnip.expand_or_jump()76 - ['<s-tab>' ] = cmp.mapping( function ( fallback )77 - if cmp.visible() then 78 - cmp.select_prev_item()79 - elseif luasnip.locally_jumpable( - 1 ) then 85 - ['<c-b>' ] = cmp.mapping.scroll_docs( - 2 ),86 - ['<c-f>' ] = cmp.mapping.scroll_docs( 2 ),87 - ['<c-u>' ] = cmp.mapping.scroll_docs( - 4 ),88 - ['<c-d>' ] = cmp.mapping.scroll_docs( 4 ),89 - ['<c-space>' ] = cmp.mapping.complete {},90 - ['<esc>' ] = cmp.mapping.abort(),91 - ['<cr>' ] = cmp.mapping.confirm {92 - behaviour = cmp.ConfirmBehavior.Replace,96 - sources = cmp.config.sources {97 - { name = 'nvim_lsp_signature_help' },98 - { name = 'nvim_lsp' },99 - { name = 'nvim_lsp_document_symbol' },100 - { name = 'luasnip' },103 - { name = 'buffer' , keyword_length = 3 },107 - cmp.setup.filetype( 'gitcommit' , {108 - sources = cmp.config.sources {112 - { name = 'buffer' },
neovim/lua/bugabinga/plugins/dressing.lua Modified +2 / −1 text lines
2 2 'stevearc/dressing.nvim' , 'stevearc/dressing.nvim' ,neovim/lua/bugabinga/plugins/hyper.lua Added new file mode 100644+8 / −0 text lines
2 + 'wet-sandwich/hyper.nvim' ,5 + 'nvim-lua/plenary.nvim' ,neovim/lua/bugabinga/plugins/neodev.lua Deleted deleted file mode 100644+0 / −6 text lines
neovim/lua/bugabinga/plugins/specs.lua Modified +36 / −35 text lines
1 - local map = require 'std.map' 2 - local ignored = require 'std.ignored' 1 + local map = require 'std.map' 2 + local ignored = require 'std.ignored' 6 - keys = { '<leader><leader>' , '<leader><leader><leader>' },8 - local specs = require 'specs' 5 + 'KevinSilvester/specs.nvim' ,6 + keys = { '<leader><leader>' , '<leader><leader><leader>' },8 + local specs = require 'specs' 19 - fader = specs.exp_fader,20 - resizer = specs.shrink_resizer22 - ignore_filetypes = ignored.filetypes_kv,23 - ignore_buftypes = ignored.buftypes_kv,19 + fader = specs.exp_fader,20 + resizer = specs.shrink_resizer22 + ignore_filetypes = ignored.filetypes_kv,23 + ignore_buftypes = ignored.buftypes_kv,27 - description = 'Find cursor!' ,29 - keys = '<leader><leader>' ,30 - command = specs.show_specs,27 + description = 'Find cursor!' ,29 + keys = '<leader><leader>' ,30 + command = specs.show_specs,34 34 description = 'Find cursor, for real!' , description = 'Find cursor, for real!' ,36 - keys = '<leader><leader><leader>' ,38 - specs.show_specs{ width = 69 , delay_ms = 69 , inc_ms = 42 }36 + keys = '<leader><leader><leader>' ,37 + command = function ()38 + specs.show_specs { width = 69 , delay_ms = 69 , inc_ms = 42 }neovim/lua/bugabinga/plugins/starter.lua Modified +4 / −2 text lines
52 52 pattern = 'LazyVimStarted' , pattern = 'LazyVimStarted' ,53 53 once = true , once = true ,54 54 command = vim.schedule_wrap( function () command = vim.schedule_wrap( function ()55 - startuptime = require 'lazy' .stats().startuptime55 + if vim.bo.filetype == "starter" then 56 + startuptime = require 'lazy' .stats().startuptimeneovim/lua/bugabinga/plugins/treesj.lua Modified +19 / −17 text lines
1 - local map = require 'std.map' 1 + local map = require 'std.map' 6 - dependencies = { 'nvim-treesitter/nvim-treesitter' },8 - local treesj = require 'treesj' 6 + dependencies = { 'nvim-treesitter/nvim-treesitter' },8 + use_default_keymaps = false ,10 + config = function ( _, opts )11 + local treesj = require 'treesj' 11 - use_default_keymaps = false ,15 + description = 'Toggle Tree Join/Split' ,16 + category = 'editing' ,19 + command = treesj.toggle,15 - description = 'Toggle Tree Join/Split' ,16 - category = 'editing' ,18 - command = treesj.toggle,
neovim/lua/bugabinga/ui.lua Modified +5 / −5 text lines
1 - local display = require 'std.display'
3 1 local NuiPopup = require 'nui.popup' local NuiPopup = require 'nui.popup' 4 2 local NuiText = require 'nui.text' local NuiText = require 'nui.text' 5 3 local NuiLine = require 'nui.line' local NuiLine = require 'nui.line' 30 28 show_tree = function ( tree ) show_tree = function ( tree )31 29 local popup = get_nui_popup() local popup = get_nui_popup()32 30 local bufnr = popup.bufnr local bufnr = popup.bufnr33 - local text, _ = display ( tree )31 + local text = vim . inspect ( tree )35 33 local line_number = 1 local line_number = 1 36 - for line in text:gmatch '[^\r\n]+' do 35 + for line in text:gmatch '[^\r\n]+' do 37 36 local nui_line = NuiLine() local nui_line = NuiLine()38 37 nui_line:append( NuiText( line, 'NormalFloat' ) ) nui_line:append( NuiText( line, 'NormalFloat' ) )39 - nui_line:render( bufnr, - 1 , line_number )39 + nui_line:render( bufnr, namespace , line_number )40 40 line_number = line_number + 1 line_number = line_number + 1 neovim/lua/std/display.lua Deleted deleted file mode 100644+0 / −44 text lines
1 - local icon = require 'std.icon' 2 - local table = require 'std.table' 4 - local function display (value)6 - return 'nil' , 'Special' 9 - local value_type = type (value)11 - if value_type == 'string' then 12 - return icon.quot_left .. ' ' .. value .. ' ' .. icon.quot_right, 'String' 15 - if value_type == 'number' then 16 - return icon.hash .. ' ' .. tostring (value), 'Number' 19 - if value_type == 'boolean' then 20 - local mark = value and icon.checkbox_mark or icon.checkbox_unmark21 - return mark, 'Boolean' 24 - if value_type == 'userdata' then 25 - local ud = icon.user .. icon.data26 - return ud .. ' ' .. tostring (value), 'Identifier' 29 - if value_type == 'thread' then 30 - local thread = icon.thread31 - return thread .. ' ' .. tostring (value), 'Identifier' 34 - if value_type == 'function' then 35 - local fn = icon['function' ]36 - return fn .. ' ' .. tostring (value), 'Function' 39 - if value_type == 'table' then 40 - return table .deep_concat(value, {render_value = display}), 'Identifier'
neovim/lua/std/icon.lua Modified +5 / −5 text lines
6 6 arrow_right = '' , arrow_right = '' ,7 7 branch = '' , branch = '' ,8 8 carriage_return = '␍' , carriage_return = '␍' ,10 10 checkbox_unmark = '' , checkbox_unmark = '' ,11 11 command = '' , command = '' ,13 13 block = '█' , block = '█' ,14 14 data = '' , data = '' ,15 15 diagnostic = '⊙' , diagnostic = '⊙' ,26 26 global = '' , global = '' ,27 27 group = '' , group = '' ,28 28 hash = '' , hash = '' ,30 30 info = '' , info = '' ,31 31 insert = '' , insert = '' ,32 32 lazy = '' , lazy = '' ,41 41 normal = 'Ν' , normal = 'Ν' ,42 42 pending = '' , pending = '' ,43 43 precedes = '❮' , precedes = '❮' ,46 46 replace = '' , replace = '' ,47 47 select = '' , select = '' ,48 48 space = '·' , space = '·' ,neovim/lua/std/ignored.lua Modified +0 / −1 text lines
21 21 local buftypes = {local buftypes = {23 22 'acwrite' , 'acwrite' ,25 24 'neotree' , 'neotree' ,neovim/lua/std/project.lua Modified +27 / −9 text lines
9 9 local cache = {}local cache = {}10 10 local hasher = vim.fn.sha256local hasher = vim.fn.sha25611 11 local markers_to_string = function ( markers )local markers_to_string = function ( markers )12 - return table .deep_concat( markers, {16 - key_value_delimiter = '' ,12 + return vim.inspect( markers )21 14 local create_hash = function ( path, markers )local create_hash = function ( path, markers )22 15 local path_hash = hasher( path ) local path_hash = hasher( path )88 81 local cache_hit = cache_get( path, markers ) local cache_hit = cache_get( path, markers )89 82 if cache_hit then if cache_hit then 83 + debug .print( ' CACHE HIT' , cache_hit )91 84 return cache_hit return cache_hit279 272 return rooter and rooter( path ) or fallback_rooter( path ) return rooter and rooter( path ) or fallback_rooter( path )
276 + local parse_project_configuration = function ()279 + local override_neovim_options = function ( options )282 + local setup = function ()283 + local local_project_config = parse_project_configuration()284 + if vim.tbl_isempty( local_project_config ) then return end 286 + if local_project_config.neovim then 287 + override_neovim_options( local_project_config.neovim )290 + local ok, lazy_core_loader = pcall ( require , 'lazy.core.loader' )291 + if not ok then return end 293 + local old_config = lazy_core_loader.config294 + lazy_core_loader.config = function ( plugin )283 301 find_root = find_root, find_root = find_root,284 302 find_root_by_filetype = find_root_by_filetype, find_root_by_filetype = find_root_by_filetype,285 303 find_project_root = find_project_root, find_project_root = find_project_root,neovim/lua/std/table/deep_concat.lua Deleted deleted file mode 100644+0 / −68 text lines
1 - return function ( some_table, options)2 - options = options or {}5 - some_table = { some_table, 'table' },6 - [ 'options.prefix' ] = {options.prefix, 'string' , true },7 - [ 'options.suffix' ] = {options.suffix, 'string' , true },8 - [ 'options.fill' ] = {options.fill, 'string' , true },9 - [ 'options.key_value_delimiter' ] = {options.key_value_delimiter, 'string' , true },10 - [ 'options.row_delimiter' ] = {options.row_delimiter, 'string' , true },11 - [ 'options.newline' ] = {options.newline, 'string' , true },12 - [ 'options.render_key' ] = {options.render_key, 'function' , true },13 - [ 'options.render_value' ] = {options.render_value, 'function' , true },16 - local prefix = options.prefix or '⎨' 17 - local suffix = options.suffix or '⎬' 18 - local key_value_delimiter = options.key_value_delimiter or ' ≔ ' 19 - local row_delimiter = options.row_delimiter or ',' 20 - local fill = options.fill or ' ' 21 - local newline = options.newline or '\n' 22 - local render_key = options.render_key or function (key) return type (key) == 'number' and ('[' .. key.. ']' ) or key end 23 - local render_value = options.render_value or function (value) return tostring (value):gsub('\n' ,'' ) end 24 - local string_builder = {}25 - local append = function (thing) table .insert (string_builder, thing) end 27 - local function deep_concat_table (tbl, level)29 - if newline then append(fill:rep(level)) end 32 - for key, value in pairs (tbl) do 33 - local next_level = level + 1 34 - if newline then append(fill:rep(next_level)) end 35 - append(render_key(key))36 - append(key_value_delimiter)37 - if type (value) == 'table' then 38 - if vim.tbl_isempty(value) then 41 - elseif vim.tbl_count(value) == 1 then 45 - for k,v in pairs (value) do 46 - append(render_key(k))47 - append(key_value_delimiter)48 - append(render_value(v))54 - deep_concat_table(value, next_level)57 - append(render_value(value))59 - append(row_delimiter)63 - if newline then append(fill:rep(level)) end 66 - deep_concat_table(some_table)67 - return table .concat (string_builder)
neovim/lua/std/table/init.lua Modified +4 / −5 text lines
3 - deep_concat = require 'std.table.deep_concat' ,4 - deep_copy = require 'std.table.deep_copy' ,5 - join = require 'std.table.join' ,3 + deep_copy = require 'std.table.deep_copy' ,4 + join = require 'std.table.join' ,7 - add_reverse_lookup = vim.tbl_add_reverse_lookup,8 - contains = vim.tbl_contains,6 + add_reverse_lookup = vim.tbl_add_reverse_lookup,7 + contains = vim.tbl_contains,9 8 count = vim.tbl_count, count = vim.tbl_count,10 9 deep_extend = vim.tbl_deep_extend, deep_extend = vim.tbl_deep_extend,11 10 extend = vim.tbl_extend, extend = vim.tbl_extend,neovim/spell/nerd.utf-8.add Modified +4 / −0 text lines
neovim/spell/nerd.utf-8.add.spl Modified Binary size (old → new): 278 → 340 bytes.