Remove snippets from generic sources, add mypy as explicit null_ls source to use version in venv if found
This commit is contained in:
parent
dce12f7756
commit
6579d2b484
|
@ -39,8 +39,6 @@ cmp.setup {
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "luasnip" },
|
|
||||||
{ name = "latex_symbols" },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,8 +46,11 @@ cmp.setup {
|
||||||
cmp.setup.filetype("gitcommit", {
|
cmp.setup.filetype("gitcommit", {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "git" },
|
{ name = "git" },
|
||||||
|
{ name = "spell" },
|
||||||
{ name = "commit" },
|
{ name = "commit" },
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
|
{ name = "luasnip" },
|
||||||
|
{ name = "latex_symbols" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -57,6 +58,8 @@ cmp.setup.filetype("markdown", {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "spell" },
|
{ name = "spell" },
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
|
{ name = "luasnip" },
|
||||||
|
{ name = "latex_symbols" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ local null_ls = require "null-ls"
|
||||||
return {
|
return {
|
||||||
null_ls.builtins.code_actions.gitsigns,
|
null_ls.builtins.code_actions.gitsigns,
|
||||||
null_ls.builtins.diagnostics.zsh,
|
null_ls.builtins.diagnostics.zsh,
|
||||||
|
null_ls.builtins.diagnostics.mypy,
|
||||||
null_ls.builtins.formatting.trim_whitespace,
|
null_ls.builtins.formatting.trim_whitespace,
|
||||||
null_ls.builtins.hover.dictionary,
|
null_ls.builtins.hover.dictionary,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue