Skip Navigation
Mason Markdown Formatting
  • For autoformatting, try an autocmd:

    autocmd BufWritePre * lua vim.lsp.buf.format()
    

    Or alternatively, I use:

    autocmd BufWritePre * lua require("utils").format()
    
    -- Formats the current buffer
    function utils.format()
      local whitelist = { "python", "rust" }
      if vim.tbl_contains(whitelist, vim.bo.filetype) then
        vim.lsp.buf.format()
      end
    end
    
  • cmp comparators issues
  • Not sure if this helps, but here's my ordering:

            sorting = {
              priority_weight = 2,
              comparators = {
                require("copilot_cmp.comparators").prioritize,
                compare.offset,
                compare.exact,
                compare.recently_used,
                compare.score,
                compare.scopes,
                compare.locality,
                compare.kind,
                compare.sort_text,
                compare.length,
                compare.order,
              },
            },
    

    ...Realistically copilot is so good that it knows what the next word I'm completing is without even typing in a single character, so this doesn't bother me like it used to.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MU
    muntoo @lemmy.world
    Posts 0
    Comments 4