-
Notifications
You must be signed in to change notification settings - Fork 218
advanced guide: content #43
Description
The one and only luajit wiki and luajit not yet implemented.
-
Performance tips: wiki
+ wait for status information, computing performance guide recommended by scilua author -
Debugging: one step for vimkind
-
luarocks => [wbthomason/packer.nvim] has now support luarocks packages => add firejail profile for luarocks done, but I want to test it further before upstreaming. Currently I have weird folder quirks.
-
:checkhealth integration => check core and treesitter implementation
-
Explaining what is most performant and why (vim.api) and what happens under the hood ie for
vim.call
,vim.fn
etc. (blocked by missing documentation upstream) see Mention vim.api.nvim_call_function #6
https://www.reddit.com/r/neovim/comments/oeevcy/what_is_the_difference_between_vimapi_and_vimfn/h45ujiz?utm_source=share&utm_medium=web2x&context=3
"What is the difference betweenvim.api
andvim.fn
functions?"
"you can no longer use api functions from vim.fn which used to be the case
vim.api is nvim specific functions and it goes from lua -> C while vim.fn is viml functions which goes from lua -> viml -> C
there's more overhead for using vim.fn than vim.api" -
Some internal functions (categories?) and how to find more etc
Plugin guidelines:
- dont autostart lua stuff from vimscript: let the user handle it (for example using
plugin
folder makes profiling annoying/kinda breaks it): A Lua-aware startup time profiler nvim-lua/wishlist#15 (comment) - "Note that underscore-prefixed functions (e.g. "_os_proc_children") are internal/private and must not be used by plugins"
=> dont use underscopre-prefixed functions - Guidelines how to name functions.
local function a = bla()
vslocal a = function()
. Relatedfunction M.bla()
for a table.
I copied some content to the plugin template project and will delete this issue, once the stuff is documented there properly.