From 23e3bee7d3f16f16950f33bacf7745d817f29eb3 Mon Sep 17 00:00:00 2001 From: Joel Lau Date: Sat, 17 Feb 2024 14:00:43 +0800 Subject: [PATCH] use j and k for popups --- init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 6e763861..97c9272d 100644 --- a/init.lua +++ b/init.lua @@ -391,6 +391,8 @@ require('telescope').setup { i = { [''] = false, [''] = false, + [''] = require('telescope.actions').move_selection_next, + [''] = require('telescope.actions').move_selection_previous, }, }, }, @@ -617,11 +619,11 @@ require('mason-lspconfig').setup() -- define the property 'filetypes' to the map in question. local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, -- pyright = {}, -- rust_analyzer = {}, -- tsserver = {}, - -- html = { filetypes = { 'html', 'twig', 'hbs'} }, + html = { filetypes = { 'html' } }, lua_ls = { Lua = { @@ -675,8 +677,8 @@ cmp.setup { completeopt = 'menu,menuone,noinsert', }, mapping = cmp.mapping.preset.insert { - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.select_prev_item(), + [''] = cmp.mapping.select_next_item(), + [''] = cmp.mapping.select_prev_item(), [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete {},