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', -- 'zbirenbaum/copilot-cmp',
event = { 'BufRead', 'BufNewFile' }, -- event = { 'BufRead', 'BufNewFile' },
dependencies = { -- dependencies = {
{ -- {
'zbirenbaum/copilot.lua', -- 'zbirenbaum/copilot.lua',
config = function() -- config = function()
require('copilot').setup { -- require('copilot').setup {
suggestion = { enabled = false }, -- suggestion = { enabled = false },
panel = { enabled = false }, -- panel = { enabled = false },
filetypes = { markdown = true }, -- filetypes = { markdown = true },
} -- }
end, -- end,
}, -- },
}, -- },
config = function() require('copilot_cmp').setup() end, -- config = function() require('copilot_cmp').setup() end,
}, -- },
{ {
-- Highlight, edit, and navigate code -- Highlight, edit, and navigate code
@ -436,6 +436,20 @@ require('lazy').setup({
opts = {} 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 --------------------------------------------------- -- Utils ---------------------------------------------------
{ {
"max397574/better-escape.nvim", "max397574/better-escape.nvim",
@ -514,7 +528,7 @@ local on_attach = function(_, bufnr)
nmap('<leader>D', vim.lsp.buf.type_definition, 'Type Definition') nmap('<leader>D', vim.lsp.buf.type_definition, 'Type Definition')
nmap('K', vim.lsp.buf.hover, 'Hover Documentation') nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature 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>ds', require('telescope.builtin').lsp_document_symbols, 'Document Symbols')
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Workspace Symbols') nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Workspace Symbols')