inital commit: dotfiles of arch-desktop

This commit is contained in:
2025-07-13 19:23:46 +02:00
commit e55f88606c
43 changed files with 3250 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
return {
"dart-lang/dart-vim-plugin",
config = function()
vim.g.dart_html_in_string = true
vim.g.dart_format_on_save = true
end,
}
@@ -0,0 +1,51 @@
return {
"nvim-flutter/flutter-tools.nvim",
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
-- "stevearc/dressing.nvim", -- optional for vim.ui.select
},
config = function()
require("flutter-tools").setup({
-- (uncomment below line for windows only)
-- flutter_path = "home/flutter/bin/flutter.bat",
flutter_path = "/home/llinde/development/flutter/bin/flutter", -- <-- this takes priority over the lookup
-- flutter_lookup_cmd = "dirname $(which flutter)", -- example "dirname $(which flutter)" or "asdf where flutter"
-- lsp = {
-- cmd = { "/usr/lib/flutter/bin/cache/dart-sdk/bin/dart", "language-server", "--protocol=lsp" },
-- },
debugger = {
-- make these two params true to enable debug mode
enabled = true,
run_via_dap = true,
register_configurations = function(_)
require("dap").adapters.dart = {
type = "executable",
command = vim.fn.stdpath("data") .. "/mason/bin/dart-debug-adapter",
args = { "flutter" },
}
require("dap").configurations.dart = {
{
type = "dart",
request = "launch",
name = "Launch flutter",
dartSdkPath = "home/flutter/bin/cache/dart-sdk/",
flutterSdkPath = "home/flutter",
program = "${workspaceFolder}/lib/main.dart",
cwd = "${workspaceFolder}",
},
}
-- uncomment below line if you've launch.json file already in your vscode setup
-- require("dap.ext.vscode").load_launchjs()
end,
},
dev_log = {
-- toggle it when you run without DAP
enabled = false,
open_cmd = "tabedit",
},
})
end,
}