Skip to content

Fix issue with neovim 12 - #47

Open
sak96 wants to merge 2 commits into
psliwka:masterfrom
sak96:master
Open

Fix issue with neovim 12#47
sak96 wants to merge 2 commits into
psliwka:masterfrom
sak96:master

Conversation

@sak96

@sak96 sak96 commented Apr 7, 2026

Copy link
Copy Markdown

Details: #46 (comment)

Comment thread autoload/dirtytalk.vim Outdated
call writefile(l:wordlist_full, l:wordlist_output_file)
let l:spell_dir = spellfile#WritableSpellDir().'/'
if has("nvim-0.12")
let l:spell_dir = stdpath('data').'/site/spell'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried your branch while this PR is merged, and looks like you are missing a /, without that it installs it to ~/.local/share/nvim/site/spellprogramming.utf.spl instead of ~/.local/share/nvim/site/spell/programming.utf.spl.

Suggested change
let l:spell_dir = stdpath('data').'/site/spell'
let l:spell_dir = stdpath('data').'/site/spell/'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the changes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@datwaft any more changes required ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my tests it should be good

@sak96
sak96 requested a review from datwaft April 12, 2026 05:41
@bluefing

bluefing commented May 2, 2026

Copy link
Copy Markdown

@sak96 your patch works for me - thanks.

Hopefully @psliwka or @datwaft can merge this soon - in the meantime I am using your fork @sak96

return {
  "sak96/vim-dirtytalk",
  build = ":DirtytalkUpdate",
  event = "VeryLazy",
  config = function()
    local spell_dir = vim.fn.stdpath("data") .. "/site/spell"
    if vim.fn.filereadable(spell_dir .. "/programming.utf-8.spl") == 1 then
      vim.opt.spelllang = { "en", "programming" }
    end
  end,
}

@SinTan1729 SinTan1729 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants