From d317a7c66536769edbc844faec8b1c6bca2656a8 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 1 Dec 2022 10:18:47 +0300 Subject: [PATCH] bump orgmode plugin and update patch --- flake.lock | 8 ++++---- flake.nix | 2 +- patches/nvim-orgmode/remove_check_ts_grammar.patch | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index e2c6764..3d1f09b 100644 --- a/flake.lock +++ b/flake.lock @@ -270,17 +270,17 @@ "nvim-orgmode": { "flake": false, "locked": { - "lastModified": 1669833408, - "narHash": "sha256-7q+s5jwscUBsuk6/OfgpYdOyCEykOss5CpkhEc84E9I=", + "lastModified": 1669843678, + "narHash": "sha256-zut3orH6okjb9NLvpoQ/S0jDTKGEe41ULXOKjBPqYO0=", "owner": "nvim-orgmode", "repo": "orgmode", - "rev": "4e89bd022089888588b7d8c592a82aebe8bf68b5", + "rev": "fc9bb0f5823d01e4008e4b86663772d4148aa9ce", "type": "github" }, "original": { "owner": "nvim-orgmode", "repo": "orgmode", - "rev": "4e89bd022089888588b7d8c592a82aebe8bf68b5", + "rev": "fc9bb0f5823d01e4008e4b86663772d4148aa9ce", "type": "github" } }, diff --git a/flake.nix b/flake.nix index 158f188..6f2075e 100644 --- a/flake.nix +++ b/flake.nix @@ -141,7 +141,7 @@ # https://github.com/nvim-orgmode/orgmode nvim-orgmode = { - url = "github:nvim-orgmode/orgmode?rev=4e89bd022089888588b7d8c592a82aebe8bf68b5"; + url = "github:nvim-orgmode/orgmode?rev=fc9bb0f5823d01e4008e4b86663772d4148aa9ce"; flake = false; }; diff --git a/patches/nvim-orgmode/remove_check_ts_grammar.patch b/patches/nvim-orgmode/remove_check_ts_grammar.patch index ceea345..cb182f6 100644 --- a/patches/nvim-orgmode/remove_check_ts_grammar.patch +++ b/patches/nvim-orgmode/remove_check_ts_grammar.patch @@ -1,5 +1,5 @@ diff --git a/lua/orgmode/init.lua b/lua/orgmode/init.lua -index 274e004..7a25318 100644 +index 3b72f78..046a02e 100644 --- a/lua/orgmode/init.lua +++ b/lua/orgmode/init.lua @@ -1,11 +1,9 @@ @@ -14,11 +14,11 @@ index 274e004..7a25318 100644 ---@field agenda Agenda ---@field capture Capture ---@field clock Clock -@@ -66,52 +64,21 @@ function Org:setup_autocmds() - pattern = { '*.org', '*.org_archive' }, +@@ -60,52 +58,21 @@ function Org:setup_autocmds() + pattern = 'org', group = org_augroup, callback = function() - require('orgmode.org.diagnostics').report() + require('orgmode').reload(vim.fn.expand(':p')) end, }) end @@ -67,7 +67,7 @@ index 274e004..7a25318 100644 end)) end config:setup_mappings('global') -@@ -185,15 +152,14 @@ end +@@ -187,15 +154,14 @@ end function _G.orgmode.statusline() if not instance or not instance.initialized then return ''