nvim fixings

This commit is contained in:
Daniel Lundin 2022-12-26 15:35:04 +01:00
parent d8de4826ff
commit 7c2f6e3d4a
4 changed files with 11 additions and 11 deletions

View file

@ -14,7 +14,7 @@ copilot.setup({
},
suggestion = {
enabled = true,
auto_trigger = false,
auto_trigger = true,
debounce = 75,
keymap = {
accept = "<C-j>",

View file

@ -43,10 +43,6 @@ cmp.setup({
["<C-n>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-u>"] = cmp.mapping.scroll_docs(4),
["<Escape>"] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
["<C-e>"] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),

View file

@ -5,6 +5,7 @@ local previewers = require("telescope.previewers")
vim.keymap.set("n", "<leader>b", '<cmd>lua require("telescope.builtin").buffers()<CR>')
vim.keymap.set("n", "<leader>f", '<cmd>lua require("telescope.builtin").oldfiles()<CR>')
vim.keymap.set("n", "<space>", '<cmd>lua require("telescope.builtin").oldfiles()<CR>')
vim.keymap.set("n", "<leader>d", '<cmd>lua require("telescope.builtin").diagnostics()<CR>')
vim.keymap.set("n", "<leader>e", '<cmd>lua require("telescope.builtin").git_files()<CR>')
vim.keymap.set("n", "<leader>g", '<cmd>lua require("telescope.builtin").git_status()<CR>')
vim.keymap.set("n", "<leader>a", '<cmd>lua require("telescope.builtin").lsp_code_actions()<CR>')

View file

@ -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" }),