From 75c7e93a3f4ed986599fff3bc7910f51e2c81337 Mon Sep 17 00:00:00 2001 From: twig Date: Mon, 6 Feb 2023 22:38:54 -0800 Subject: [PATCH] pointer keybind, uses alt because powershell/cmd/windows eats ctrl+. --- lua/keybindings.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 832f2e3..ca8a20b 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -17,9 +17,10 @@ vim.keymap.set('n', 'ff', project_files, opts) vim.keymap.set('n', 'fb', 'Telescope buffers', opts) vim.keymap.set('n', 'bb', save_all_and_build, opts) -- TODO: get fancy and read the commentstring and user --- Would love to have this be alt but that doesn't work... vim.keymap.set('i', '', '// TODO(twig): ', opts) vim.keymap.set('i', '', '// NOTE(twig): ', opts) +--vim.keymap.set('i', '', '->', opts) +vim.api.nvim_set_keymap('i', '', '->', opts) -- This is horrendous on windows, can't use nvim for almost a minute! vim.keymap.set('n', 'K', '') vim.keymap.set('n', 'fs', 'Telescope grep_string', opts) @@ -27,7 +28,7 @@ vim.keymap.set('n', 'ss', 'Telescope spell_suggest', opts) vim.keymap.set('n', 't', 'Telescope', opts) local on_attach = function(client, bufnr) - vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') + vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') -- Mappings local bufopts = { noremap=true, silent=true, buffer=bufnr }