diff options
Diffstat (limited to 'nvim/lua/config')
| -rw-r--r-- | nvim/lua/config/autocmds.lua | 4 | ||||
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 88a8c6c..2cca1df 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua | |||
| @@ -35,7 +35,7 @@ vim.api.nvim_create_autocmd("QuitPre", { | |||
| 35 | vim.api.nvim_create_autocmd("LspAttach", { | 35 | vim.api.nvim_create_autocmd("LspAttach", { |
| 36 | callback = function(event) | 36 | callback = function(event) |
| 37 | local client = vim.lsp.get_client_by_id(event.data.client_id) | 37 | local client = vim.lsp.get_client_by_id(event.data.client_id) |
| 38 | local keymaps = require("config.keymaps") | 38 | |
| 39 | keymaps.lsp(event.buf, client) | 39 | require("config.keymaps").set_lsp(event.buf, client) |
| 40 | end, | 40 | end, |
| 41 | }) | 41 | }) |
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 9896a57..2088995 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, |
| @@ -62,11 +62,11 @@ function M.lsp(buffer, client) | |||
| 62 | end | 62 | end |
| 63 | end | 63 | end |
| 64 | 64 | ||
| 65 | function M.gitsigns() | 65 | function M.set_gitsigns() |
| 66 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) | 66 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) |
| 67 | end | 67 | end |
| 68 | 68 | ||
| 69 | function M.global() | 69 | function M.set_global() |
| 70 | local opts = { | 70 | local opts = { |
| 71 | silent = true, | 71 | silent = true, |
| 72 | } | 72 | } |
