From 221bea9e0b0bc9d9ca2a259e375d5df2c924e3f0 Mon Sep 17 00:00:00 2001 From: William Ball Date: Sun, 11 May 2025 18:57:45 -0700 Subject: [PATCH] make sml keybindings only apply in sml files --- nvim/.config/nvim/lua/plugins/languages/sml.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/languages/sml.lua b/nvim/.config/nvim/lua/plugins/languages/sml.lua index 440c5d5..202e5d6 100644 --- a/nvim/.config/nvim/lua/plugins/languages/sml.lua +++ b/nvim/.config/nvim/lua/plugins/languages/sml.lua @@ -8,22 +8,26 @@ return { { 'rs', [[:SMLReplStart]], - desc = 'SML start repl' + desc = 'SML start repl', + ft = 'sml' }, { 'rc', [[:SMLReplClear]], - desc = 'SML clear repl' + desc = 'SML clear repl', + ft = 'sml' }, { 'rb', [[:SMLReplBuild]], - desc = 'SML load current file/CM project in repl' + desc = 'SML load current file/CM project in repl', + ft = 'sml' }, { 'ro', [[:SMLReplOpen]], - desc = 'SML open current structure in repl' + desc = 'SML open current structure in repl', + ft = 'sml' }, } }