diff options
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 9896a57..bdae127 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua | |||
| @@ -2,7 +2,7 @@ local M = {} | |||
| 2 | 2 | ||
| 3 | local map = vim.keymap.set | 3 | local map = vim.keymap.set |
| 4 | 4 | ||
| 5 | function M.lsp(buffer, client) | 5 | function M.set_lsp(buffer, client) |
| 6 | local opts = { | 6 | local opts = { |
| 7 | buffer = buffer, | 7 | buffer = buffer, |
| 8 | silent = true, | 8 | silent = true, |
| @@ -56,17 +56,23 @@ function M.lsp(buffer, client) | |||
| 56 | set_c_bindings() | 56 | set_c_bindings() |
| 57 | elseif client.name == "basedpyright" or client.name == "pyright" or client.name == "pylsp" then | 57 | elseif client.name == "basedpyright" or client.name == "pyright" or client.name == "pylsp" then |
| 58 | set_python_bindings() | 58 | set_python_bindings() |
| 59 | elseif client.name == "tsserver" or client.name == "vtsls" or client.name == "typescript_tools" then | 59 | elseif |
| 60 | client.name == "ts_ls" | ||
| 61 | or client.name == "tsgo" | ||
| 62 | or client.name == "tsserver" | ||
| 63 | or client.name == "vtsls" | ||
| 64 | or client.name == "typescript_tools" | ||
| 65 | then | ||
| 60 | set_npm_bindings() | 66 | set_npm_bindings() |
| 61 | end | 67 | end |
| 62 | end | 68 | end |
| 63 | end | 69 | end |
| 64 | 70 | ||
| 65 | function M.gitsigns() | 71 | function M.set_gitsigns() |
| 66 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) | 72 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) |
| 67 | end | 73 | end |
| 68 | 74 | ||
| 69 | function M.global() | 75 | function M.set_global() |
| 70 | local opts = { | 76 | local opts = { |
| 71 | silent = true, | 77 | silent = true, |
| 72 | } | 78 | } |
