From ddbbdec27a0e2f62ff420fe9e5da75afd734ac8b Mon Sep 17 00:00:00 2001 From: kaiv2 Date: Tue, 21 Jun 2022 19:06:07 +0800 Subject: [PATCH] feat: add nvim-dap-ui extension (#711) * Extension for nvim-dap-ui * Add nvim-dap-ui extension to README.md * sort * Set file_status option to false --- README.md | 3 ++- lua/lualine/extensions/nvim-dap-ui.lua | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lua/lualine/extensions/nvim-dap-ui.lua diff --git a/README.md b/README.md index 0666378..c1b0cd5 100644 --- a/README.md +++ b/README.md @@ -756,8 +756,9 @@ extensions = {'quickfix'} - fugitive - fzf - man -- nerdtree - neo-tree +- nerdtree +- nvim-dap-ui - nvim-tree - quickfix - symbols-outline diff --git a/lua/lualine/extensions/nvim-dap-ui.lua b/lua/lualine/extensions/nvim-dap-ui.lua new file mode 100644 index 0000000..d129d14 --- /dev/null +++ b/lua/lualine/extensions/nvim-dap-ui.lua @@ -0,0 +1,13 @@ +-- MIT license, see LICENSE for more details. +-- Extension for nvim-dap-ui +local M = {} + +M.sections = { + lualine_a = { { 'filename', file_status = false } } +} + +M.filetypes = { + "dap-repl", "dapui_console", "dapui_watches", "dapui_stacks", "dapui_breakpoints", "dapui_scopes" +} + +return M