minor fix

This commit is contained in:
js0ny 2025-02-25 12:34:34 +00:00
parent 0cc9ea310b
commit ec73a87334
10 changed files with 898 additions and 279 deletions

View file

@ -1,19 +1,17 @@
return {
{ import = "plugins.mod.nvim-cmp" },
{
"saadparwaiz1/cmp_luasnip"
"saadparwaiz1/cmp_luasnip",
},
{
"L3MON4D3/LuaSnip",
build = "make install_jsregexp",
config = function()
require("luasnip.loaders.from_vscode").load_standalone(
{
path = "~/.config/zed/snippets/c.json" }
)
require("luasnip.loaders.from_vscode").lazy_load({ paths = "~/.config/lsp-snippets" })
-- require("luasnip.loaders.from_vscode").lazy_load()
end,
-- TODO: Remove this, simply delete this will let nvim-cmp not work
dependencies = { "rafamadriz/friendly-snippets" },
-- dependencies = { "rafamadriz/friendly-snippets" },
},
{
"zbirenbaum/copilot-cmp",

View file

@ -2,7 +2,7 @@ local lualine = require("lualine")
-- Color table for highlights
local colors = require("config.colors")
-- local colors = require("config.colors")
local components = require("plugins.mod.lualine.components")
--[[
@ -19,39 +19,40 @@ local config = {
-- Disable sections and component separators
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
theme = {
-- We are going to use lualine_c an lualine_x as left and
-- right section. Both are highlighted by c theme . So we
-- are just setting default looks o statusline
-- normal = { c = { fg = colors.mantle, bg = colors.mantle } },
-- visual = { c = { fg = colors.mantle, bg = colors.mauve } },
-- normal = { c = { fg = colors.mantle, bg = colors.sapphire } },
inactive = { c = { fg = colors.mantle, bg = colors.mantle } },
normal = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.n,
},
b = {
bg = colors.scheme.surface2,
},
c = {
bg = colors.scheme.crust,
},
},
visual = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.v,
},
},
insert = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.i,
},
},
},
theme = "catppuccin",
-- theme = {
-- -- We are going to use lualine_c an lualine_x as left and
-- -- right section. Both are highlighted by c theme . So we
-- -- are just setting default looks o statusline
-- -- normal = { c = { fg = colors.mantle, bg = colors.mantle } },
-- -- visual = { c = { fg = colors.mantle, bg = colors.mauve } },
-- -- normal = { c = { fg = colors.mantle, bg = colors.sapphire } },
-- inactive = { c = { fg = colors.mantle, bg = colors.mantle } },
-- normal = {
-- a = {
-- fg = colors.scheme.mantle,
-- bg = colors.mode.n,
-- },
-- b = {
-- bg = colors.scheme.surface2,
-- },
-- c = {
-- bg = colors.scheme.crust,
-- },
-- },
-- visual = {
-- a = {
-- fg = colors.scheme.mantle,
-- bg = colors.mode.v,
-- },
-- },
-- insert = {
-- a = {
-- fg = colors.scheme.mantle,
-- bg = colors.mode.i,
-- },
-- },
-- },
},
sections = {
-- these are to remove the defaults