Compare commits

..

No commits in common. "b1934007f3b2d643ef6172730a39aa80be997110" and "c7d38120a984f96da931341f5266bb4289076b61" have entirely different histories.

3 changed files with 32 additions and 1 deletions

View File

@ -28,6 +28,10 @@ vim.keymap.set("n", "cc", "<cmd>lua vim.g.cmptoggle = not vim.g.cmptoggle<CR>",
--toggle file browser
vim.keymap.set("n", "<leader>f", "<cmd>Telescope file_browser<CR>", { desc = "file browser" })
--toggle terminal
vim.keymap.set({ "n", "t" }, "<leader>t", "<cmd>ToggleTerm<CR>", { desc = "[T]erminal" })
vim.keymap.set("t", "jk", [[<C-\><C-n>]])
--delete all buffers
vim.keymap.set("n", "<leader>dab", '<cmd>:%bdelete|edit #|normal`"<CR>', { desc = "delete all buffers" })

View File

@ -0,0 +1,27 @@
return {
{
"akinsho/toggleterm.nvim",
version = "*",
init = function()
require("toggleterm").setup({
highlights = {
-- highlights which map to a highlight group name and a table of it's values
-- NOTE: this is only a subset of values, any group placed here will be set for the terminal window split
Normal = {
guibg = "#26233a",
},
NormalFloat = {
link = "Normal",
},
-- FloatBorder = {
-- guifg = "<VALUE-HERE>",
-- guibg = "<VALUE-HERE>",
-- },
},
shade_terminals = false,
})
end,
opts = {--[[ things you want to change go here]]
},
},
}

View File

@ -6,7 +6,7 @@ local function setProseModeVars(on)
end
vim.api.nvim_create_autocmd({ "Bufenter" }, {
callback = function()
if vim.bo.buftype ~= "nofile" and vim.bo.filetype == "markdown" then
if vim.bo.buftype ~= "nofile" then
vim.cmd("PencilSoft")
setProseModeVars(true)
else