{
  "id": 14950730,
  "title": "Optimize init.lua untuk Neovim 0.13: dari 470ms ke 130ms",
  "url": "https://urgent.news/2026/10/16/optimize-init-lua-untuk-neovim-0-13-dari-470ms-ke-130ms",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-16T12:18:18.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hardyweb/optimize-initlua-untuk-neovim-013-dari-470ms-ke-130ms-3o4"
  },
  "original_language": "en",
  "account": "Optimizing the init.lua file for Neovim 0.13 can significantly reduce startup time from 470ms to just 130ms. Neovim 0.13 introduces new features and improvements that are worth considering when upgrading from previous versions. However, there may be some silent bugs in 0.13 that can cause startup delays without being noticed.\n\nThe provided init.lua file is optimized for Neovim 0.13, featuring a native pack and LSP configuration. To enhance performance, the Lua module loading process has been optimized with bytecode caching enabled. Additionally, the leader key mapping is set before plugin setup.\n\nThe init.lua file loads several native plugins, including mason, mason-lspconfig, nvim-lspconfig, nvim-treesitter, nvim-cmp, cmp-nvim-lsp, cmp-buffer, LuaSnip, mini.pairs, mini.icons, lualine.nvim, fzf-lua, tokyonight.nvim, toggleterm.nvim, wakatime, and plenary.nvim. Mason setup is also configured to run before lsp.enable, which adds mason/bin to the PATH.\n\nAfter configuring the plugins, the init.lua file sets up the nvim-cmp autocompletion system, using LuaSnip and the VS Code snippets. The setup includes enabling ghost text and configuring various mapping presets, such as inserting, selecting the next item, and selecting the previous item.\n\nFinally, the init.lua file configures the new native LSP API in Neovim 0.13. It sets up capabilities for servers like lua_ls, html, intelephense, ts_ls, gopls, and pyright. This optimized init.lua file helps Neovim users enjoy faster startup times and improved performance when working with the latest Neovim 0.13 release.",
  "summary": "Optimize init.lua untuk Neovim 0.13: dari 470ms ke 130ms Neovim sekarang di 0.13 (development). Kalau korang masih guna config lama (0.12 atau sebelumnya), ada beberapa benda 0.13 yang patut diambil kira — dan ada juga bug senyap yang makan masa startup tanpa kita sedar. Dulu aku guna init.lua yang aku share di…",
  "key_points": [
    "Startup time reduced from 470ms to 130ms in Neovim 0.13",
    "Optimized init.lua with native pack, LSP configuration, and bytecode caching",
    "Loaded 15+ plugins, configured nvim-cmp autocompletion, and LSP API"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}