dotfiles/nvim/after/ftplugin/lua.lua
2026-06-02 08:20:14 +02:00

11 lines
300 B
Lua

-- Disable inserting comment leader after hitting o/O/<Enter>
vim.opt_local.formatoptions:remove { "o", "r" }
vim.keymap.set("n", "<F9>", "<cmd>luafile %<CR>", {
buffer = true,
silent = true,
})
vim.keymap.set("n", "<Space>f", "<cmd>silent !stylua %<CR>", {
buffer = true,
silent = true,
})