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 = {
enabled = true
}
enabled = true,
frequency = 86400,
},
}

View file

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

View file

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