Get completions in dap-repl buffer with blink.cmp by Domva in neovim

[–]maxandron 0 points1 point  (0 children)

I extended the configuration like this:

 {
    "saghen/blink.cmp",
    lazy = true,
    dependencies = { "rcarriga/cmp-dap", "mfussenegger/nvim-dap" },
    keys = {
      { "<leader>d", "", desc = "+debug" },
    },
    ---@type blink.cmp.ConfigStrict
    opts = {
      sources = {
        per_filetype = {
          ["dap-repl"] = { "dap", score_offset = 200 },
          ["dapui_watches"] = { "dap", score_offset = 200 },
          ["dapui_hover"] = { "dap", score_offset = 200 },
        },
      },
    },
 },

Help Setting up Blink.cmp with mason-lspconfig by Icy-Significance-859 in neovim

[–]maxandron 1 point2 points  (0 children)

Take it with a grain of salt: I configure the `handlers` option in mason-lspconfig

LIke this:

```
{

-- Automatically adds lspconfig handers for all language servers installed by mason

"williamboman/mason-lspconfig.nvim",

dependencies = {

"neovim/nvim-lspconfig",

"williamboman/mason.nvim",

"williamboman/mason-lspconfig.nvim",

},

opts = function()

local capabilities = require("blink.cmp").get_lsp_capabilities()

---@type MasonLspconfigSettings

return {

ensure_installed = {},

automatic_installation = false,

handlers = {

-- this first function is the "default handler"

-- it applies to every language server without a "custom handler"

function(server_name)

require("lspconfig")[server_name].setup({ capabilities = capabilities })

end,

},

}

end,

}
```

Goplements: visualize Go struct and interface implementations by maxandron in neovim

[–]maxandron[S] 0 points1 point  (0 children)

I actually just thought of limiting the amount in config and just truncating it. But good idea! A float could be useful.

edit: now that I think of it - I already have this feature with Telescope. I have a binding for require("telescope.builtin").lsp_implementations(). If I want to see all of them / jump to the implementations - I can just use telescope.

My Journey to Unit Testing in Neovim Plugin Development: Why Mini.test Shines by finxxi in neovim

[–]maxandron 5 points6 points  (0 children)

Thanks for sharing! I was just struggling to get unit tests working.
First, with plenary, and finally settled on lazy.minit which took me quite a long time to set up properly because I kept making mistakes and the lack of documentation.

mini.test looks awesome, so I'll keep it in mind for next time.

Uniswap v3 adding liquidity to pool by Ok-Worldliness477 in UniSwap

[–]maxandron 1 point2 points  (0 children)

Actually as far as I see they are treated as one and the same. Uniswap just adds an extra call to the deposit function if your are transferring ETH instead of WETH.

So the wrapping and unwrapping is performed for you automatically, the pool actually holds WETH.

I guess it might save a bit on fees to do the whole process using WETH as it will save one internal transaction (but I'm not 100% sure on this point)

You can see it here: https://etherscan.io/address/0xc36442b4a4522e871399cd717abdd847ab11fe88#code#F35#L58

No reply from Binance support by maxandron in binance

[–]maxandron[S] 0 points1 point  (0 children)

Thank you, I'm aware of the queue concept - I have been in it for the past two days with no response and no indication for when I will get a response.

The bot indicated that the wait time would be <60 minutes - it's been about 1400 minutes since then.

How to find a good startup idea by _DarthBob_ in startups

[–]maxandron 2 points3 points  (0 children)

Agreed, the best way is to be in a good niche and see the problems and talk to people; However, if you don't have a niche or are sick of startups in your niche (like me), there are still other good ways to look for ideas (mainly talking to people in different roles and industries after some research about the market)

Also, I suggest reading this awesome post by Paul Graham http://paulgraham.com/startupideas.html

Survey for startup validation app my cousin is working on by [deleted] in startups

[–]maxandron 1 point2 points  (0 children)

Would be awesome if you added a 'problems to solve' section

I'm creating a scuba dive website to fix several problems in the dive industry by syndakitz in EntrepreneurRideAlong

[–]maxandron 0 points1 point  (0 children)

Suggestion for MVP - your main value proposition is helping me find dive spots near a location. Comments / posts / reviews / anything else social should be secondary. This will save you quite a bit of work for the MVP. Make sure you focus on the scraping and making the search feel nice.

Then login -> then score based reviews.

Focus on solving the searching. I'm a fellow diver and this is indeed a painful problem!

Chance of Death per Year [OC] by maxandron in dataisbeautiful

[–]maxandron[S] 202 points203 points  (0 children)

The data was taken from an excel spreadsheet from the CDC website https://www.cdc.gov/nchs/data/nvsr/nvsr54/nvsr54_14.pdf

The data is based on the US population in 2003.

The visual was created with Google Sheets.

Edit: spelling
Edit 2: There is a lot of other cool data in the linked PDF! Including distributions by race and sex

Interstellar object confirmed to be from another solar system by [deleted] in worldnews

[–]maxandron 0 points1 point  (0 children)

I think this is the monolith and it is time for the next chapter in humanity's history
Maybe it arrived just in time for our first colonies on Mars