Compare commits

..

1 Commits

View File

@ -85,12 +85,11 @@ P.S. You can delete this when you're done too. It's your config now! :)
--]]
--
--
-- One last note before we leave you to explore: Lua is a real programming language.
-- One last note before we leave you to play around: Lua is a real programming language.
-- Why is that important? First of all, that you can use all the features of Lua,
-- like variables, conditionals, loops and functions. Secondly, that you can interact with
-- neovim in a concise way. The following lines contain two examples that might give you some inspiration.
-- neovim in concise way. The following lines contain two examples that might give you some inspirations.
-- This snippet adds a keymap to open a predefined file in a new tab:
--
-- local function open_notes()
-- vim.cmd 'tabnew'
-- vim.cmd 'tabnext'
@ -109,16 +108,13 @@ P.S. You can delete this when you're done too. It's your config now! :)
-- on valid effidence that you like this feature.
--
-- The following snippet loads/executes some lua file when a specific file is opened:
--
-- if vim.fn.expand("%") == "file.txt" then
-- vim.cmd("so ./additional_config.lua")
-- end
--
-- One use-case could be a journal where the script.lua automatically moves your cursor
-- to the end of file and inserts the curent date when you open it. (This suggestion is certainly not
-- the easiest example, but that it is possible at all should get your mind racing
-- with possibilities.)
--
-- Good luck tinkering :)
-- Set <space> as the leader key