-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
20 lines (16 loc) · 793 Bytes
/
init.lua
File metadata and controls
20 lines (16 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- Ensure homebrew binaries are available (macOS GUI launch doesn't inherit full PATH)
vim.env.PATH = "/opt/homebrew/bin:" .. vim.env.PATH
-- Shim deprecated API used by plugins (telescope, project.nvim)
vim.lsp.buf_get_clients = vim.lsp.get_clients
-- Shim vim.tbl_flatten (deprecated in 0.12, still used by many plugins)
vim.tbl_flatten = function(t) return vim.iter(t):flatten(math.huge):totable() end
-- Workaround for async treesitter parse race in Neovim 0.11+: nodes from a
-- previous parse cycle can be garbage-collected mid-coroutine, causing
-- node:range() to appear nil in the decoration provider.
vim.g._ts_force_sync_parsing = true
require("core.options")
require("core.keymaps")
require("core.functions")
require("core.term")
require("core.todo")
require("plugins.packer")