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 }