Skip to content

Commit 9f33e0c

Browse files
committed
feat: added configs for tutorial.nvim
1 parent e80f48d commit 9f33e0c

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

init.lua

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ require('lazy').setup({
248248
-- Use `opts = {}` to automatically pass options to a plugin's `setup()` function, forcing the plugin to be loaded.
249249
--
250250

251-
{ -- shows a floating buffer with the most useful vim keymaps
252-
'Hashino/tutorial.nvim',
253-
opts = {},
254-
},
255-
256251
-- Alternatively, use `config = function() ... end` for full control over the configuration.
257252
-- If you prefer to call `setup` explicitly, use:
258253
-- {
@@ -459,6 +454,28 @@ require('lazy').setup({
459454
end,
460455
},
461456

457+
{ -- shows a floating buffer with the most useful vim keymaps
458+
'Hashino/tutorial.nvim',
459+
config = function()
460+
require('tutorial').setup {
461+
enabled = true, -- whether to show Tutorial on startup
462+
463+
-- window configs of the floating Tutorial buffer
464+
-- see :h nvim_open_win() for available options
465+
float_win_config = {
466+
relative = 'editor',
467+
468+
anchor = 'SW',
469+
470+
style = 'minimal',
471+
border = 'rounded', -- see :h winborder for available options
472+
473+
noautocmd = true,
474+
},
475+
}
476+
end,
477+
},
478+
462479
-- LSP Plugins
463480
{
464481
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins

0 commit comments

Comments
 (0)