diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-05-10 17:40:55 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-05-10 17:40:55 +0200 |
| commit | 826e5208e2f856bed068588aab7d07a9216aabd0 (patch) | |
| tree | 13a7ae26b7a3211c1f48920e8e1043874c4a3b94 | |
| parent | 439bb48189f03344896ebd8547b8a032c73931d8 (diff) | |
| download | dotfiles-826e5208e2f856bed068588aab7d07a9216aabd0.tar.gz dotfiles-826e5208e2f856bed068588aab7d07a9216aabd0.zip | |
Enabled neodev
| -rw-r--r-- | init.lua | 54 |
1 files changed, 26 insertions, 28 deletions
@@ -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,8 +68,8 @@ local modules = { --"user.scripts", "plugins.colorscheme", "plugins.treesitter", + "plugins.neodev", "plugins.telescope", - --"plugins.neodev", "plugins.nvim-tree", "plugins.quickfix", "plugins.cmp", @@ -114,9 +112,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 @@ -128,24 +126,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", @@ -153,7 +151,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 |
