[-] noornee@lemmy.ml 5 points 1 year ago

gottem lmao

4
submitted 1 year ago* (last edited 1 year ago) by noornee@lemmy.ml to c/memes@lemmy.ml
1
submitted 1 year ago* (last edited 1 year ago) by noornee@lemmy.ml to c/neovim@sopuli.xyz

i currently use Iosevka Nerd Font.

the cancel icon (X) looks too big and i want to change it to lowercase (x). i looked through the nvim-web-devicons readme and i also tried printing out all the available icons there

i.e.

local devicons = require("nvim-web-devicons").get_icons()
for _, value in pairs(devicons) do
	for i, v in pairs(value) do
		print(i .. "==>" .. v .. "\n")
	end
end

but i couldnt find an icon with a name that matches X or cancel. what can i do to override this and replace with a custom one?

[edit] i use barbar.nvim for buffers btw.

i just tried akinsho/bufferline and the cancel icon looked normal. i suppose this is a barbar issue

[edit]:

okay turns out it was a barbar issue. just had to read through the README.md properly haha.

M.config = function()
	require("barbar").setup({
		icons = {
			button = "x", -- customize it to anything 
		},
	})
end

2
submitted 1 year ago by noornee@lemmy.ml to c/golang@lemmy.ml

I'm trying to find a bson struct tag to create a unique index just like the one in the image attached to this post but for mongodb. i tried searching and i found nothing Close to what i need but this stackoverflow post https://stackoverflow.com/questions/30831316/how-to-specify-a-struct-with-a-multi-column-unique-index-for-gorm

noornee

joined 1 year ago