Compare commits
2 Commits
b9bbd3a49d
...
d16d653a85
Author | SHA1 | Date |
---|---|---|
Rob Watson | d16d653a85 | |
Rob Watson | 90ec768ab3 |
|
@ -22,6 +22,8 @@ require("lualine").setup({
|
|||
options = {
|
||||
icons_enabled = false,
|
||||
theme = "nord",
|
||||
component_separators = "",
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
|
@ -37,7 +39,7 @@ require("lualine").setup({
|
|||
lualine_c = {
|
||||
{
|
||||
"branch",
|
||||
padding = { left = 0 },
|
||||
padding = 1,
|
||||
},
|
||||
-- render coloured output from gitsigns, this doesn't seem to work with b:gitsigns_status:
|
||||
{
|
||||
|
@ -45,21 +47,21 @@ require("lualine").setup({
|
|||
return format_diff_element(vim.b.gitsigns_status_dict.added, "+")
|
||||
end,
|
||||
color = { fg = "#a3be8c" },
|
||||
padding = 0,
|
||||
padding = 1,
|
||||
},
|
||||
{
|
||||
function()
|
||||
return format_diff_element(vim.b.gitsigns_status_dict.changed, "~")
|
||||
end,
|
||||
color = { fg = "#ebcb8b" },
|
||||
padding = 0,
|
||||
padding = 1,
|
||||
},
|
||||
{
|
||||
function()
|
||||
return format_diff_element(vim.b.gitsigns_status_dict.removed, "-")
|
||||
end,
|
||||
color = { fg = "#bf616a" },
|
||||
padding = 0,
|
||||
padding = 1,
|
||||
},
|
||||
{
|
||||
"diagnostics",
|
||||
|
@ -94,7 +96,7 @@ require("lualine").setup({
|
|||
padding = { left = 1, right = 0 },
|
||||
},
|
||||
},
|
||||
lualine_y = { { "progress", padding = { left = 1, right = 0 } } },
|
||||
lualine_y = { { "progress", padding = { left = 1, right = 1 } } },
|
||||
lualine_z = { { "location", padding = { left = 1, right = 1 } } },
|
||||
},
|
||||
inactive_sections = {
|
||||
|
|
|
@ -82,11 +82,7 @@ cmp.setup({
|
|||
},
|
||||
-- https://github.com/hrsh7th/nvim-cmp/wiki/Advanced-techniques#disabling-completion-in-certain-contexts-such-as-comments
|
||||
enabled = function()
|
||||
local context = require("cmp.config.context")
|
||||
if vim.api.nvim_get_mode().mode == "c" then
|
||||
return true
|
||||
end
|
||||
return not context.in_treesitter_capture("comment") and not context.in_syntax_group("Comment")
|
||||
return true
|
||||
end,
|
||||
formatting = {
|
||||
fields = { "kind", "abbr", "menu" },
|
||||
|
|
Loading…
Reference in New Issue