diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-06-10 07:02:35 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-06-10 07:02:35 +0200 |
| commit | 3729fd6bffa9edaa3d9c0b9e1486be2861a0dfe2 (patch) | |
| tree | cbc6b6a56bed214b7efeb8e7eabb00acfde7ba22 /nvim/lua/config/keymaps.lua | |
| parent | fb8eb91fb404e8f8c9bcd6b201e18522e3200ac5 (diff) | |
| parent | cf47304c9f96b921ad12faf762574702e7fe562a (diff) | |
| download | dotfiles-3729fd6bffa9edaa3d9c0b9e1486be2861a0dfe2.tar.gz dotfiles-3729fd6bffa9edaa3d9c0b9e1486be2861a0dfe2.tar.bz2 dotfiles-3729fd6bffa9edaa3d9c0b9e1486be2861a0dfe2.zip | |
Merge branch 'master' of ssh://raspi2:/srv/git/dotfiles
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 558742d..b776697 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua | |||
| @@ -28,17 +28,27 @@ function M.lsp(buffer, client) | |||
| 28 | vim.cmd("cwindow") | 28 | vim.cmd("cwindow") |
| 29 | end, opts) | 29 | end, opts) |
| 30 | 30 | ||
| 31 | map("n", "<F6>", function() run_in_terminal("gmake test") end, opts) | 31 | map("n", "<F6>", function() |
| 32 | run_in_terminal("gmake test") | ||
| 33 | end, opts) | ||
| 32 | end | 34 | end |
| 33 | 35 | ||
| 34 | local function set_python_bindings() | 36 | local function set_python_bindings() |
| 35 | map("n", "<F6>", function() run_in_terminal("pytest") end, opts) | 37 | map("n", "<F6>", function() |
| 38 | run_in_terminal("pytest") | ||
| 39 | end, opts) | ||
| 36 | end | 40 | end |
| 37 | 41 | ||
| 38 | local function set_npm_bindings() | 42 | local function set_npm_bindings() |
| 39 | map("n", "<F5>", function() run_in_terminal("npm run build") end, opts) | 43 | map("n", "<F5>", function() |
| 40 | map("n", "<F6>", function() run_in_terminal("npm test") end, opts) | 44 | run_in_terminal("npm run build") |
| 41 | map("n", "<F7>", function() run_in_terminal("npm start") end, opts) | 45 | end, opts) |
| 46 | map("n", "<F6>", function() | ||
| 47 | run_in_terminal("npm test") | ||
| 48 | end, opts) | ||
| 49 | map("n", "<F7>", function() | ||
| 50 | run_in_terminal("npm start") | ||
| 51 | end, opts) | ||
| 42 | end | 52 | end |
| 43 | 53 | ||
| 44 | if client then | 54 | if client then |
