Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 3fb7723

Browse files
committed
feat: add new languages in doom_modules file
- Add missing entries for disabling certain plugins - Fixed comments formatting in `doom_modules` - Lazy-load some new plugins
1 parent 367300e commit 3fb7723

File tree

2 files changed

+36
-19
lines changed

2 files changed

+36
-19
lines changed

doom_modules.lua

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ M.source = debug.getinfo(1, "S").source:sub(2)
1515

1616
M.modules = {
1717
ui = {
18-
"dashboard", -- Start screen
18+
"dashboard", -- Start screen
1919
-- "doom-themes", -- Additional doom emacs' colorschemes
2020
-- "indentlines", -- Show indent lines
2121
-- "show_registers", -- popup that shows register contents
22-
"statusline", -- Statusline
23-
"tabline", -- Tabline, shows your buffers list at top
24-
"which-key", -- Keybindings popup menu like Emacs' guide-key
22+
"statusline", -- Statusline
23+
"tabline", -- Tabline, shows your buffers list at top
24+
"which-key", -- Keybindings popup menu like Emacs' guide-key
2525
-- "zen", -- Distraction free environment
2626
},
2727
doom = {
@@ -30,21 +30,22 @@ M.modules = {
3030
-- "runner", -- Open a REPL for the current language or run the current file
3131
},
3232
editor = {
33-
"autopairs", -- Autopairs
34-
"auto-session", -- A small automated session manager for Neovim
35-
"dap", -- Debug Adapter Protocol
33+
"autopairs", -- Autopairs
34+
"auto-session", -- A small automated session manager for Neovim
35+
"dap", -- Debug Adapter Protocol
3636
-- "editorconfig", -- EditorConfig support for Neovim
37-
"explorer", -- Tree explorer
38-
"formatter", -- File formatting
39-
"gitsigns", -- Git signs
40-
"kommentary", -- Comments plugin
41-
"lsp", -- Language Server Protocols
37+
"explorer", -- Tree explorer
38+
"formatter", -- File formatting
39+
"gitsigns", -- Git signs
40+
"kommentary", -- Comments plugin
41+
"lsp", -- Language Server Protocols
4242
-- "minimap", -- Code minimap, requires github.com/wfxr/code-minimap
4343
-- "ranger", -- Ranger File Browser, requires ranger file browser
44-
"snippets", -- LSP snippets
45-
"symbols", -- LSP symbols and tags
46-
"telescope", -- Highly extendable fuzzy finder over lists
44+
"snippets", -- Code snippets
45+
"symbols", -- LSP symbols and tags
46+
"telescope", -- Highly extendable fuzzy finder over lists
4747
-- "terminal", -- Terminal for Neovim (NOTE: needed for runner and compiler)
48+
-- "trouble", -- A pretty list to help you solve all the trouble your code is causing.
4849
},
4950
langs = {
5051
-- To enable the language server for a language just add the +lsp flag
@@ -58,28 +59,32 @@ M.modules = {
5859

5960
-- "bash", -- The terminal gods language
6061
-- "elixir", -- Build scalable and maintainable software
61-
"lua", -- Support for our gods language
62+
"lua", -- Support for our gods language
6263
-- "python +lsp", -- Python support + lsp
6364
-- "ruby", -- Look ma, I love the gems!
6465

66+
-- "c", -- Core dumped: segmentation fault
6567
-- "cpp", -- C++ support
6668
-- "go", -- Hello, gopher
6769
-- "haskell", -- Because Functional programming is fun, isn't it?
6870
-- "java", -- Java support
6971
-- "rust +lsp", -- Let's get rusty!
7072

73+
-- "comment", -- Better annotations and comments
7174
-- "config", -- Configuration files (JSON, YAML, TOML)
7275
-- "dockerfile", -- Do you like containers, right?
7376
},
7477
utilities = {
7578
-- "lazygit", -- LazyGit integration for Neovim, requires LazyGit
7679
-- "neogit", -- Magit for Neovim
77-
"range-highlight", -- hightlights ranges you have entered in commandline
80+
"range-highlight", -- Hightlights ranges you have entered in commandline
7881
-- "suda", -- Write and read files without sudo permissions
82+
-- "superman", -- Read Unix man pages faster than a speeding bullet!
83+
-- "todo_comments", -- Highlight, list and search todo comments in your projects
7984
},
8085
web = {
8186
-- "colorizer", -- Fastest colorizer for Neovim
82-
-- "firenvim", -- requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
87+
-- "firenvim", -- Requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
8388
-- "restclient", -- A fast Neovim http client
8489
},
8590
}

lua/doom/modules/init.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,17 +478,29 @@ packer.startup(function(use)
478478
config = require("doom.modules.config.doom-fire"),
479479
})
480480

481+
local disabled_todo = functions.is_plugin_disabled("todo_comments")
481482
use({
482483
"folke/todo-comments.nvim",
483484
requires = "nvim-lua/plenary.nvim",
484485
config = require("doom.modules.config.doom-todo"),
486+
disable = disabled_todo,
485487
})
488+
489+
local disabled_trouble = functions.is_plugin_disabled("trouble")
486490
use({
487491
"folke/trouble.nvim",
492+
cmd = { "Trouble", "TroubleClose", "TroubleRefresh", "TroubleToggle" },
488493
requires = "kyazdani42/nvim-web-devicons",
489494
config = require("doom.modules.config.doom-trouble"),
495+
disable = disabled_trouble,
496+
})
497+
498+
local disabled_superman = functions.is_plugin_disabled("superman")
499+
use({
500+
"jez/vim-superman",
501+
cmd = "SuperMan",
502+
disable = disabled_superman,
490503
})
491-
use({ "jez/vim-superman" })
492504

493505
-----[[----------------]]-----
494506
--- Custom Plugins ---

0 commit comments

Comments
 (0)