diff options
| author | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
|---|---|---|
| committer | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
| commit | aa5717f00fd14430c80939a68d7107c26de6e554 (patch) | |
| tree | 784e99d9b018e0554369c41cb33e2e195e28d3c6 /after/ftplugin/lua.vim | |
first commit
Diffstat (limited to 'after/ftplugin/lua.vim')
| -rw-r--r-- | after/ftplugin/lua.vim | 9 |
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> |
