Skip to content

Commit

Permalink
Grammar tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
piersolenski committed Aug 15, 2024
1 parent efd4932 commit afa762b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/import/picker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ local function picker(opts)
return nil
end

-- add syntax highlighting to the rsults of the picker
-- Add syntax highlighting to the results of the picker
local currentFiletype = vim.bo.filetype
vim.api.nvim_create_autocmd("FileType", {
pattern = "TelescopeResults",
once = true, -- do not affect other Telescope windows
once = true, -- Do not affect other Telescope windows
callback = function(ctx)
-- add filetype highlighting
-- Add filetype highlighting
vim.api.nvim_buf_set_option(ctx.buf, "filetype", currentFiletype)

-- make discernible as the results are now colored
-- Make discernible as the results are now colored
local ns = vim.api.nvim_create_namespace("telescope-import")
vim.api.nvim_win_set_hl_ns(0, ns)
vim.api.nvim_set_hl(ns, "TelescopeMatching", { reverse = true })
Expand Down

0 comments on commit afa762b

Please sign in to comment.