19 lines
508 B
Lua
19 lines
508 B
Lua
require 'iroddis'
|
|
|
|
require('monokai').setup { palette = require('monokai').ristretto }
|
|
|
|
-- 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
|