diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 888c3a9..0268984 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -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('D', vim.lsp.buf.type_definition, 'Type Definition') nmap('K', vim.lsp.buf.hover, 'Hover Documentation') nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') - nmap('', vim.lsp.buf.format(), 'Format current buffer') + -- nmap('', vim.lsp.buf.format(), 'Format current buffer') nmap('ds', require('telescope.builtin').lsp_document_symbols, 'Document Symbols') nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Workspace Symbols')