Skip to content

(nut) add buf.filetype_icon#79

Merged
MunifTanjim merged 1 commit intomainfrom
nut-filetype-icon
Jan 2, 2024
Merged

(nut) add buf.filetype_icon#79
MunifTanjim merged 1 commit intomainfrom
nut-filetype-icon

Conversation

@MunifTanjim
Copy link
Copy Markdown
Owner

@MunifTanjim MunifTanjim commented Jan 2, 2024

resolves #77

Example Usage

stl:add_item({
  hl = { bg = color.bg1 },
  prefix = " ",
  content = {
    nut.buf.filetype_icon({ suffix = " " }),
    nut.buf.filetype({}),
  },
  suffix = " ",
})

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6024f75) 100.00% compared to head (3db9e3b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #79   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        38    +1     
  Lines         2530      2550   +20     
=========================================
+ Hits          2530      2550   +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MunifTanjim MunifTanjim merged commit 1f2069e into main Jan 2, 2024
@MunifTanjim MunifTanjim deleted the nut-filetype-icon branch January 2, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add filetype icon for filetype component

1 participant