Compare commits

...

8 Commits

Author SHA1 Message Date
Aaron
53e19f729c
Merge 0b13cc3ed8bef415ac763b51d0c1cf3713346692 into d350db2449da40df003c40d440f909d74e2d4e70 2025-04-10 08:44:33 +02:00
Aaron
0b13cc3ed8
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:44:31 +02:00
Aaron
fc814a5129
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:44:25 +02:00
Aaron
63a74f8d0b
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:44:14 +02:00
Aaron
9bdc47b5d3
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:44:03 +02:00
Aaron
8d76247947
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:43:43 +02:00
Aaron
7f662c07bc
Update init.lua
Co-authored-by: Chris Patti <feoh@feoh.org>
2025-04-10 08:43:30 +02:00
Aaron
16de9cf027 docs: Adds a paragraph about lua being a real programming language. 2025-04-06 09:23:17 +02:00

View File

@ -83,6 +83,43 @@ I hope you enjoy your Neovim journey,
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.
-- 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.
-- This snippet adds a keymap to open a predefined file in a new tab:
--
-- local function open_notes()
-- vim.cmd 'tabnew'
-- vim.cmd 'tabnext'
-- local command = 'e' .. '/full_path/to_file' -- '..' is the build in string concatenation
-- vim.cmd(command)
-- end
-- vim.keymap.set('n', '<leader>m', open_notes)
--
-- This is interesting because there are certainly plugins out there
-- that provide this functionallity in a sophisticated manner.
-- But a plugin might change, might not provide the options you like,
-- or you might not use this feature at all. If you do not use it,
-- simply delete this code and you are done. If you like it, you
-- may expand to what you need and nothing else. And if this is to
-- much work, you might end up using the plugin anyway, but based
-- 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
-- See `:help mapleader`