diff --git a/plugin/01_lib.lua b/plugin/01_lib.lua index ba87825..988905c 100644 --- a/plugin/01_lib.lua +++ b/plugin/01_lib.lua @@ -34,7 +34,7 @@ end Config.execute_lua_line = function() local line = 'lua ' .. vim.api.nvim_get_current_line() vim.api.nvim_command(line) - print(line) + vim.notify(line, vim.log.levels.INFO) vim.api.nvim_input('') end diff --git a/plugin/04_treesitter.lua b/plugin/04_treesitter.lua index c4c0452..88d3cb7 100644 --- a/plugin/04_treesitter.lua +++ b/plugin/04_treesitter.lua @@ -121,11 +121,17 @@ function M.setup_keybindings(global_nodes) vim.keymap.set('n', 'a', function() smart_send.send_repl(current_global_nodes) end, { noremap = true, silent = true, desc = "Send node to REPL", buffer = true }) - vim.keymap.set({ 'n', 'i' }, '', function() smart_send.send_repl(current_global_nodes) end, - { noremap = true, silent = true, desc = "Send node to REPL", buffer = true }) - - vim.keymap.set('n', '', function() smart_send.send_repl(current_global_nodes) end, - { noremap = true, silent = true, desc = "Send node to REPL", buffer = true }) + -- Both `` and `` were removed from `M.setup_keybindings`. They + -- were hard, implicit overrides that clobbered Vim/filetype defaults and + -- the user's snippet + insert-mode workflows (see C2 + H5 in the PR + -- review). To opt back in for a specific filetype, override per-buffer + -- from a `ftplugin/.lua`: + -- + -- -- e.g. ftplugin/r.lua or ftplugin/quarto.lua + -- vim.keymap.set('n', '', function() + -- require('config').treesitter_helpers.setup_keybindings(global_nodes) + -- require('nix_smart_send').send_repl(global_nodes) + -- end, { buffer = true, desc = 'Send node to REPL' }) vim.keymap.set('n', 'n', function() current_global_nodes = M.add_global_node(current_global_nodes) end, diff --git a/plugin/10_keymap.lua b/plugin/10_keymap.lua index 9e88a27..98074fb 100644 --- a/plugin/10_keymap.lua +++ b/plugin/10_keymap.lua @@ -6,6 +6,6 @@ require('keymap.core') require('keymap.leader') require('keymap.terminal') --- Re-export the shared config table for backwards compatibility with any --- external code or keymap strings that still reference the global `Config`. -_G.Config = Config +-- `_G.Config` is set by `init.lua:2` once at start-up; no need to re-export +-- here. The single source of truth is `init.lua` so future refactors don't +-- have to chase which file currently publishes the alias. diff --git a/plugin/22_languages.lua b/plugin/22_languages.lua index 5f115f7..cd5ebed 100644 --- a/plugin/22_languages.lua +++ b/plugin/22_languages.lua @@ -1,3 +1,5 @@ +local Config = require('config') + local add = Config.add local now_if_args = Config.now_if_args local later = MiniDeps.later diff --git a/plugin/25_lsp.lua b/plugin/25_lsp.lua index 31528b9..e249872 100644 --- a/plugin/25_lsp.lua +++ b/plugin/25_lsp.lua @@ -50,7 +50,9 @@ now_if_args(function() }, }, }, - texlab = {}, + texlab = { + single_file_support = true, + }, julials = { settings = { julia = { diff --git a/plugin/27_image.lua b/plugin/27_image.lua index e228190..18a424a 100644 --- a/plugin/27_image.lua +++ b/plugin/27_image.lua @@ -24,7 +24,7 @@ later(function() end image.setup({ - backend = "kitty", + backend = "auto", integrations = { markdown = { enabled = true,