Compare commits
No commits in common. "dc397f7d60246fc50695e49d2e01017f2676663a" and "a091ec59594260351d63b6858e63f65cd436f1cd" have entirely different histories.
dc397f7d60
...
a091ec5959
1
init.vim
1
init.vim
@ -43,7 +43,6 @@ source ~/.config/nvim/plugin-confs/presence.lua
|
||||
source ~/.config/nvim/plugin-confs/treesitter.lua
|
||||
source ~/.config/nvim/plugin-confs/whichkey.lua
|
||||
source ~/.config/nvim/plugin-confs/telescope.lua
|
||||
source ~/.config/nvim/plugin-confs/telescope-file-browser.lua
|
||||
|
||||
source ~/.config/nvim/plugin-confs/code_actions.lua
|
||||
source ~/.config/nvim/plugin-confs/goto-preview.lua
|
||||
|
@ -48,18 +48,18 @@ nmap <leader>bn :bnext<CR>
|
||||
nmap <leader>bp :bprev<CR>
|
||||
|
||||
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
||||
nmap <leader>cc :vert Copilot<CR>
|
||||
nmap <leader>cd :Telescope diagnostics<CR>
|
||||
nmap <leader>cp :vert Copilot panel<CR>
|
||||
nmap <leader>cs :lua require("copilot.suggestion").toggle_auto_trigger()<CR>
|
||||
" nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||
" nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||
|
||||
nnoremap <leader>ff :Telescope find_files<cr>
|
||||
nnoremap <leader>fg :Telescope live_grep<cr>
|
||||
nnoremap <leader>fb :Telescope buffers<cr>
|
||||
" nmap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||
" nmap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||
" nmap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||
nnoremap <leader>fh :Telescope help_tags<cr>
|
||||
nmap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||
nmap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||
nmap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||
|
||||
nmap <leader>gb :Gitsigns blame_line<CR>
|
||||
nmap <leader>gc :Telescope git_commits<CR>
|
||||
@ -73,7 +73,7 @@ nnoremap gpd <cmd>lua require('goto-preview').goto_preview_definition()<CR>
|
||||
nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR>
|
||||
|
||||
nmap <leader>hc :Telescope commands<CR>
|
||||
nnoremap <leader>hv :Telescope help_tags<cr>
|
||||
nmap <leader>hh :Telescope tags<CR>
|
||||
nmap <leader>hk :Telescope keymaps<CR>
|
||||
nmap <leader>hs :Telescope spell_suggest<CR>
|
||||
|
||||
@ -98,8 +98,7 @@ nmap <leader>lw :Telescope lsp_dynamic_workspace_symbols<CR>
|
||||
|
||||
nmap <leader>n :NvimTreeToggle<CR>
|
||||
|
||||
nmap <leader>ob :Telescope file_browser<CR>
|
||||
nmap <leader>oB :FloatermNew --title=bpytop --opener=vsplit bpytop<CR>
|
||||
nmap <leader>ob :FloatermNew --title=bpytop --opener=vsplit bpytop<CR>
|
||||
nmap <leader>od :FloatermNew --title=lazydocker --opener=vsplit lazydocker<CR>
|
||||
nmap <leader>of :wa<CR>:FloatermToggle floatterm<CR>
|
||||
nmap <leader>oh :FloatermNew --title=floaterm --name=split-term --opener=edit --wintype=split --position=botright --height=0.45<CR>
|
||||
@ -122,6 +121,7 @@ nmap <leader>s/ :Telescope search_history<CR>
|
||||
|
||||
nnoremap <silent> <Leader>tc :Telescope colorscheme<CR>
|
||||
nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR>
|
||||
nmap <leader>to :SymbolsOutline<CR>
|
||||
nmap <leader>tp :FloatermToggle ipython<CR>
|
||||
nmap <leader>tP :FloatermToggle ipython-full<CR>
|
||||
nmap <leader>tt :FloatermToggle split-term<CR>
|
||||
|
@ -15,7 +15,7 @@ require('packer').startup(function(use)
|
||||
|
||||
use {
|
||||
"zbirenbaum/copilot.lua",
|
||||
event = "VimEnter",
|
||||
after = "lualine.nvim",
|
||||
config = function ()
|
||||
vim.defer_fn(function()
|
||||
require('copilot').setup({
|
||||
@ -27,7 +27,7 @@ require('packer').startup(function(use)
|
||||
jump_next = "]]",
|
||||
accept = "<CR>",
|
||||
refresh = "gr",
|
||||
open = "<C-CR>"
|
||||
open = "<M-CR>"
|
||||
},
|
||||
},
|
||||
suggestion = {
|
||||
@ -56,7 +56,6 @@ require('packer').startup(function(use)
|
||||
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
|
||||
server_opts_overrides = {},
|
||||
})
|
||||
require("copilot.suggestion").toggle_auto_trigger()
|
||||
end, 100)
|
||||
end,
|
||||
}
|
||||
@ -66,7 +65,7 @@ require('packer').startup(function(use)
|
||||
after = { "copilot.lua" },
|
||||
config = function ()
|
||||
require("copilot_cmp").setup({
|
||||
method = "getCompletionsCycling",
|
||||
-- method = "getCompletionsCycling",
|
||||
-- formatters = {
|
||||
-- insert_text = require("copilot_cmp.format").remove_existing
|
||||
-- }
|
||||
@ -147,10 +146,6 @@ require('packer').startup(function(use)
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim'
|
||||
}
|
||||
use {
|
||||
'nvim-telescope/telescope-file-browser.nvim'
|
||||
}
|
||||
|
||||
use {
|
||||
'ojroques/nvim-lspfuzzy'
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ db.custom_center = {
|
||||
action ='SessionLoad'},
|
||||
{icon = ' ',
|
||||
desc = 'Recently opened files ',
|
||||
action = 'Telescope oldfiles',
|
||||
action = 'DashboardFindHistory',
|
||||
shortcut = 'SPC f h'},
|
||||
{icon = ' ',
|
||||
desc = 'Find File ',
|
||||
@ -23,7 +23,7 @@ db.custom_center = {
|
||||
shortcut = 'SPC f f'},
|
||||
{icon = ' ',
|
||||
desc ='File Browser ',
|
||||
action = 'Telescope file_browser',
|
||||
action = 'NvimTreeToggle',
|
||||
shortcut = 'SPC f b'},
|
||||
{icon = ' ',
|
||||
desc = 'Find word ',
|
||||
|
@ -183,9 +183,10 @@ for _, lsp in ipairs(servers) do
|
||||
}
|
||||
end
|
||||
|
||||
-- cmp.event:on("menu_opened", function()
|
||||
-- vim.b.copilot_suggestion_hidden = true
|
||||
-- end)
|
||||
-- cmp.event:on("menu_closed", function()
|
||||
-- vim.b.copilot_suggestion_hidden = false
|
||||
-- end)
|
||||
|
||||
cmp.event:on("menu_opened", function()
|
||||
vim.b.copilot_suggestion_hidden = true
|
||||
end)
|
||||
cmp.event:on("menu_closed", function()
|
||||
vim.b.copilot_suggestion_hidden = false
|
||||
end)
|
||||
|
@ -1,25 +0,0 @@
|
||||
local fb_actions = require "telescope".extensions.file_browser.actions
|
||||
require("telescope").setup {
|
||||
extensions = {
|
||||
file_browser = {
|
||||
-- theme = "ivy",
|
||||
-- disables netrw and use telescope-file-browser in its place
|
||||
hijack_netrw = true,
|
||||
mappings = {
|
||||
["i"] = {
|
||||
-- your custom insert mode mappings
|
||||
["<C-h>"] = fb_actions.goto_home_dir,
|
||||
["<C-x>"] = function(prompt_bufnr)
|
||||
end
|
||||
},
|
||||
["n"] = {
|
||||
-- your custom normal mode mappings
|
||||
f = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
-- To get telescope-file-browser loaded and working with telescope,
|
||||
-- you need to call load_extension, somewhere after setup function:
|
||||
require("telescope").load_extension "file_browser"
|
Loading…
Reference in New Issue
Block a user