some tweaks--overriding gitignore, not my favorite solution but it gets me what I need rn.
This commit is contained in:
parent
886ae5363d
commit
4f62a6e53f
2 changed files with 35 additions and 3 deletions
19
init.vim
19
init.vim
|
@ -101,9 +101,9 @@ nnoremap <leader>vp <cmd>e $SCR_PLUGINS<CR>
|
|||
nnoremap <leader>ve <cmd>e $PORTAGE<CR>
|
||||
|
||||
" Telescope binds
|
||||
nnoremap <leader>F <cmd>Telescope resume<cr>
|
||||
nnoremap <leader>F <cmd>Telescope resume<cr>
|
||||
nnoremap <leader>fr <cmd>Telescope resume<cr>
|
||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>ff <cmd>lua require("telescope.builtin").find_files({hidden=true, no_ignore=true})<cr>
|
||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||
|
@ -126,3 +126,18 @@ let g:lt_quickfix_list_toggle_map = '<leader>L' " unsure if I'm using this
|
|||
|
||||
" machine-specific settings
|
||||
source $CONFIG/local.vim
|
||||
|
||||
" coq popups
|
||||
" Disable the default popup accept operation.
|
||||
ino <silent><expr> <CR> pumvisible() ? (complete_info().selected > 0 ? "\<C-y>" : "\<C-e><CR>") : "<CR>"
|
||||
ino <silent><expr> <Esc> pumvisible() ? "\<C-e><Esc>" : "\<Esc>"
|
||||
ino <silent><expr> <C-c> pumvisible() ? "\<C-e><C-c>" : "\<C-c>"
|
||||
ino <silent><expr> <BS> pumvisible() ? "\<C-e><BS>" : "\<BS>"
|
||||
" sadly could not figure out how to rebind ctrl-p here?
|
||||
"ino <silent><expr> <C-p> pumvisible() ? (complete_info().selected == -1 ? "\<C-e><C-p>" : "\<C-y>") : "\<C-p>"
|
||||
ino <silent><expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
ino <silent><expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<BS>"
|
||||
|
||||
autocmd QuickFixCmdPost [^l]* cwindow
|
||||
autocmd QuickFixCmdPost l* lwindow
|
||||
nno <silent><F4> :echo "Making..."<CR> :silent make<CR> :echo "done."<CR>
|
||||
|
|
|
@ -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 = {
|
||||
["<C-Down>"] = 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', '<F5>', "<Cmd>lua require'dap'.continue()<CR>", {noremap=true})
|
||||
vim.api.nvim_set_keymap('n', '<F9>', "<Cmd>lua require'dap'.step_over()<CR>", {noremap=true})
|
||||
|
|
Loading…
Reference in a new issue