make some fix
This commit is contained in:
parent
c366a7abfd
commit
948e1feea3
@ -24,6 +24,7 @@ M.load_default_options = function()
|
|||||||
splitbelow = true, -- force all horizontal splits to go below current window
|
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
|
splitright = true, -- force all vertical splits to go to the right of current window
|
||||||
swapfile = false, -- creates a swapfile
|
swapfile = false, -- creates a swapfile
|
||||||
|
autochdir = true, -- auto change working directory
|
||||||
termguicolors = true, -- set term gui colors (most terminals support this)
|
termguicolors = true, -- set term gui colors (most terminals support this)
|
||||||
timeoutlen = 1000, -- time to wait for a mapped sequence to complete (in milliseconds)
|
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
|
title = true, -- set the title of window to the value of the titlestring
|
||||||
|
@ -107,7 +107,7 @@ wk.register({
|
|||||||
b = { ":Telescope buffers<CR>", "Open buffers" },
|
b = { ":Telescope buffers<CR>", "Open buffers" },
|
||||||
n = { ":ls<CR>", "Buffer numbers" },
|
n = { ":ls<CR>", "Buffer numbers" },
|
||||||
c = { ":noh<CR>", "Cancel highlight" },
|
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
|
-- change left and right tab
|
||||||
@ -167,6 +167,7 @@ wk.register({
|
|||||||
.. ":lua require'dap'.terminate()<CR>"
|
.. ":lua require'dap'.terminate()<CR>"
|
||||||
.. ":lua require'dap.repl'.close()<CR>"
|
.. ":lua require'dap.repl'.close()<CR>"
|
||||||
.. ":lua require'dapui'.close()<CR>"
|
.. ":lua require'dapui'.close()<CR>"
|
||||||
|
.. ":DapVirtualTextDisable<CR>"
|
||||||
.. "<C-w>o<CR>",
|
.. "<C-w>o<CR>",
|
||||||
"Stop debug",
|
"Stop debug",
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@ require("code_runner").setup({
|
|||||||
focus = false,
|
focus = false,
|
||||||
filetype = {
|
filetype = {
|
||||||
c = "cd $dir && gcc $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
|
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",
|
go = "cd $dir && go run $fileName",
|
||||||
python = "cd $dir && python3 $fileName",
|
python = "cd $dir && python3 $fileName",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user