Compare commits

..

5 Commits

Author SHA1 Message Date
orip
c30806a03f Fix the commented out friendly-snippets 2026-04-21 15:52:48 +03:00
orip
c3893c8652 Update the explanations and docs 2026-04-21 15:27:10 +03:00
orip
bcf7a2c384 Enable vim.loader for faster loading time 2026-04-21 13:10:25 +03:00
orip
18c335ca58 Migrate to vim.pack 2026-04-20 14:15:29 +03:00
orip
e099979958 Move some comments around 2026-04-20 00:45:20 +03:00
3 changed files with 726 additions and 804 deletions

View File

@ -113,8 +113,7 @@ nvim
That's it! `vim.pack` will install all the plugins from your config. Use That's it! `vim.pack` will install all the plugins from your config. Use
`:lua vim.pack.update(nil, { offline = true })` to inspect plugin state and `:lua vim.pack.update(nil, { offline = true })` to inspect plugin state and
`:lua vim.pack.update()` to fetch updates (`:write` applies updates, `:quit` `:lua vim.pack.update()` to fetch updates.
cancels them).
#### Read The Friendly Documentation #### Read The Friendly Documentation
@ -170,36 +169,17 @@ After installing all the dependencies continue with the [Install Kickstart](#ins
#### Windows Installation #### Windows Installation
<details><summary>Windows with Microsoft C++ Build Tools and CMake</summary> <details><summary>Windows with Microsoft C++ Build Tools and CMake</summary>
Kickstart's default config is make-only for `telescope-fzf-native.nvim`. Installation may require installing build tools and updating the run command for `telescope-fzf-native`
If `make` is unavailable, the plugin is skipped.
Recommended: install `make` (see the chocolatey section below). See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation)
If you want a CMake-only setup, customize `init.lua` in two places: This requires:
1. Include `telescope-fzf-native.nvim` when `cmake` is available: - Install CMake and the Microsoft C++ Build Tools on Windows
```lua ```lua
if vim.fn.executable 'make' == 1 or vim.fn.executable 'cmake' == 1 then {'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
table.insert(plugins, gh 'nvim-telescope/telescope-fzf-native.nvim')
end
``` ```
2. In the `PackChanged` hook, use CMake when `make` is unavailable:
```lua
if name == 'telescope-fzf-native.nvim' then
if vim.fn.executable 'make' == 1 then
run_build(name, { 'make' }, ev.data.path)
elseif vim.fn.executable 'cmake' == 1 then
run_build(name, { 'cmake', '-S.', '-Bbuild', '-DCMAKE_BUILD_TYPE=Release' }, ev.data.path)
run_build(name, { 'cmake', '--build', 'build', '--config', 'Release', '--target', 'install' }, ev.data.path)
end
return
end
```
See `telescope-fzf-native` documentation for [build details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation).
</details> </details>
<details><summary>Windows with gcc/make using chocolatey</summary> <details><summary>Windows with gcc/make using chocolatey</summary>
Alternatively, one can install gcc and make which don't require changing the config, Alternatively, one can install gcc and make which don't require changing the config,

1487
init.lua

File diff suppressed because it is too large Load Diff

View File

@ -3,11 +3,6 @@
-- --
-- See the kickstart.nvim README for more information -- See the kickstart.nvim README for more information
-- Iterate over all Lua files in the plugins directory and load them -- Example:
local plugins_dir = vim.fn.stdpath 'config' .. '/lua/custom/plugins' -- vim.pack.add({ 'https://github.com/folke/trouble.nvim' })
for _, file in ipairs(vim.fn.readdir(plugins_dir)) do -- require('trouble').setup {}
if file:match '%.lua$' and file ~= 'init.lua' then
local module = file:gsub('%.lua$', '')
require('custom.plugins.' .. module)
end
end