Better code readability

This commit is contained in:
Jiří Štefka 2023-03-10 20:18:40 +01:00
parent 04858218cd
commit 71445b6768

View file

@ -210,11 +210,13 @@ local config = {
-- Dap-UI -- Dap-UI
["<leader>du"] = { function() require("dapui").toggle() end, desc = "Toggle Debugger UI" }, ["<leader>du"] = { function() require("dapui").toggle() end, desc = "Toggle Debugger UI" },
["<leader>dh"] = { function() require("dap.ui.widgets").hover() end, desc = "Debugger Hover" }, ["<leader>dh"] = { function() require("dap.ui.widgets").hover() end, desc = "Debugger Hover" },
-- Mardown preview -- Mardown preview
["<leader>m"] = { name = "Markdown" }, ["<leader>m"] = { name = "Markdown" },
["<leader>mp"] = { "<cmd>MarkdownPreview<cr>", desc = "Markdown preview" }, ["<leader>mp"] = { "<cmd>MarkdownPreview<cr>", desc = "Markdown preview" },
["<leader>ms"] = { "<cmd>MarkdownPreviewStop<cr>", desc = "Markdown preview stop" }, ["<leader>ms"] = { "<cmd>MarkdownPreviewStop<cr>", desc = "Markdown preview stop" },
["<leader>mt"] = { "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown preview toggle" }, ["<leader>mt"] = { "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown preview toggle" },
-- Vimtex mappings -- Vimtex mappings
["<leader>x"] = { name = "LaTeX" }, ["<leader>x"] = { name = "LaTeX" },
["<leader>xi"] = { "<cmd>VimtexInfo<cr>", desc = "Info" }, ["<leader>xi"] = { "<cmd>VimtexInfo<cr>", desc = "Info" },
@ -240,6 +242,7 @@ local config = {
["<leader>xs"] = { "<cmd>VimtexToggleMain<cr>", desc = "Set current file as 'current project'" }, ["<leader>xs"] = { "<cmd>VimtexToggleMain<cr>", desc = "Set current file as 'current project'" },
["<leader>xa"] = { "<cmd>VimtexContextMenu<cr>", desc = "Show context menu" }, ["<leader>xa"] = { "<cmd>VimtexContextMenu<cr>", desc = "Show context menu" },
-- Trouble, Taglist
["<leader>ft"] = { desc = false, name = "Trouble, Tagbar" }, ["<leader>ft"] = { desc = false, name = "Trouble, Tagbar" },
-- Taglist -- Taglist
["<leader>ftT"] = { "<cmd>TlistToggle<cr>", desc = "Tagbar toggle " }, ["<leader>ftT"] = { "<cmd>TlistToggle<cr>", desc = "Tagbar toggle " },