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

Commit d0ae4b5

Browse files
chore: format source code
1 parent d27a3b3 commit d0ae4b5

File tree

8 files changed

+48
-50
lines changed

8 files changed

+48
-50
lines changed

doom_modules.lua

Lines changed: 18 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,20 +30,20 @@ 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", -- LSP 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)
4848
},
4949
langs = {
@@ -58,7 +58,7 @@ M.modules = {
5858

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

@@ -74,14 +74,14 @@ M.modules = {
7474
utilities = {
7575
-- "lazygit", -- LazyGit integration for Neovim, requires LazyGit
7676
-- "neogit", -- Magit for Neovim
77-
"range-highlight", -- hightlights ranges you have entered in commandline
77+
"range-highlight", -- hightlights ranges you have entered in commandline
7878
-- "suda", -- Write and read files without sudo permissions
7979
},
8080
web = {
8181
-- "colorizer", -- Fastest colorizer for Neovim
8282
-- "firenvim", -- requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
8383
-- "restclient", -- A fast Neovim http client
84-
}
84+
},
8585
}
8686

8787
return M

lua/doom/core/config/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ if ok then
411411
M.config = ret.config
412412
M.source = ret.source
413413
else
414-
ok, ret = pcall(dofile, system.doom_configs_root.."/doom_config.lua")
414+
ok, ret = pcall(dofile, system.doom_configs_root .. "/doom_config.lua")
415415
if ok then
416416
M.config = ret.config
417417
M.source = ret.source

lua/doom/core/config/modules.lua

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ local M = {}
1111

1212
M.modules = {
1313
ui = {
14-
"dashboard", -- Start screen
14+
"dashboard", -- Start screen
1515
-- "doom-themes", -- Additional doom emacs' colorschemes
1616
-- "indentlines", -- Show indent lines
1717
-- "show_registers", -- popup that shows register contents
18-
"statusline", -- Statusline
19-
"tabline", -- Tabline, shows your buffers list at top
20-
"which-key", -- Keybindings popup menu like Emacs' guide-key
18+
"statusline", -- Statusline
19+
"tabline", -- Tabline, shows your buffers list at top
20+
"which-key", -- Keybindings popup menu like Emacs' guide-key
2121
-- "zen", -- Distraction free environment
2222
},
2323
doom = {
@@ -26,20 +26,20 @@ M.modules = {
2626
-- "runner", -- Open a REPL for the current language or run the current file
2727
},
2828
editor = {
29-
"autopairs", -- Autopairs
30-
"auto-session", -- A small automated session manager for Neovim
31-
"dap", -- Debug Adapter Protocol
29+
"autopairs", -- Autopairs
30+
"auto-session", -- A small automated session manager for Neovim
31+
"dap", -- Debug Adapter Protocol
3232
-- "editorconfig", -- EditorConfig support for Neovim
33-
"explorer", -- Tree explorer
34-
"formatter", -- File formatting
35-
"gitsigns", -- Git signs
36-
"kommentary", -- Comments plugin
37-
"lsp", -- Language Server Protocols
33+
"explorer", -- Tree explorer
34+
"formatter", -- File formatting
35+
"gitsigns", -- Git signs
36+
"kommentary", -- Comments plugin
37+
"lsp", -- Language Server Protocols
3838
-- "minimap", -- Code minimap, requires github.com/wfxr/code-minimap
3939
-- "ranger", -- Ranger File Browser, requires ranger file browser
40-
"snippets", -- LSP snippets
41-
"symbols", -- LSP symbols and tags
42-
"telescope", -- Highly extendable fuzzy finder over lists
40+
"snippets", -- LSP snippets
41+
"symbols", -- LSP symbols and tags
42+
"telescope", -- Highly extendable fuzzy finder over lists
4343
-- "terminal", -- Terminal for Neovim (NOTE: needed for runner and compiler)
4444
},
4545
langs = {
@@ -54,7 +54,7 @@ M.modules = {
5454

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

@@ -70,14 +70,14 @@ M.modules = {
7070
utilities = {
7171
-- "lazygit", -- LazyGit integration for Neovim, requires LazyGit
7272
-- "neogit", -- Magit for Neovim
73-
"range-highlight", -- hightlights ranges you have entered in commandline
73+
"range-highlight", -- hightlights ranges you have entered in commandline
7474
-- "suda", -- Write and read files without sudo permissions
7575
},
7676
web = {
7777
-- "colorizer", -- Fastest colorizer for Neovim
7878
-- "firenvim", -- requires firenvim browser extension; change fontsize by increasing guifontsize in doom_config
7979
-- "restclient", -- A fast Neovim http client
80-
}
80+
},
8181
}
8282

8383
M.source = nil
@@ -93,7 +93,7 @@ if ok then
9393
M.modules = ret.modules
9494
M.source = ret.source
9595
else
96-
ok, ret = pcall(dofile, system.doom_configs_root.."/doom_modules.lua")
96+
ok, ret = pcall(dofile, system.doom_configs_root .. "/doom_modules.lua")
9797
if ok then
9898
M.modules = ret.modules
9999
M.source = ret.source

lua/doom/core/config/userplugins.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if ok then
2323
M.plugins = ret.plugins
2424
M.source = ret.source
2525
else
26-
ok, ret = pcall(dofile, system.doom_configs_root.."/doom_userplugins.lua")
26+
ok, ret = pcall(dofile, system.doom_configs_root .. "/doom_userplugins.lua")
2727
if ok then
2828
M.plugins = ret.plugins
2929
M.source = ret.source

lua/doom/core/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ for i = 1, #core_modules, 1 do
1515
require("doom.core.settings").custom_options()
1616
elseif core_modules[i] == "config" then
1717
-- Automatically install language servers
18-
require("doom.core.config").install_servers(
19-
require("doom.core.config.modules").modules.langs
20-
)
18+
require("doom.core.config").install_servers(require("doom.core.config.modules").modules.langs)
2119
-- Automatically install language DAP clients
2220
require("doom.core.config").install_dap_clients(
2321
require("doom.core.config.modules").modules.langs

lua/doom/core/system/init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
local M = {}
88
local stdpath = vim.fn.stdpath
9-
local config_dir = stdpath("config"):match(".*[/\\]"):sub(1,-2)
9+
local config_dir = stdpath("config"):match(".*[/\\]"):sub(1, -2)
1010

11-
M.sep = package.config:sub(1,1)
11+
M.sep = package.config:sub(1, 1)
1212

1313
-- The doom-nvim root directory, works as a fallback for looking Doom Nvim configurations
1414
-- in case that doom_configs_root directory does not exists.
1515
M.doom_root = stdpath("config")
1616
-- The doom-nvim configurations root directory
17-
M.doom_configs_root = table.concat({config_dir, "doom-nvim"}, M.sep)
17+
M.doom_configs_root = table.concat({ config_dir, "doom-nvim" }, M.sep)
1818
local testdir = vim.loop.fs_opendir(M.doom_configs_root)
1919
if testdir then
2020
vim.loop.fs_closedir(testdir)
2121
else
2222
M.doom_configs_root = stdpath("config")
2323
end
2424
-- The doom-nvim logs file path
25-
M.doom_logs = table.concat({stdpath("data"), "doom.log"}, M.sep)
25+
M.doom_logs = table.concat({ stdpath("data"), "doom.log" }, M.sep)
2626
-- The doom-nvim bug report file path
27-
M.doom_report = table.concat({stdpath("data"), "doom_report.md"}, M.sep)
27+
M.doom_report = table.concat({ stdpath("data"), "doom_report.md" }, M.sep)
2828
-- The git workspace for doom-nvim, e.g. 'git -C /home/JohnDoe/.config/nvim'
2929
M.git_workspace = string.format("git -C %s", stdpath("config"))
3030

lua/doom/extras/logging/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ local ok, ret = pcall(require, "doom_config")
1818
if ok then
1919
logging_level = ret.config.doom.logging or logging_level
2020
else
21-
ok, ret = pcall(dofile, system.doom_configs_root.."/doom_config.lua")
21+
ok, ret = pcall(dofile, system.doom_configs_root .. "/doom_config.lua")
2222
if ok then
2323
logging_level = ret.config.doom.logging or logging_level
2424
end
@@ -43,7 +43,7 @@ local default_config = {
4343

4444
-- Any messages above this level will be logged.
4545
-- defaults to info
46-
level = logging_level;
46+
level = logging_level,
4747

4848
-- Level configuration
4949
modes = {

lua/doom/utils/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ else
6464
if ok then
6565
config = ret.config
6666
else
67-
ok, ret = pcall(dofile, system.doom_configs_root.."/doom_config.lua")
67+
ok, ret = pcall(dofile, system.doom_configs_root .. "/doom_config.lua")
6868
if ok then
6969
config = ret.config
7070
end

0 commit comments

Comments
 (0)