mirror of
https://github.com/runyanjake/dotfiles.git
synced 2025-10-05 06:07:30 -07:00
11 lines
248 B
Lua
11 lines
248 B
Lua
-- hello.lua
|
|
|
|
-- Define a function that prints a greeting
|
|
local function hello_world()
|
|
print("Hello, Neovim!")
|
|
end
|
|
|
|
-- Create a command ":SayHello" that runs the say_hello function
|
|
vim.api.nvim_create_user_command('HelloWorld', hello_world, {})
|
|
|