~hannu

Recent activity

[PATCH 2/2] Switch working directory while evaluating BQN code 2 years ago

From Hannu Hartikainen to ~detegr/nvim-bqn

This is required if the code has any references to relative paths. E.g.
imports typically require this unless the working directory was already
the correct one.
---
 lua/bqn.lua | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lua/bqn.lua b/lua/bqn.lua
index 8414acc..372b01a 100644
--- a/lua/bqn.lua
+++ b/lua/bqn.lua
@@ -59,6 +59,12 @@ function evalBQN(from, to, explain)
        bqn = "BQN"
    end
[message trimmed]

[PATCH 1/2] Move all BQN-specific code to ftplugin/bqn.vim 2 years ago

From Hannu Hartikainen to ~detegr/nvim-bqn

This (slightly) speeds up loading of all files that don't have
filetype=bqn as ftplugin/bqn.vim isn't sourced. On the other hand
plugin/*.vim files are always sourced on startup.

To investigate startup behavior, run with `nvim -Vnvim.log`.
---
 ftplugin/bqn.vim | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
 plugin/bqn.vim   | 52 -----------------------------------------------
 2 files changed, 53 insertions(+), 52 deletions(-)
 delete mode 100644 plugin/bqn.vim

diff --git a/ftplugin/bqn.vim b/ftplugin/bqn.vim
index 1550ec0..8a2d00f 100644
--- a/ftplugin/bqn.vim
[message trimmed]