Skip to content

Commit

Permalink
Mention how to display filetype in readme (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
joebb97 authored Jan 18, 2025
1 parent 1fd5abd commit 6742c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ require('lint').linters_by_ft = {
}
```

To get the `filetype` of a buffer you can run `:= vim.bo.filetype`.

Then setup a autocmd to trigger linting. For example:

```vimL
Expand Down

0 comments on commit 6742c6e

Please sign in to comment.