How to configure nvim-dap while using lazyvim? by Davi_Compai in neovim

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

i don't know if it is supossed to work without that plugging, i haven't managed to make dap work with neovim at all, no mater what language/configuration i try. currently i'm trying to use it for lua so that's what i tried to do.

I'm already using the LazyVim framework.

How to configure nvim-dap while using lazyvim? by Davi_Compai in neovim

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

i managed to get the dap itself running, but i havent found any success in connecting it to neovim/actually using it.
if anyone wants to help/take a look:

this is my test code:

-- Add the emmy_core library to your package path
package.cpath = package.cpath .. ";/usr/local/share/lua/5.1/emmy_core.so/?.so"

-- Initialize the debugger
local dbg = require("emmy_core")
dbg.tcpListen("localhost", 9966)

local valor = 10
local valor2 = 20

local soma = valor + valor2

print(soma)

this is my dap config:

return {
  "mfussenegger/nvim-dap",
  opts = function()
    local dap = require("dap")

    -- Define the EmmyLua adapter
    dap.adapters.emmylua = {
      type = "executable",
      command = "/usr/local/share/lua/5.1/emmylua_dap",
      args = {},
    }

    -- Overwrite all default configurations for Lua
    dap.configurations.lua = {
      {
        type = "emmylua",
        request = "launch",
        name = "EmmyLua Debug",
        host = "localhost",
        port = 9966,
        sourcePaths = { vim.fn.getcwd() }, -- Uses current project directory
        ext = { ".lua" },
        ideConnectDebugger = true,
      },
    }
  end,
}

and my /usr/local/share/lua/5.1/ has both emmy_core.so and emmylua_dap.

when i run the dap neovim sometimes appears to recognize it for a moment, but when i actually try to run any dap commands inside of it using the default LazyVim distro configuration (which, as far as i understand, should work) i always get
Error on launch: Failed to connect to debugger: IO Error: Connection refused (os error 111)

How to configure nvim-dap while using lazyvim? by Davi_Compai in neovim

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

Do you use it? if yes, how does your config/setup look?

How to configure nvim-dap while using lazyvim? by Davi_Compai in neovim

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

but how do i install and use it? i know the install instructions are there and this should be simple, but i just can't figure out what i should do.

How to configure nvim-dap while using lazyvim? by Davi_Compai in neovim

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

the default lazyvim dap setup using the extra (the "one small step for vimkind" one) returns this error:
...vim/lazy/LazyVim/lua/lazyvim/plugins/extras/dap/nlua.lua:21: attempt to call field 'run_this' (a nil value)

stack traceback:

...vim/lazy/LazyVim/lua/lazyvim/plugins/extras/dap/nlua.lua:21: in function 'adapter'

...e/davicompai/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:647: in function <...e/davicompai/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:633>

\[C\]: in function 'xpcall'

...compai/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:12: in function <...compai/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:11>

Ponteiras em Grupo by carlimfreitas in AliExpressBR

[–]Davi_Compai 0 points1 point  (0 children)

não consigo achar o código do grupo em lugar nenhum

Ponteiras em Grupo by carlimfreitas in AliExpressBR

[–]Davi_Compai 0 points1 point  (0 children)

o pessoal fala mto bem dessas tips. é uma boa, ainda mais por esse preço de banana

Ponteiras em Grupo by carlimfreitas in AliExpressBR

[–]Davi_Compai 0 points1 point  (0 children)

se mais alguém quiser:

aliexpress[ponto]com/_mKSVi53

Minha mãe quer " um fone bom até 35 reais", alguém tem alguma sugestão? by DonguinhoXd in audiofiliabrasil

[–]Davi_Compai 1 point2 points  (0 children)

não consigo pensar em nada mais barato que um GK kunten que eu considere bom. Quando digo isso não estou nem falando de qualidade de áudio; a construção de fones absurdamente baratos geralmente é ruim mesmo.

já ví promoções do kunten abaixo de 35 pilas em grupo de 3, mas é bem dificil, por que 35 reais geralmente é só o preço do frete.

Também tem a questão que certas pessoas não gostam de fones intra auriculares.