Remove snippets from generic sources, add mypy as explicit null_ls source to use version in venv if found

This commit is contained in:
Evie Litherland-Smith 2023-03-16 16:25:51 +00:00
parent dce12f7756
commit 6579d2b484
2 changed files with 6 additions and 2 deletions

View file

@ -39,8 +39,6 @@ cmp.setup {
},
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "latex_symbols" },
},
}
@ -48,8 +46,11 @@ cmp.setup {
cmp.setup.filetype("gitcommit", {
sources = {
{ name = "git" },
{ name = "spell" },
{ name = "commit" },
{ name = "buffer" },
{ name = "luasnip" },
{ name = "latex_symbols" },
},
})
@ -57,6 +58,8 @@ cmp.setup.filetype("markdown", {
sources = {
{ name = "spell" },
{ name = "buffer" },
{ name = "luasnip" },
{ name = "latex_symbols" },
},
})

View file

@ -2,6 +2,7 @@ local null_ls = require "null-ls"
return {
null_ls.builtins.code_actions.gitsigns,
null_ls.builtins.diagnostics.zsh,
null_ls.builtins.diagnostics.mypy,
null_ls.builtins.formatting.trim_whitespace,
null_ls.builtins.hover.dictionary,
}