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