From 7aad945ee7bdd5477b1557e6d9526370ad38f96e Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Wed, 1 May 2024 12:09:54 +0200 Subject: [PATCH] [neovim] Update config --- .config/nvim/lua/core/options.lua | 5 +---- .config/nvim/lua/plugins/cmp.lua | 2 +- .config/nvim/lua/plugins/lualine.lua | 5 +++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/core/options.lua b/.config/nvim/lua/core/options.lua index c3d30ff..9ad065d 100644 --- a/.config/nvim/lua/core/options.lua +++ b/.config/nvim/lua/core/options.lua @@ -25,8 +25,7 @@ vim.opt.number = true vim.opt.laststatus = 3 vim.opt.showcmd = false vim.opt.ruler = false --- vim.opt.cc = "80" -vim.opt.listchars = "tab: ,trail:Ç" +vim.opt.listchars = "tab: ,trail:Ç" vim.opt.list = true vim.opt.expandtab = true vim.opt.shiftwidth = 4 @@ -47,6 +46,4 @@ vim.opt.foldlevel = 99 vim.opt.foldlevelstart = 99 vim.opt.foldcolumn = "1" vim.opt.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:,diff: ]] - --- experimental vim.opt.cmdheight = 0 -- Number of screen lines to use for the command-line diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 9533fda..cf572d3 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -59,7 +59,7 @@ cmp.setup({ [""] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }), [""] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }), [""] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }), - ["q"] = cmp.mapping({ + [""] = cmp.mapping({ i = cmp.mapping.abort(), c = cmp.mapping.close(), }), diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 3bc3116..568f95f 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -114,6 +114,11 @@ require("lualine").setup({ }, }, lsp_progress, + { + require("noice").api.statusline.mode.get, + cond = require("noice").api.statusline.mode.has, + color = { fg = "#ff9e64" }, + }, { require("noice").api.status.search.get, cond = require("noice").api.status.search.has,