From 4f62a6e53f2e893ee9bc261ceaaef0cf66039dda Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Mon, 18 Jul 2022 13:54:10 -0700 Subject: [PATCH] some tweaks--overriding gitignore, not my favorite solution but it gets me what I need rn. --- init.vim | 19 +++++++++++++++++-- lua/plugins.lua | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 572a0f8..ee1b741 100644 --- a/init.vim +++ b/init.vim @@ -101,9 +101,9 @@ nnoremap vp e $SCR_PLUGINS nnoremap ve e $PORTAGE " Telescope binds -nnoremap F Telescope resume +nnoremap F Telescope resume nnoremap fr Telescope resume -nnoremap ff Telescope find_files +nnoremap ff lua require("telescope.builtin").find_files({hidden=true, no_ignore=true}) nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags @@ -126,3 +126,18 @@ let g:lt_quickfix_list_toggle_map = 'L' " unsure if I'm using this " machine-specific settings source $CONFIG/local.vim + +" coq popups +" Disable the default popup accept operation. +ino pumvisible() ? (complete_info().selected > 0 ? "\" : "\") : "" +ino pumvisible() ? "\" : "\" +ino pumvisible() ? "\" : "\" +ino pumvisible() ? "\" : "\" +" sadly could not figure out how to rebind ctrl-p here? +"ino pumvisible() ? (complete_info().selected == -1 ? "\" : "\") : "\" +ino pumvisible() ? "\" : "\" +ino pumvisible() ? "\" : "\" + +autocmd QuickFixCmdPost [^l]* cwindow +autocmd QuickFixCmdPost l* lwindow +nno :echo "Making..." :silent make :echo "done." diff --git a/lua/plugins.lua b/lua/plugins.lua index 097193e..dcfcdd3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -85,6 +85,16 @@ return require('packer').startup(function(use) defaults = { prompt_prefix = " ", selection_caret = " ", + vimgrep_arguments = { + "rg", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + "--no-ignore", + }, mappings = { i = { [""] = actions.cycle_history_next, @@ -222,7 +232,13 @@ return require('packer').startup(function(use) vim.g.coq_settings = { auto_start = 'shut-up', keymap = { - pre_select = true + pre_select = true, + recommended = false + }, + display = { + pum = { + fast_close = false + } } } end @@ -414,6 +430,7 @@ return require('packer').startup(function(use) dap.configurations.c = dap.configurations.cpp dap.configurations.rust = dap.configurations.cpp + dap.configurations.zig = dap.configurations.cpp vim.api.nvim_set_keymap('n', '', "lua require'dap'.continue()", {noremap=true}) vim.api.nvim_set_keymap('n', '', "lua require'dap'.step_over()", {noremap=true})