Skip to content

Commit 4d26475

Browse files
committed
feat: added configs for tutorial.nvim
1 parent e80f48d commit 4d26475

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

init.lua

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +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-
},
255251

256252
-- Alternatively, use `config = function() ... end` for full control over the configuration.
257253
-- If you prefer to call `setup` explicitly, use:
@@ -295,7 +291,7 @@ require('lazy').setup({
295291
-- Then, because we use the `opts` key (recommended), the configuration runs
296292
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
297293

298-
{ -- Useful plugin to show you pending keybinds.
294+
{ -- Useful plugin to show you pending keybinds.
299295
'folke/which-key.nvim',
300296
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
301297
opts = {
@@ -376,7 +372,7 @@ require('lazy').setup({
376372
{ 'nvim-telescope/telescope-ui-select.nvim' },
377373

378374
-- Useful for getting pretty icons, but requires a Nerd Font.
379-
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
375+
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
380376
},
381377
config = function()
382378
-- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -459,6 +455,28 @@ require('lazy').setup({
459455
end,
460456
},
461457

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

486504
-- Useful status updates for LSP.
487-
{ 'j-hui/fidget.nvim', opts = {} },
505+
{ 'j-hui/fidget.nvim', opts = {} },
488506

489507
-- Allows extra capabilities provided by blink.cmp
490508
'saghen/blink.cmp',

0 commit comments

Comments
 (0)