Add neogit and config

Fix various UI issues for better consistency
Enable winblend properly for blur in neovide
This commit is contained in:
Evie Litherland-Smith 2023-04-20 11:37:13 +01:00
parent 07b1bff3a2
commit a549c57b47
11 changed files with 51 additions and 25 deletions

View file

@ -1,7 +1,7 @@
return { return {
flavour = "macchiato", flavour = "macchiato",
term_colors = true, term_colors = true,
-- transparent_background = true, transparent_background = false,
integrations = { integrations = {
barbecue = { barbecue = {
dim_dirname = true, dim_dirname = true,
@ -17,6 +17,7 @@ return {
native_lsp = { native_lsp = {
enabled = true, enabled = true,
}, },
neogit = true,
notify = true, notify = true,
nvimtree = true, nvimtree = true,
navic = { navic = {

View file

@ -5,9 +5,9 @@ return {
enable = true, enable = true,
}, },
shortcut = { shortcut = {
{ icon = " ", desc = "Lazy", group = "@property", action = "Lazy", key = "l" }, { icon = " ", desc = "Lazy", group = "@property", action = "Lazy", key = "l" },
{ {
icon = " ", icon = " ",
icon_hl = "@variable", icon_hl = "@variable",
desc = "Files", desc = "Files",
group = "Label", group = "Label",
@ -22,20 +22,13 @@ return {
key = "n", key = "n",
}, },
{ {
icon = " ", icon = " ",
icon_hl = "@variable", icon_hl = "@variable",
desc = "Git DiffView", desc = "Neogit",
group = "Label", group = "Label",
action = "DiffviewOpen", action = "Neogit",
key = "g", key = "g",
}, },
{
icon = "",
desc = "Mason",
group = "@property",
action = "Mason",
key = "m",
},
}, },
}, },
} }

View file

@ -24,7 +24,9 @@ vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>")
vim.keymap.set("n", "<leader>m", "<cmd>Mason<CR>") vim.keymap.set("n", "<leader>m", "<cmd>Mason<CR>")
vim.keymap.set("n", "<leader>s", "<cmd>Dashboard<CR>") vim.keymap.set("n", "<leader>s", "<cmd>Dashboard<CR>")
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>") vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>")
vim.keymap.set("n", "<leader>g", "<cmd>Git<CR>") vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<CR>")
vim.keymap.set("n", "<leader>/", "<cmd>ToggleTerm<CR>")
vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=float<CR>")
vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>") vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>")
vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>") vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>")
vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>") vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>")
@ -49,12 +51,6 @@ vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
-- Aerial -- Aerial
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>") vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
-- diffview
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")
vim.keymap.set("n", "<leader>dc", "<cmd>DiffviewClose<cr>")
vim.keymap.set("n", "<leader>dh", "<cmd>DiffviewFileHistory<cr>")
vim.keymap.set("n", "<leader>df", "<cmd>DiffviewFileHistory %<cr>")
-- Trouble -- Trouble
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>") vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>")
vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>") vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>")

View file

@ -9,12 +9,27 @@ return {
}, },
}, },
ui = { ui = {
border = "rounded",
icons = { icons = {
lazy = "💤 ", cmd = "",
config = "",
event = "",
ft = "",
init = "",
keys = "",
plugin = "",
runtime = "",
source = "",
start = "",
task = "",
lazy = " ",
}, },
}, },
diff = {
cmd = "diffview.nvim",
},
checker = { checker = {
enabled = true, enabled = true,
frequency = 86400, frequency = 3600,
}, },
} }

View file

@ -0,0 +1,6 @@
return {
kind = "floating",
integrations = {
diffview = true,
},
}

View file

@ -1,4 +1,5 @@
vim.opt.guifont = "FiraCode Nerd Font:h14" vim.opt.winblend = 50
vim.opt.pumblend = 50
vim.g.neovide_padding_top = 5 vim.g.neovide_padding_top = 5
vim.g.neovide_padding_bottom = 5 vim.g.neovide_padding_bottom = 5

View file

@ -1,3 +1,5 @@
return { return {
background_colour = "#000000", -- background_colour = "NONE",
fps = 60,
render = "default", -- "minimal", "simple"
} }

View file

@ -6,6 +6,7 @@ return {
i = { ["<c-t>"] = trouble.open_with_trouble }, i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble }, n = { ["<c-t>"] = trouble.open_with_trouble },
}, },
winblend = vim.o.winblend,
}, },
extensions = { extensions = {
fzf = { fzf = {

View file

@ -7,5 +7,6 @@ return {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
}, },
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
opts = require "config.barbecue", -- opts = require "config.barbecue",
config = function() require("barbecue").setup(require "config.barbecue") end,
} }

View file

@ -0,0 +1,9 @@
return {
"TimUntersberger/neogit",
config = function() require("neogit").setup(require "config.neogit") end,
cmd = "Neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
},
}

View file

@ -1,4 +1,5 @@
return { return {
"ahmedkhalf/project.nvim", "ahmedkhalf/project.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function() require("project_nvim").setup(require "config.project") end, config = function() require("project_nvim").setup(require "config.project") end,
} }