summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/plugins/cspell.lua
blob: 33931b521b2a426d702c54e429a4519322ed756c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
return {
  {
    'nvimtools/none-ls.nvim',
    dependencies = {
      {
        'davidmh/cspell.nvim',
      },
    },
    config = function ()
      local cspell = require('cspell')
      require('null-ls').setup {
        sources = {
          cspell.diagnostics,
          cspell.code_actions,
        },
        should_attach = function(bufnr)
          local bufname = vim.api.nvim_buf_get_name(bufnr)
          return not bufname == 'gen.nvim'
        end,
      }
    end,
  }
}