make some fix

This commit is contained in:
gameloader 2022-10-29 18:49:44 +08:00
parent c366a7abfd
commit 948e1feea3
3 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@ M.load_default_options = function()
splitbelow = true, -- force all horizontal splits to go below current window
splitright = true, -- force all vertical splits to go to the right of current window
swapfile = false, -- creates a swapfile
autochdir = true, -- auto change working directory
termguicolors = true, -- set term gui colors (most terminals support this)
timeoutlen = 1000, -- time to wait for a mapped sequence to complete (in milliseconds)
title = true, -- set the title of window to the value of the titlestring

View File

@ -107,7 +107,7 @@ wk.register({
b = { ":Telescope buffers<CR>", "Open buffers" },
n = { ":ls<CR>", "Buffer numbers" },
c = { ":noh<CR>", "Cancel highlight" },
s = { ":lua require('spectre').open_file_search()<CR>", "Searching in buffer" },
s = { ":Telescope current_buffer_fuzzy_find<CR>", "Searching in buffer" },
},
})
-- change left and right tab
@ -167,6 +167,7 @@ wk.register({
.. ":lua require'dap'.terminate()<CR>"
.. ":lua require'dap.repl'.close()<CR>"
.. ":lua require'dapui'.close()<CR>"
.. ":DapVirtualTextDisable<CR>"
.. "<C-w>o<CR>",
"Stop debug",
},

View File

@ -2,7 +2,7 @@ require("code_runner").setup({
focus = false,
filetype = {
c = "cd $dir && gcc $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt -g -w -std=c++11 && $dir/$fileNameWithoutExt",
go = "cd $dir && go run $fileName",
python = "cd $dir && python3 $fileName",
},