Compare commits
5 Commits
6ea01189ad
...
d575c1293b
Author | SHA1 | Date | |
---|---|---|---|
d575c1293b | |||
4a567b459b | |||
2ce3fa82d6 | |||
a433b5a43d | |||
4ae70583f1 |
@ -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.
|
-- NOTE: Add "BufReadPre" to the autocmd events to also intercept files given on the command line, e.g.
|
||||||
-- `nvim myfile.txt`
|
-- `nvim myfile.txt`
|
||||||
vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
vim.api.nvim_create_autocmd({ "BufNew" }, {
|
||||||
group = augroup,
|
group = augroup,
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
---@type string
|
---@type string
|
||||||
@ -96,6 +96,9 @@ M.setup = function()
|
|||||||
local function open_mime(buf, fpath, fname)
|
local function open_mime(buf, fpath, fname)
|
||||||
vim.notify(string.format("Opening `%s` in external program", fname), vim.log.levels.INFO, {
|
vim.notify(string.format("Opening `%s` in external program", fname), vim.log.levels.INFO, {
|
||||||
title = "Open File in External Program",
|
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.system({ "xdg-open", fpath }, { detach = true })
|
||||||
vim.api.nvim_buf_delete(buf, { force = true })
|
vim.api.nvim_buf_delete(buf, { force = true })
|
||||||
|
@ -6,9 +6,7 @@ return {
|
|||||||
"brenoprata10/nvim-highlight-colors",
|
"brenoprata10/nvim-highlight-colors",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
cmd = {
|
cmd = {
|
||||||
"HighlightColorsOn",
|
"HighlightColors",
|
||||||
"HighlightColorsOff",
|
|
||||||
"HighlightColorsToggle",
|
|
||||||
},
|
},
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
@ -316,13 +316,13 @@ return {
|
|||||||
{ "@markup.heading.7", { fg = colors.lightBlue, bold = true } },
|
{ "@markup.heading.7", { fg = colors.lightBlue, bold = true } },
|
||||||
{ "@markup.heading.8", { fg = colors.springGreen, bold = true } },
|
{ "@markup.heading.8", { fg = colors.springGreen, bold = true } },
|
||||||
{ "@org.headline.level1", { link = "@markup.heading.1" } },
|
{ "@org.headline.level1", { link = "@markup.heading.1" } },
|
||||||
{ "@org.headline.level2.org", { link = "@markup.heading.2" } },
|
{ "@org.headline.level2", { link = "@markup.heading.2" } },
|
||||||
{ "@org.headline.level3.org", { link = "@markup.heading.3" } },
|
{ "@org.headline.level3", { link = "@markup.heading.3" } },
|
||||||
{ "@org.headline.level4.org", { link = "@markup.heading.4" } },
|
{ "@org.headline.level4", { link = "@markup.heading.4" } },
|
||||||
{ "@org.headline.level5.org", { link = "@markup.heading.5" } },
|
{ "@org.headline.level5", { link = "@markup.heading.5" } },
|
||||||
{ "@org.headline.level6.org", { link = "@markup.heading.6" } },
|
{ "@org.headline.level6", { link = "@markup.heading.6" } },
|
||||||
{ "@org.headline.level7.org", { link = "@markup.heading.7" } },
|
{ "@org.headline.level7", { link = "@markup.heading.7" } },
|
||||||
{ "@org.headline.level8.org", { link = "@markup.heading.8" } },
|
{ "@org.headline.level8", { link = "@markup.heading.8" } },
|
||||||
{ "@markup.heading.1.marker", { link = "@markup.heading.1" } },
|
{ "@markup.heading.1.marker", { link = "@markup.heading.1" } },
|
||||||
{ "@markup.heading.2.marker", { link = "@markup.heading.2" } },
|
{ "@markup.heading.2.marker", { link = "@markup.heading.2" } },
|
||||||
{ "@markup.heading.3.marker", { link = "@markup.heading.3" } },
|
{ "@markup.heading.3.marker", { link = "@markup.heading.3" } },
|
||||||
|
@ -10,7 +10,6 @@ return {
|
|||||||
{ "<leader>o", desc = "> Org" },
|
{ "<leader>o", desc = "> Org" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('orgmode').setup_ts_grammar()
|
|
||||||
-- Setup orgmode
|
-- Setup orgmode
|
||||||
require("orgmode").setup({
|
require("orgmode").setup({
|
||||||
org_agenda_files = {
|
org_agenda_files = {
|
||||||
@ -66,7 +65,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lyz-code/telescope-orgmode.nvim",
|
"https://git.orion-technologies.io/Price/telescope-orgmode.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-orgmode/orgmode",
|
"nvim-orgmode/orgmode",
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user