Compare commits

..

No commits in common. "d67374d51cb98488f8545ae54fad1dd67cd77853" and "94602ebb32fb8683264cf2975026c835f72ec9e1" have entirely different histories.

6 changed files with 12 additions and 21 deletions

View File

@ -0,0 +1,2 @@
require("options/prose")
vim.cmd("PencilSoft")

View File

@ -4,7 +4,7 @@ vim.g.have_nerd_font = true
require("options.default")
require("lazy_bootstrap")
require("lazy").setup({ { import = "plugins" } })
require("prose_mode")
--BG HACKS
vim.api.nvim_create_autocmd({ "BufEnter", "BufCreate", "BufAdd" }, {
callback = function()

View File

@ -38,8 +38,8 @@ vim.keymap.set("n", "<leader>dab", '<cmd>:%bdelete|edit #|normal`"<CR>', { desc
--SAVE
vim.keymap.set({ "n", "i" }, "<C-s>", "<cmd>w<CR>", { desc = "save" })
--vim.keymap.set({ "n", "i" }, "<C-sa>", "<cmd>wa<CR>", { desc = "save" })
--
vim.keymap.set({ "n", "i" }, "<C-sa>", "<cmd>wa<CR>", { desc = "save" })
--DIAGNOSTIC POPUP
vim.keymap.set("n", "<leader>dp", function()
vim.diagnostic.open_float()

View File

@ -50,4 +50,3 @@ vim.g.markdown_folding = 1
vim.opt.spelllang = "en_us"
vim.opt.spell = true
vim.opt.textwidth = 0 --prevent vim from isnerting linebreaks

View File

@ -0,0 +1,7 @@
return {
"tadmccorkle/markdown.nvim",
ft = "markdown", -- or 'event = "VeryLazy"'
opts = {
-- configuration here or empty for defaults
},
}

View File

@ -1,17 +0,0 @@
local function setProseModeVars(on)
vim.opt.wrap = on
vim.opt.linebreak = on
vim.opt.number = not on
vim.opt.signcolumn = on and "no" or "auto"
end
vim.api.nvim_create_autocmd({ "Bufenter" }, {
callback = function()
if vim.bo.buftype ~= "nofile" then
vim.cmd("PencilSoft")
setProseModeVars(true)
else
vim.cmd("PencilOff")
setProseModeVars(false)
end
end,
})