mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
Merge pull request #71 from horriblename/feat-lua-loader
feat: new option to enable lua module loader
This commit is contained in:
commit
f63e82c1c0
4 changed files with 10 additions and 0 deletions
|
@ -12,6 +12,9 @@ Language specific support means there is a combination of language specific plug
|
|||
* Zig: <<opt-vim.languages.zig.enable>>
|
||||
* Markdown: <<opt-vim.languages.markdown.enable>>
|
||||
* HTML: <<opt-vim.languages.html.enable>>
|
||||
* SQL: <<opt-vim.languages.sql.enable>>
|
||||
* Dart: <<opt-vim.languages.dart.enable>>
|
||||
* Go: <<opt-vim.languages.go.enable>>
|
||||
|
||||
Adding support for more languages, and improving support for existing ones are great places where you can contribute with a PR.
|
||||
|
||||
|
|
|
@ -13,3 +13,5 @@ ttps://github.com/horriblename[horriblename]:
|
|||
* Added `clangd` as alternative lsp for C/++.
|
||||
|
||||
* Added `toggleterm` integration for `lazygit`.
|
||||
|
||||
* Added new option `enableLuaLoader` to enable neovim's experimental module loader for faster startup time.
|
||||
|
|
|
@ -144,5 +144,7 @@ with builtins; {
|
|||
default = true;
|
||||
description = "Follow editorconfig rules in current directory";
|
||||
};
|
||||
|
||||
enableLuaLoader = mkEnableOption "Enable the experimental Lua module loader to speed up the start up process";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,6 +9,9 @@ with builtins; let
|
|||
|
||||
wrapLuaConfig = luaConfig: ''
|
||||
lua << EOF
|
||||
${optionalString cfg.enableLuaLoader ''
|
||||
vim.loader.enable()
|
||||
''}
|
||||
${luaConfig}
|
||||
EOF
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue