dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: puts image.nvim and diagram.nvim into incubator
aa675f3bad37bc262d9975cd1c2b91003cd8664f
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (5)
12 12 : out-of-band plugin manager
15 15 : overrides to built-in lua functions of neovim
18 18 : standard lib. can only depend on itself and neovim apis.
21 21 : config modules, that in aggregation, define all of the configuration and may
22 -only depend on itself, std and plugins.
22 + only depend on itself, std and plugins.
24 24 lua/bugabinga/plugins
25 25 : third party plugins and their config glue integrating it into the config.
31 31 : file type specific config
34 34 : additional treesitter queries
51 -* configure friendly-snippets with blink.cmp
52 -* is it worth integrating yazi into neovim?
53 -* check out <https://github.com/garymjr/nvim-snippets>
54 51 * steal <https://github.com/olrtg/nvim-emmet>
55 -* create skeleton-plugin for default file content based on file type
56 - * user command for creating new file
57 - * :Skeletor java class -> java files with correct package and boilerplate (class, interface, record,...)
58 - * Use <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax> as template syntax
neovim/lua/bugabinga/format.lua
Modified 3 3 local puk
= require 'std.puk' 4 4 local dbg
= require 'std.dbg' 5 5 local map
= require 'std.map' 6 6 local user_command
= require 'std.user_command' 8 -local format = function ()
9 - require 'conform'.format( {
async =
false },
function ( err )
8 +local format = function()
9 + require 'conform'.format({
async =
false },
function(err)
10 10 if err
and dbg.get()
then 11 - vim.print(
'Format failed', err )
11 + vim.print(
'Format failed', err)
15 15 vim.lsp.buf.format {
16 - filter =
function ( client )
16 + filter =
function(client)
17 17 local ok
= client.supports_method
'textDocument/formatting' 18 - if ok
and dbg.get()
then print(
'Using LSP formatter: ' .. client.name )
end 18 + if ok
and dbg.get()
then print(
'Using LSP formatter: ' .. client.name)
end 30 -user_command.Format
'Format the current buffer' ( format )
30 +user_command.Format
'Format the current buffer' (format)
32 32 vim.o.formatexpr
= "v:lua.require'conform'.formatexpr()" 34 -puk.defer
'conform' (
function ( conform )
34 +puk.defer
'conform' (
function(conform)
36 36 formatters_by_ft = {
37 37 toml = {
'taplo' },
50 - prepend_args = {
'--stdin-filepath',
'$FILENAME' },
50 + prepend_args = {
'--features',
'keep-linebreaks,collate-link-defs,outsource-inline-links',
'--stdin-filepath',
'$FILENAME' },
53 53 log_level
= dbg.get()
and vim.log.levels.TRACE
or vim.log.levels.INFO,
neovim/lua/bugabinga/incubator.lua
Modified127 127 puk.defer
'hlchunk' (
function(hlchunk)
128 - require(
'hlchunk').setup({
135 +puk.defer
'image' (
function(image)
138 + processor =
'magick_cli',
139 + window_overlap_clear_ft_ignore = ignored.filetypes,
142 + clear_in_insert_mode =
true,
143 + only_render_image_at_cursor =
true,
146 + editor_only_render_when_focused =
true,
150 +puk.defer
'diagram' (
function(diagram)
neovim/puk.plugins.nuon
Modified311 311 "474ec5d0f220158afa83aaefab32402e710d3032",
319 + "4c51d6202628b3b51e368152c053c3fb5c5f76f2",
327 + "84fe677aa940605ef248f36c0ea23561690c95eb",
neovim/skeleton/lua/plugin.lua
Deleteddeleted file mode 1006443 -local puk = require 'std.puk' 5 -puk.defer'{{ NAME }}'(function({{ NAME }})