Disable spell checking in pascal files
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 52s
Details
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 52s
Details
This commit is contained in:
parent
561cdf5d2d
commit
10ca92d206
|
@ -14,6 +14,8 @@ local function setup_pascal()
|
||||||
os.execute("wget -o ~/.local/bin/ptop https://www.nickr.eu/data/ptop64")
|
os.execute("wget -o ~/.local/bin/ptop https://www.nickr.eu/data/ptop64")
|
||||||
os.execute("chmod +x ~/.local/bin/ptop")
|
os.execute("chmod +x ~/.local/bin/ptop")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.opt.spell = false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Setup and verify pascal tools when opening a pascal file
|
-- Setup and verify pascal tools when opening a pascal file
|
||||||
|
@ -22,6 +24,18 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||||
callback = setup_pascal,
|
callback = setup_pascal,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- @name leave_pascal
|
||||||
|
-- @param
|
||||||
|
-- @short Leave pascal and reverse any changes to my editor defaults
|
||||||
|
local function leave_pascal()
|
||||||
|
vim.opt.spell = true
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
||||||
|
pattern = { "*.pas" },
|
||||||
|
callback = leave_pascal,
|
||||||
|
})
|
||||||
|
|
||||||
-- @name auto_format
|
-- @name auto_format
|
||||||
-- @param
|
-- @param
|
||||||
-- @short The format function for pascal.
|
-- @short The format function for pascal.
|
||||||
|
|
Loading…
Reference in New Issue