mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Add after/ftplugin/ruby.lua
This commit is contained in:
parent
98c1e1edb0
commit
a96478ff62
1 changed files with 15 additions and 0 deletions
15
after/ftplugin/ruby.lua
Normal file
15
after/ftplugin/ruby.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
vim.cmd([[
|
||||
autocmd FileType ruby nnoremap <buffer> <leader>cs :lua RunRubocop()<CR>
|
||||
]])
|
||||
|
||||
vim.cmd([[
|
||||
autocmd FileType ruby nnoremap <buffer> <leader>x :lua RunInTerminal("ruby " .. vim.fn.expand('%'), true)<CR>
|
||||
]])
|
||||
|
||||
-- Maybe this
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "ruby",
|
||||
-- callback = function()
|
||||
-- map("n", "<leader>x", ":lua RunInTerminal('ruby ' .. vim.fn.expand('%'), true)<CR>", { buffer = true })
|
||||
-- end,
|
||||
-- })
|
||||
Loading…
Add table
Reference in a new issue