Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Optimize init.lua untuk Neovim 0.13: dari 470ms ke 130ms

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…

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.

The 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.

The 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.

After 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.

Finally, 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

First Apple TV 4K Pre-Order Discount Arrives at Amazon

Following in the footsteps of a small pre-order discount on the HomeView , Amazon is now offering the first cash discount on the brand new A19 Apple TV 4K. You can get this model for $289.99 , down from $299.00. Note: MacRumors is an affiliate partner with some of these vendors.

Current Account Deficit Worsens in 3 Months

Pakistan’s current account deficit widened 16 percent year-on-year (YoY) to $874 million in the first quarter of fiscal year 2026-27, …

  • Pakistan's current account deficit rose 16% YoY to $874 million in Q1 2026-27
  • September 2026 deficit widened to $356 million, from $133 million in September 2025
  • Imports increased 13% MoM to $6.2 billion, outpacing 8% export growth to $8.4 billion

Understanding Flask Environment, Security, and Error Handling

Understanding Flask Environment, Security, and Error Handling 🚀 _**When building a Flask application, separating Development (your local machine) from Production (the live server like Render) is one of the most critical steps for building secure applications. Here is a quick breakdown of how everything works together: 1.

  • Environment variables securely manage sensitive configurations in Flask apps.
  • Debug mode varies between local development and production environments.
  • Flask error handling distinguishes between developer logs and user-facing messages.

More from Friday, 16 October 2026 →