add cmd popup window

This commit is contained in:
2026-04-23 10:43:32 +02:00
parent 92e60d0698
commit 4fd57ec9c4
5 changed files with 25 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -16,9 +16,12 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "0a3b42c3e503df87aef6d6513e13148381495c3a" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "0a3b42c3e503df87aef6d6513e13148381495c3a" },
"mason.nvim": { "branch": "main", "commit": "b03fb0f20bc1d43daf558cda981a2be22e73ac42" }, "mason.nvim": { "branch": "main", "commit": "b03fb0f20bc1d43daf558cda981a2be22e73ac42" },
"mini.ai": { "branch": "main", "commit": "bfb26d9072670c3aaefab0f53024b2f3729c8083" }, "mini.ai": { "branch": "main", "commit": "bfb26d9072670c3aaefab0f53024b2f3729c8083" },
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" }, "nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" }, "nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
"nvim-lspconfig": { "branch": "master", "commit": "4b7fbaa239c5db6b36f424a4521ca9f1a401be33" }, "nvim-lspconfig": { "branch": "master", "commit": "4b7fbaa239c5db6b36f424a4521ca9f1a401be33" },
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" }, "nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },

BIN
lua/.DS_Store vendored Normal file

Binary file not shown.

20
lua/plugins/cmd_popup.lua Normal file
View File

@@ -0,0 +1,20 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
opts = {
cmdline = {
view = "cmdline_popup", -- This ensures it's a popup and not at the bottom
},
presets = {
bottom_search = false, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- render entities like :help in a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = true, -- add a border to hover docs and signature help
},
},
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
}
}

View File

@@ -63,7 +63,7 @@ return {
-- Simple Aliases -- Simple Aliases
-- user_command("FRun", "FlutterRun", {}) -- user_command("FRun", "FlutterRun", {})
-- user_command("FRun", "FlutterRun --color", {}) -- user_command("FRun", "FlutterRun --color", {})
user_command("FRun", "FlutterRun", {}) user_command("FRun", "FlutterRun --web-port 1995", {})
user_command("FReload", "FlutterReload", {}) user_command("FReload", "FlutterReload", {})
user_command("FRestart", "FlutterRestart", {}) user_command("FRestart", "FlutterRestart", {})
@@ -75,7 +75,7 @@ return {
-- Target-specific Run Command -- Target-specific Run Command
user_command("FRunT", function(opts) user_command("FRunT", function(opts)
vim.cmd("FlutterRun --target=" .. opts.args) vim.cmd("FlutterRun --web-port 1995 --target=" .. opts.args)
end, { end, {
nargs = 1, nargs = 1,
complete = "file", complete = "file",