From 7c2f6e3d4a96ddaeed197ad21e3a50d52465e0d1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 26 Dec 2022 15:35:04 +0100 Subject: [PATCH] nvim fixings --- .config/nvim/lua/plugins/copilot.lua | 2 +- .config/nvim/lua/plugins/nvim-cmp.lua | 4 ---- .config/nvim/lua/plugins/telescope.lua | 1 + .config/nvim/lua/plugins/zenbones.lua | 15 +++++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.config/nvim/lua/plugins/copilot.lua b/.config/nvim/lua/plugins/copilot.lua index 21f3e63..b8bd8b5 100644 --- a/.config/nvim/lua/plugins/copilot.lua +++ b/.config/nvim/lua/plugins/copilot.lua @@ -14,7 +14,7 @@ copilot.setup({ }, suggestion = { enabled = true, - auto_trigger = false, + auto_trigger = true, debounce = 75, keymap = { accept = "", diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua index 6113c62..d9d6d7e 100644 --- a/.config/nvim/lua/plugins/nvim-cmp.lua +++ b/.config/nvim/lua/plugins/nvim-cmp.lua @@ -43,10 +43,6 @@ cmp.setup({ [""] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }), [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping({ - i = cmp.mapping.abort(), - c = cmp.mapping.close(), - }), [""] = cmp.mapping({ i = cmp.mapping.abort(), c = cmp.mapping.close(), diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 7b28aec..4955d08 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -5,6 +5,7 @@ local previewers = require("telescope.previewers") vim.keymap.set("n", "b", 'lua require("telescope.builtin").buffers()') vim.keymap.set("n", "f", 'lua require("telescope.builtin").oldfiles()') vim.keymap.set("n", "", 'lua require("telescope.builtin").oldfiles()') +vim.keymap.set("n", "d", 'lua require("telescope.builtin").diagnostics()') vim.keymap.set("n", "e", 'lua require("telescope.builtin").git_files()') vim.keymap.set("n", "g", 'lua require("telescope.builtin").git_status()') vim.keymap.set("n", "a", 'lua require("telescope.builtin").lsp_code_actions()') diff --git a/.config/nvim/lua/plugins/zenbones.lua b/.config/nvim/lua/plugins/zenbones.lua index 4ceb5f4..284131c 100644 --- a/.config/nvim/lua/plugins/zenbones.lua +++ b/.config/nvim/lua/plugins/zenbones.lua @@ -14,23 +14,26 @@ local base = require("zenbones") local specs = lush.parse(function() return { CursorLine({ bg = "#f5f5f0" }), + Error({ fg = "#d9534f" }), CursorLineNr({ fg = "#BCAAA4", bg = "#f5f5f0" }), MsgArea({ fg = "#A1887F", bg = "#f1f1f1" }), String({ fg = "#2E7D32", gui = "italic" }), Comment({ fg = "#114499", gui = "bold,italic" }), CopilotSuggestion({ fg = "#0066cc", gui = "bold,italic" }), - LineNr({ fg = "#CFD8DC", gui = "bold,italic" }), - Indent1({ fg = "#FFEBEE", gui = "italic" }), - Indent2({ fg = "#E8F5E9", gui = "italic" }), - Indent3({ fg = "#E8F5E9", gui = "italic" }), - Indent4({ fg = "#FFF3E0", gui = "italic" }), - Indent5({ fg = "#E0F7FA", gui = "italic" }), + LineNr({ fg = "#9FA8AC", gui = "bold,italic" }), + LineNrAbove({ fg = "#9F080C", gui = "bold,italic" }), + Indent1({ fg = "#DFDF9A", gui = "italic" }), + Indent2({ fg = "#BAE1FF", gui = "italic" }), + Indent3({ fg = "#BAFFC9", gui = "italic" }), + Indent4({ fg = "#FFB3BA", gui = "italic" }), + Indent5({ fg = "#FFDFBA", gui = "italic" }), Indent6({ fg = "#F3E5F5", gui = "italic" }), NormalFloat({ bg = "#FFF9C4" }), FloatBorder({ fg = "#FFB74D", bg = "#FFF9C4" }), TelescopeNormal({ bg = "#EFEBE9" }), TelescopeBorder({ fg = "#A1887F", bg = "#EFEBE9" }), TelescopeSelection({ fg = "#FFFFFF", bg = "#1976D2" }), + DiagnosticSignError({ fg = "#ff2200", bg = "#fff5ff", gui = "bold" }), DiagnosticVirtualTextInfo({ fg = "#0033bb", bg = "#f7fcff", gui = "bold,italic" }), DiagnosticVirtualTextWarn({ fg = "#bb2200", bg = "#fff9f3", gui = "bold,italic" }), DiagnosticVirtualTextError({ fg = "#ff2200", bg = "#fff5f3", gui = "italic" }),