changeset 0:238b45cc333b

Initial Commit
author Luka Sitas <lsitas@avatarasoftware.com>
date Tue, 10 Mar 2026 20:25:15 -0400
parents
children 8530ebeda72c
files README.md autoload/dbtables.vim doc/dbtables.txt plugin/dbtables.vim
diffstat 4 files changed, 67 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Tue Mar 10 20:25:15 2026 -0400
@@ -0,0 +1,20 @@
+*dbtables.txt*    Simple example Vim plugin
+
+#INTRODUCTION                                        
+
+dbtables is a minimal example plugin.
+
+#USAGE                                              
+
+    :DbtablesGreet
+        Echo a greeting message. You can customize it with
+        g:dbtables_greeting:
+
+        >   let g:dbtables_greeting = 'Hi there!'
+
+#INSTALLATION                                       
+
+Using vim-plug add the following:
+
+Plug '/home/lsitas/repos/vim_plugins/dbtables'
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autoload/dbtables.vim	Tue Mar 10 20:25:15 2026 -0400
@@ -0,0 +1,10 @@
+" autoload/dbtables.vim
+" Functions are loaded on demand
+
+if exists('*dbtables#greet')
+  finish
+endif
+
+function! dbtables#greet() abort
+  echo g:dbtables_greeting
+endfunction
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/dbtables.txt	Tue Mar 10 20:25:15 2026 -0400
@@ -0,0 +1,22 @@
+*dbtables.txt*    Simple example Vim plugin
+
+INTRODUCTION                                        *dbtables*
+
+dbtables is a minimal example plugin.
+
+USAGE                                              *dbtables-usage*
+
+    :DbtablesGreet
+        Echo a greeting message. You can customize it with
+        g:dbtables_greeting:
+
+        >   let g:dbtables_greeting = 'Hi there!'
+
+INSTALLATION                                       *dbtables-install*
+
+Using vim-plug add the following:
+
+Plug '/home/lsitas/repos/vim_plugins/dbtables'
+
+
+*dbtables*      Main help entry for this plugin.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugin/dbtables.vim	Tue Mar 10 20:25:15 2026 -0400
@@ -0,0 +1,15 @@
+" plugin/dbtables.vim
+" Basic plugin entry point
+
+if exists('g:loaded_dbtables')
+  finish
+endif
+let g:loaded_dbtables = 1
+
+" Default configuration option
+if !exists('g:dbtables_greeting')
+  let g:dbtables_greeting = 'Hello from dbtables!'
+endif
+
+" Command that calls an autoloaded function
+command! DbtablesGreet call dbtables#greet()