Files
nvim/init.lua
T
Ian Roddis 25cf1e91e8 Refactoring
2026-05-06 12:20:14 -03:00

22 lines
597 B
Lua

require 'iroddis'
require('monokai').setup { palette = require('monokai').ristretto }
vim.keymap.set('n', 'ga', ':EasyAlign<CR>')
vim.keymap.set('v', 'ga', ':EasyAlign<CR>')
-- Because nvim filetypes are stupid ... need to disable formatoptions for all file types
vim.api.nvim_create_autocmd('FileType', {
pattern = '*',
callback = function()
vim.opt.formatoptions:remove 'r'
vim.opt.formatoptions:remove 'o'
end,
})
-- Disable change-detection if in diff mode. Allows for diffs involving redirects
-- eg nvim -d <(cmd 1) <(cmd 2)
if vim.diff then
vim.opt.autoread = false
end