Reduce frequency of lazy update checker, reenable fortran TS highlighting, add snippet completion back in

This commit is contained in:
Evie Litherland-Smith 2023-03-23 11:05:49 +00:00
parent 250684f15c
commit 5b6dd63620
3 changed files with 14 additions and 4 deletions

View file

@ -14,6 +14,7 @@ return {
}, },
}, },
checker = { checker = {
enabled = true enabled = true,
} frequency = 86400,
},
} }

View file

@ -2,7 +2,6 @@ return {
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
disable = { "fortran" },
}, },
incremental_selection = { incremental_selection = {
enable = true, enable = true,
@ -15,7 +14,6 @@ return {
}, },
indent = { indent = {
enable = true, enable = true,
-- disable = { "python" },
}, },
refactor = { refactor = {
smart_rename = { smart_rename = {

View file

@ -39,12 +39,20 @@ cmp.setup {
}, },
sources = { sources = {
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" },
}, },
} }
-- Set configuration for specific filetype. -- Set configuration for specific filetype.
cmp.setup.filetype("python", {
sources = {
{ name = "nvim_lsp" },
},
})
cmp.setup.filetype("gitcommit", { cmp.setup.filetype("gitcommit", {
sources = { sources = {
{ name = "nvim_lsp" },
{ name = "git" }, { name = "git" },
{ name = "spell" }, { name = "spell" },
{ name = "commit" }, { name = "commit" },
@ -56,6 +64,7 @@ cmp.setup.filetype("gitcommit", {
cmp.setup.filetype("markdown", { cmp.setup.filetype("markdown", {
sources = { sources = {
{ name = "nvim_lsp" },
{ name = "spell" }, { name = "spell" },
{ name = "buffer" }, { name = "buffer" },
{ name = "luasnip" }, { name = "luasnip" },
@ -66,6 +75,7 @@ cmp.setup.filetype("markdown", {
cmp.setup.cmdline("/", { cmp.setup.cmdline("/", {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = { sources = {
{ name = "nvim_lsp" },
{ name = "buffer" }, { name = "buffer" },
}, },
}) })
@ -73,6 +83,7 @@ cmp.setup.cmdline("/", {
cmp.setup.cmdline(":", { cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = { sources = {
{ name = "nvim_lsp" },
{ name = "path" }, { name = "path" },
{ name = "cmdline" }, { name = "cmdline" },
}, },