aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-05-13 15:52:07 +0200
committersrdusr <trevorgray@srdusr.com>2023-05-13 15:52:07 +0200
commitb1c5565924725f7c94e0cd8677ea8914aa0aba45 (patch)
treecee78973c5eabacb9ac6a49386ace3902cd85282 /.config/nvim/init.lua
parent0af6d5533bc0fbcd8038ce134d1bc7b68a9cfbd5 (diff)
parent11a87e76c1cc11e9f7cb1be98a789463e57e827c (diff)
downloaddotfiles-b1c5565924725f7c94e0cd8677ea8914aa0aba45.tar.gz
dotfiles-b1c5565924725f7c94e0cd8677ea8914aa0aba45.zip
Merge commit '7de320718f2b5ee487de4b9fe04661a55674cf37'
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua58
1 files changed, 27 insertions, 31 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 4a5f5eb..b9c54c0 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -11,9 +11,7 @@
Url: https://github.com/srdusr/nvim.git
------------------------------------------------ "
--]]
-
--[[init.]]
-
-- ========================================================================== --
-- == DEPENDENCIES == --
-- ========================================================================== --
@@ -48,15 +46,15 @@
-- Load impatient (Faster loading times)
local impatient_ok, impatient = pcall(require, "impatient")
if impatient_ok then
- impatient.enable_profile()
+ impatient.enable_profile()
end
-- Schedule reading shadafile to improve the startup time
vim.opt.shadafile = "NONE"
vim.schedule(function()
- vim.opt.shadafile = ""
- vim.cmd("silent! rsh")
+ vim.opt.shadafile = ""
+ vim.cmd("silent! rsh")
end)
@@ -70,6 +68,7 @@ local modules = {
--"user.scripts",
"plugins.colorscheme",
"plugins.treesitter",
+ "plugins.neodev",
"plugins.telescope",
"plugins.nvim-tree",
"plugins.quickfix",
@@ -80,9 +79,7 @@ local modules = {
--"plugins.git",
"plugins.gitsigns",
"plugins.neoscroll",
- --"plugins.null-ls",
"plugins.lsp",
- "plugins.lsp_lines",
"plugins.statuscol",
"plugins.goto-preview",
"plugins.autopairs",
@@ -91,12 +88,11 @@ local modules = {
"plugins.fidget",
"plugins.web-devicons",
"plugins.heirline",
+ "plugins.neotest",
"plugins.toggleterm",
"plugins.trouble",
"plugins.dashboard",
"plugins.dap",
- --"plugins.modify-blend",
- --"plugins.floatterm",
}
@@ -113,9 +109,9 @@ local expected_ver = "0.9.0"
local nvim_ver = mods.get_nvim_version()
if nvim_ver ~= expected_ver then
- local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, nvim_ver)
-vim.api.nvim_err_writeln(msg)
- return
+ local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, nvim_ver)
+ vim.api.nvim_err_writeln(msg)
+ return
end
@@ -127,24 +123,24 @@ vim.notify = require("notify") -- Requires plugin "rcarriga/nvim-notify"
-- Improve speed by disabling some default plugins/modules
local builtins = {
- "gzip",
- "zip",
- "zipPlugin",
- "tar",
- "tarPlugin",
- "getscript",
- "getscriptPlugin",
- "vimball",
- "vimballPlugin",
- "2html_plugin",
- --"matchit",
- --"matchparen",
- "logiPat",
- "rrhelper",
- "netrw",
- "netrwPlugin",
- "netrwSettings",
- "netrwFileHandlers",
+ "gzip",
+ "zip",
+ "zipPlugin",
+ "tar",
+ "tarPlugin",
+ "getscript",
+ "getscriptPlugin",
+ "vimball",
+ "vimballPlugin",
+ "2html_plugin",
+ --"matchit",
+ --"matchparen",
+ "logiPat",
+ "rrhelper",
+ "netrw",
+ "netrwPlugin",
+ "netrwSettings",
+ "netrwFileHandlers",
"tutor_mode_plugin",
"fzf",
"spellfile_plugin",
@@ -152,7 +148,7 @@ local builtins = {
}
for _, plugin in ipairs(builtins) do
- vim.g["loaded_" .. plugin] = 1
+ vim.g["loaded_" .. plugin] = 1
end
vim.g.do_filetype_lua = 1
vim.g.did_load_filetypes = 0