Marco
6737dcf50a
neovim config with support for flutter, rust and go lsp. some remaps. some settings.
22 lines
795 B
Lua
22 lines
795 B
Lua
local dap = require('dap')
|
|
|
|
dap.adapters.dart = {
|
|
type = "executable",
|
|
-- As of this writing, this functionality is open for review in https://github.com/flutter/flutter/pull/91802
|
|
command = "flutter",
|
|
args = {"debug_adapter"}
|
|
}
|
|
dap.configurations.dart = {
|
|
{
|
|
type = "dart",
|
|
request = "launch",
|
|
name = "Launch Flutter Program",
|
|
-- The nvim-dap plugin populates this variable with the filename of the current buffer
|
|
program = "./lib/main.dart",
|
|
-- The nvim-dap plugin populates this variable with the editor's current working directory
|
|
cwd = "${workspaceFolder}",
|
|
-- This gets forwarded to the Flutter CLI tool, substitute `linux` for whatever device you wish to launch
|
|
toolArgs = {"-d", "linux"}
|
|
}
|
|
}
|