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

Commit

Permalink
feat: add new languages in doom_modules file
Browse files Browse the repository at this point in the history
  - Add missing entries for disabling certain plugins

  - Fixed comments formatting in `doom_modules`

  - Lazy-load some new plugins
  • Loading branch information
NTBBloodbath committed Sep 2, 2021
1 parent 367300e commit 3fb7723
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 19 deletions.
41 changes: 23 additions & 18 deletions doom_modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ M.source = debug.getinfo(1, "S").source:sub(2)

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

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

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

-- "comment", -- Better annotations and comments
-- "config", -- Configuration files (JSON, YAML, TOML)
-- "dockerfile", -- Do you like containers, right?
},
utilities = {
-- "lazygit", -- LazyGit integration for Neovim, requires LazyGit
-- "neogit", -- Magit for Neovim
"range-highlight", -- hightlights ranges you have entered in commandline
"range-highlight", -- Hightlights ranges you have entered in commandline
-- "suda", -- Write and read files without sudo permissions
-- "superman", -- Read Unix man pages faster than a speeding bullet!
-- "todo_comments", -- Highlight, list and search todo comments in your projects
},
web = {
-- "colorizer", -- Fastest colorizer for Neovim
-- "firenvim", -- requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
-- "firenvim", -- Requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
-- "restclient", -- A fast Neovim http client
},
}
Expand Down
14 changes: 13 additions & 1 deletion lua/doom/modules/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -478,17 +478,29 @@ packer.startup(function(use)
config = require("doom.modules.config.doom-fire"),
})

local disabled_todo = functions.is_plugin_disabled("todo_comments")
use({
"folke/todo-comments.nvim",
requires = "nvim-lua/plenary.nvim",
config = require("doom.modules.config.doom-todo"),
disable = disabled_todo,
})

local disabled_trouble = functions.is_plugin_disabled("trouble")
use({
"folke/trouble.nvim",
cmd = { "Trouble", "TroubleClose", "TroubleRefresh", "TroubleToggle" },
requires = "kyazdani42/nvim-web-devicons",
config = require("doom.modules.config.doom-trouble"),
disable = disabled_trouble,
})

local disabled_superman = functions.is_plugin_disabled("superman")
use({
"jez/vim-superman",
cmd = "SuperMan",
disable = disabled_superman,
})
use({ "jez/vim-superman" })

-----[[----------------]]-----
--- Custom Plugins ---
Expand Down

0 comments on commit 3fb7723

Please sign in to comment.