nvim/vim: parity

- add fzf to vim
- update looks of telescope
This commit is contained in:
Marco Thomas
2023-03-06 23:27:31 +01:00
parent b78405d1bd
commit aee29e8ca3
3 changed files with 25 additions and 9 deletions

View File

@@ -24,14 +24,15 @@ telescope.setup({
}
}
})
map("n", "<C-f>", "<cmd> Telescope git_files <CR>", default_opts)
map("n", "<C-g>", "<cmd> Telescope git_files <CR>", default_opts)
map("n", "<C-f>", "<cmd> Telescope find_files find_command=rg,--ignore,--hidden,--files<CR>", default_opts)
map("n", "<C-s>", "<cmd> Telescope live_grep<CR>", default_opts)
map("n", "<C-k>", "<cmd> Telescope keymaps<CR>", default_opts)
-- LSP
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts)
map("n", "<leader>ld", "<cmd> Telescope lsp_definitions<CR>", default_opts)
map("n", "<leader>le", "<cmd> Telescope diagnostics<CR>", default_opts)
map("n", "<leader>le", "<cmd> Telescope diagnostics previewer=false<CR>", default_opts)
map("n", "<leader>lf", "<cmd> lua vim.lsp.buf.format {async = true }<CR>", default_opts)
map("n", "<leader>lh", "<cmd> lua vim.lsp.buf.hover()<CR>", default_opts)
map("i", "<C-h>", "<cmd> lua vim.lsp.buf.signature_help()<CR>", default_opts)
@@ -119,3 +120,4 @@ cmp.setup({
-- nvim-tree
map("n", "<leader>tt", "<cmd> NvimTreeToggle<CR>", default_opts)
map("n", "<leader>tc", "<cmd> NvimTreeCollapse<CR>", default_opts)
map("n", "<leader>tr", "<cmd> NvimTreeRefresh<CR>", default_opts)

View File

@@ -3,13 +3,17 @@ require('telescope').setup({
prompt_prefix = "",
selection_caret = " ",
entry_prefix = " ",
border = false,
sorting_strategy = "ascending",
layout_strategy = "vertical",
layout_strategy = "bottom_pane",
layout_config = {
vertical = {
width = 160,
width = 140,
prompt_position = "top",
mirror = true,
},
bottom_pane = {
theme = get_ivy
}
}
},