fix: typos in lua/

This commit is contained in:
grvxs 2021-08-06 16:50:25 +05:30
parent f3c44ce3a9
commit 9fc6a2e1cd
No known key found for this signature in database
GPG key ID: 08426A288E0F7DFC
3 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ M.setup = function()
require("core.autocmds").define_augroups { require("core.autocmds").define_augroups {
_dashboard = { _dashboard = {
-- seems to be nobuflisted that makes my stuff disapear will do more testing -- seems to be nobuflisted that makes my stuff disappear will do more testing
{ {
"FileType", "FileType",
"dashboard", "dashboard",

View file

@ -100,7 +100,7 @@ function M.set_cursor_to_prev_pos(winnr)
local range = location.targetRange or location.range local range = location.targetRange or location.range
local cursor_pos = { range.start.line + 1, range.start.character } local cursor_pos = { range.start.line + 1, range.start.character }
-- Set the winnr to the floting window if none was passed in -- Set the winnr to the floating window if none was passed in
winnr = winnr or M.floating_win winnr = winnr or M.floating_win
-- Set the cursor at the correct position in the floating window -- Set the cursor at the correct position in the floating window
vim.api.nvim_win_set_cursor(winnr, cursor_pos) vim.api.nvim_win_set_cursor(winnr, cursor_pos)

View file

@ -16,7 +16,7 @@ local function r_inspect_settings(structure, limit, separator)
if ts == "table" then if ts == "table" then
for k, v in pairs(structure) do for k, v in pairs(structure) do
-- replace non alpha keys wih ["key"] -- replace non alpha keys with ["key"]
if tostring(k):match "[^%a_]" then if tostring(k):match "[^%a_]" then
k = '["' .. tostring(k) .. '"]' k = '["' .. tostring(k) .. '"]'
end end