init.lua: removed buildcmd, only needed in keybindings.lua

keybindings.lua: added grep_string to <leader>fs and spell_suggest to
<leader>ss
buildcmd.lua: searches the cwd for a build file and decides which build to use (build.zig, build.bat, build.sh)
This commit is contained in:
2023-01-28 23:24:54 -08:00
parent de564b9cba
commit 4363c8d7d5
3 changed files with 26 additions and 3 deletions
+4
View File
@@ -20,6 +20,10 @@ vim.keymap.set('n', '<leader>bb', save_all_and_build, opts)
-- Would love to have this be alt but that doesn't work...
vim.keymap.set('i', '<A-t>', '// TODO(twig): ', opts)
vim.keymap.set('i', '<A-y>', '// NOTE(twig): ', opts)
-- This is horrendous on windows, can't use nvim for almost a minute!
vim.keymap.set('n', 'K', '')
vim.keymap.set('n', '<leader>fs', '<cmd>Telescope grep_string<cr>', opts)
vim.keymap.set('n', '<leader>ss', '<cmd>Telescope spell_suggest', opts)
local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')