summaryrefslogtreecommitdiff
path: root/after/ftplugin/lua.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/lua.vim')
-rw-r--r--after/ftplugin/lua.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/after/ftplugin/lua.vim b/after/ftplugin/lua.vim
new file mode 100644
index 0000000..6d9a620
--- /dev/null
+++ b/after/ftplugin/lua.vim
@@ -0,0 +1,9 @@
+setlocal includeexpr=substitute(v:fname,'\\.','/','g').'.lua'
+setlocal comments-=:-- comments+=:---,:--
+setlocal keywordprg=:help
+
+inoreabbrev <buffer> lo local
+inoreabbrev <buffer> lf local function()<left><left>
+inoreabbrev <buffer> fu function() end<left><left><left><left>
+
+nnoremap <buffer> K <Cmd>lua vim.lsp.buf.hover()<CR>