Migrate to esensar/nvim-dev-container
parent
939a9bca01
commit
835f6f44f8
|
@ -46,7 +46,7 @@ return require("packer").startup({
|
|||
use("rcarriga/nvim-dap-ui") -- UI components for DAP
|
||||
use("theHamsta/nvim-dap-virtual-text") -- Virtual text display for DAP
|
||||
use("diepm/vim-rest-console") -- REST console for vim
|
||||
use("jamestthompson3/nvim-remote-containers") -- devcontainer.json support
|
||||
use("esensar/nvim-dev-container") -- devcontainer.json support
|
||||
use("jbyuki/one-small-step-for-vimkind") -- Debugger for Nvim-Lua
|
||||
|
||||
-- Snippets
|
||||
|
|
|
@ -18,7 +18,7 @@ function M.new_bottom_split(opts)
|
|||
end
|
||||
|
||||
function M.new_centered_popup(opts)
|
||||
local split = nui_popup(vim.tbl_extend("force", {
|
||||
local popup = nui_popup(vim.tbl_extend("force", {
|
||||
enter = true,
|
||||
focusable = true,
|
||||
border = {
|
||||
|
@ -31,9 +31,9 @@ function M.new_centered_popup(opts)
|
|||
},
|
||||
}, opts))
|
||||
|
||||
split:mount()
|
||||
popup:mount()
|
||||
|
||||
return split
|
||||
return popup
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -176,7 +176,28 @@ local statuslines = {
|
|||
.. (first_lsp_message.title or "")
|
||||
.. "%*"
|
||||
end
|
||||
-- TODO: Add current container if devcontainer is used
|
||||
|
||||
local devcontainer_build_status = require("devcontainer.status").get_status().build_status
|
||||
local build_status_last = devcontainer_build_status[#devcontainer_build_status]
|
||||
if build_status_last and build_status_last.running then
|
||||
local build_lines = build_status_last.commands_run
|
||||
local command_info = build_lines[#build_lines]
|
||||
local command_status_line = ""
|
||||
if command_info then
|
||||
command_status_line = "(" .. string.sub(command_info, 0, 10) .. ")"
|
||||
end
|
||||
status = status
|
||||
.. " %4*"
|
||||
.. "["
|
||||
.. (build_status_last.current_step or "")
|
||||
.. "/"
|
||||
.. (build_status_last.step_count or "")
|
||||
.. "]"
|
||||
.. (build_status_last.progress and "(" .. build_status_last.progress .. "%%)" or "")
|
||||
.. " "
|
||||
.. command_status_line
|
||||
.. "%*"
|
||||
end
|
||||
return status
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
-- Devcontainer setup
|
||||
require("devcontainer").setup({})
|
Loading…
Reference in New Issue