mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
Not sure this works. I will check later.
Changed: after/ftplugin/ruby.lua
This commit is contained in:
parent
dd2e40d517
commit
88a55e21bc
1 changed files with 16 additions and 6 deletions
|
|
@ -1,10 +1,20 @@
|
||||||
vim.cmd([[
|
local map = LazyVim.safe_keymap_set
|
||||||
autocmd FileType ruby nnoremap <buffer> <leader>cs :lua RunRubocop()<CR>
|
|
||||||
]])
|
|
||||||
|
|
||||||
vim.cmd([[
|
-- map("n", "<leader>x", ":lua RunInTerminal('ruby ' .. vim.fn.expand('%'), true)<CR>", { buffer = true })
|
||||||
autocmd FileType ruby nnoremap <buffer> <leader>x :lua RunInTerminal("ruby " .. vim.fn.expand('%'), true)<CR>
|
|
||||||
]])
|
print("haa")
|
||||||
|
map("n", "<leader>x", function()
|
||||||
|
print("Running ruby file")
|
||||||
|
-- RunInTerminal("ruby " .. vim.fn.expand('%'), true)
|
||||||
|
end, { desc = "Execute ruby file", buffer = true })
|
||||||
|
|
||||||
|
-- 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
|
-- Maybe this
|
||||||
-- vim.api.nvim_create_autocmd("FileType", {
|
-- vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue