fix: c-p to search file

This commit is contained in:
2024-02-21 17:41:48 +08:00
parent 0b7374d42a
commit 820d501911
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ keymap.set('n', '<Leader>e', ':NvimTreeToggle<CR>', { noremap = true, silent = t
-- telescope
-- keymap.set('n', '<C-p>', ":lua require'telescope.builtin'.find_files()<CR>", {noremap = true, silent = true})
keymap.set('n', '<C-p>', ":FzfLua files<CR>", { noremap = true, silent = true })
keymap.set('n', '<C-p>', ":Telescope find_files<CR>", { noremap = true, silent = true })
-- dashboard
keymap.set('n', '<Leader>;', ':Dashboard<CR>', { noremap = true, silent = true })
+3 -2
View File
@@ -11,8 +11,9 @@ require("lazy").setup({
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.lang.go" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins
{ import = "plugins" },
+6
View File
@@ -54,3 +54,9 @@ vim.g.gitblame_enabled = 0
vim.cmd([[
autocmd BufReadPost * if line("'\"") >= 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
]])
-- vim.cmd('let g:nvcode_termcolors=256')
-- --local cc = 'gruvbox'
-- local cc = 'lunar'
-- vim.o.background="dark"
-- vim.cmd('colorscheme ' .. cc)