aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/config/keymaps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
-rw-r--r--nvim/lua/config/keymaps.lua14
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
3local map = vim.keymap.set 3local map = vim.keymap.set
4 4
5function M.lsp(buffer, client) 5function 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
63end 69end
64 70
65function M.gitsigns() 71function 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)
67end 73end
68 74
69function M.global() 75function M.set_global()
70 local opts = { 76 local opts = {
71 silent = true, 77 silent = true,
72 } 78 }