diff options
| author | Robert Günzler <r@gnzler.io> | 2024-11-25 13:30:37 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2024-11-25 13:58:25 +0100 |
| commit | 23de12baba9fbfc4ca24581b37c374aa5345cc25 (patch) | |
| tree | e4b3c421bad572eb85a1089eaad44dc3059ab6e6 /.vim/after/ftplugin/go.lua | |
| parent | 18e3848110da0a59843058927ea04b496f5db2a5 (diff) | |
update nvim config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rw-r--r-- | .vim/after/ftplugin/go.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/.vim/after/ftplugin/go.lua b/.vim/after/ftplugin/go.lua deleted file mode 100644 index cda6a34..0000000 --- a/.vim/after/ftplugin/go.lua +++ /dev/null @@ -1,19 +0,0 @@ --- vim.opt.shiftwidth = 4 - -vim.keymap.set('n', '<leader>i', function() - local iface = vim.fn.input('Impl: ') - if not iface or iface == '' then - return - end - require('internal.cursor').word(function(word) - vim.cmd('normal ][o') - local args = { - 'impl', - '-dir', - vim.fn.expand('%:h:p'), - '"' .. string.lower(word:sub(0, 1)) .. ' *' .. word .. '"', - iface, - } - vim.cmd('r!' .. table.concat(args, ' ')) - end) -end) |