This commit is contained in:
Christoffer Martinsson 2024-01-17 11:28:51 +01:00
parent 4d39e00dc4
commit 1674811bdf

View File

@ -123,23 +123,23 @@ require('lazy').setup({
},
},
{
'zbirenbaum/copilot-cmp',
event = { 'BufRead', 'BufNewFile' },
dependencies = {
{
'zbirenbaum/copilot.lua',
config = function()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = { markdown = true },
}
end,
},
},
config = function() require('copilot_cmp').setup() end,
},
-- {
-- 'zbirenbaum/copilot-cmp',
-- event = { 'BufRead', 'BufNewFile' },
-- dependencies = {
-- {
-- 'zbirenbaum/copilot.lua',
-- config = function()
-- require('copilot').setup {
-- suggestion = { enabled = false },
-- panel = { enabled = false },
-- filetypes = { markdown = true },
-- }
-- end,
-- },
-- },
-- config = function() require('copilot_cmp').setup() end,
-- },
{
-- Highlight, edit, and navigate code
@ -436,6 +436,20 @@ require('lazy').setup({
opts = {}
},
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
-- Utils ---------------------------------------------------
{
"max397574/better-escape.nvim",
@ -514,7 +528,7 @@ local on_attach = function(_, bufnr)
nmap('<leader>D', vim.lsp.buf.type_definition, 'Type Definition')
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
nmap('<A-f>', vim.lsp.buf.format(), 'Format current buffer')
-- nmap('<A-f>', vim.lsp.buf.format(), 'Format current buffer')
nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, 'Document Symbols')
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Workspace Symbols')