Skip to content

Commit

Permalink
Merge pull request #191 from Axlefublr/spelling
Browse files Browse the repository at this point in the history
yet another "fix README" PR
  • Loading branch information
rebelot authored May 12, 2024
2 parents 03cff30 + 2851793 commit c52391d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ are absolutely free to omit that if you're not an icon person.
```lua

local FileNameBlock = {
-- let's first set up some attributes needed by this component and it's children
-- let's first set up some attributes needed by this component and its children
init = function(self)
self.filename = vim.api.nvim_buf_get_name(0)
end,
Expand Down Expand Up @@ -730,7 +730,7 @@ Here's some classics!
https://user-images.githubusercontent.com/36300441/187189451-519e5d2b-115b-4f36-bfb3-7d4ec50bec05.mov

```lua
-- We're getting minimalists here!
-- We're getting minimalist here!
local Ruler = {
-- %l = current line number
-- %L = number of lines in the buffer
Expand All @@ -741,7 +741,7 @@ local Ruler = {
```

```lua
-- I take no credits for this! :lion:
-- I take no credits for this! 🦁
local ScrollBar ={
static = {
sbar = { '', '', '', '', '', '', '', '' }
Expand All @@ -760,13 +760,12 @@ local ScrollBar ={

### LSP

Nice work! You made it ~~jumped right~~ to the main courses! The finest rice is
Nice work! You ~~jumped right~~ made it to the main courses! The finest rice is
here.

<img width="398" alt="heirline_lsp" src="https://user-images.githubusercontent.com/36300441/187190679-b2860e44-cde6-484a-967e-3d48c479e471.png">

```lua

local LSPActive = {
condition = conditions.lsp_attached,
update = {'LspAttach', 'LspDetach'},
Expand All @@ -775,7 +774,7 @@ local LSPActive = {
-- provider = " [LSP]",

-- Or complicate things a bit and get the servers names
provider = function()
provider = function()
local names = {}
for i, server in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
table.insert(names, server.name)
Expand Down Expand Up @@ -861,7 +860,7 @@ local Navic = {
dec = function(c)
local line = bit.rshift(c, 16)
local col = bit.band(bit.rshift(c, 6), 1023)
local winnr = bit.band(c, 63)
local winnr = bit.band(c, 63)
return line, col, winnr
end
},
Expand Down

0 comments on commit c52391d

Please sign in to comment.