add cmd popup window
This commit is contained in:
parent
92e60d0698
commit
4fd57ec9c4
5 changed files with 25 additions and 2 deletions
20
lua/plugins/cmd_popup.lua
Normal file
20
lua/plugins/cmd_popup.lua
Normal 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",
|
||||
}
|
||||
}
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue