Compare commits

...

5 Commits

4 changed files with 13 additions and 13 deletions

View File

@ -76,7 +76,7 @@ M.setup = function()
-- NOTE: Add "BufReadPre" to the autocmd events to also intercept files given on the command line, e.g.
-- `nvim myfile.txt`
vim.api.nvim_create_autocmd({ "BufEnter" }, {
vim.api.nvim_create_autocmd({ "BufNew" }, {
group = augroup,
callback = function(args)
---@type string
@ -96,6 +96,9 @@ M.setup = function()
local function open_mime(buf, fpath, fname)
vim.notify(string.format("Opening `%s` in external program", fname), vim.log.levels.INFO, {
title = "Open File in External Program",
on_open = function(win)
vim.api.nvim_set_option_value("filetype", "markdown", { buf = vim.api.nvim_win_get_buf(win) })
end,
})
vim.system({ "xdg-open", fpath }, { detach = true })
vim.api.nvim_buf_delete(buf, { force = true })

View File

@ -6,9 +6,7 @@ return {
"brenoprata10/nvim-highlight-colors",
event = { "BufReadPre", "BufNewFile" },
cmd = {
"HighlightColorsOn",
"HighlightColorsOff",
"HighlightColorsToggle",
"HighlightColors",
},
config = true,
},

View File

@ -316,13 +316,13 @@ return {
{ "@markup.heading.7", { fg = colors.lightBlue, bold = true } },
{ "@markup.heading.8", { fg = colors.springGreen, bold = true } },
{ "@org.headline.level1", { link = "@markup.heading.1" } },
{ "@org.headline.level2.org", { link = "@markup.heading.2" } },
{ "@org.headline.level3.org", { link = "@markup.heading.3" } },
{ "@org.headline.level4.org", { link = "@markup.heading.4" } },
{ "@org.headline.level5.org", { link = "@markup.heading.5" } },
{ "@org.headline.level6.org", { link = "@markup.heading.6" } },
{ "@org.headline.level7.org", { link = "@markup.heading.7" } },
{ "@org.headline.level8.org", { link = "@markup.heading.8" } },
{ "@org.headline.level2", { link = "@markup.heading.2" } },
{ "@org.headline.level3", { link = "@markup.heading.3" } },
{ "@org.headline.level4", { link = "@markup.heading.4" } },
{ "@org.headline.level5", { link = "@markup.heading.5" } },
{ "@org.headline.level6", { link = "@markup.heading.6" } },
{ "@org.headline.level7", { link = "@markup.heading.7" } },
{ "@org.headline.level8", { link = "@markup.heading.8" } },
{ "@markup.heading.1.marker", { link = "@markup.heading.1" } },
{ "@markup.heading.2.marker", { link = "@markup.heading.2" } },
{ "@markup.heading.3.marker", { link = "@markup.heading.3" } },

View File

@ -10,7 +10,6 @@ return {
{ "<leader>o", desc = "> Org" },
},
config = function()
require('orgmode').setup_ts_grammar()
-- Setup orgmode
require("orgmode").setup({
org_agenda_files = {
@ -66,7 +65,7 @@ return {
end,
},
{
"lyz-code/telescope-orgmode.nvim",
"https://git.orion-technologies.io/Price/telescope-orgmode.nvim",
dependencies = {
"nvim-orgmode/orgmode",
"nvim-telescope/telescope.nvim",