From 5b6dd63620331f6f81f5d6e0d77fc8def7d1a56e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 23 Mar 2023 11:05:49 +0000 Subject: [PATCH] Reduce frequency of lazy update checker, reenable fortran TS highlighting, add snippet completion back in --- config/nvim/lua/config/lazy.lua | 5 +++-- config/nvim/lua/config/treesitter.lua | 2 -- config/nvim/lua/lsp/cmp.lua | 11 +++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/config/nvim/lua/config/lazy.lua b/config/nvim/lua/config/lazy.lua index b66ce84a..fd540b03 100644 --- a/config/nvim/lua/config/lazy.lua +++ b/config/nvim/lua/config/lazy.lua @@ -14,6 +14,7 @@ return { }, }, checker = { - enabled = true - } + enabled = true, + frequency = 86400, + }, } diff --git a/config/nvim/lua/config/treesitter.lua b/config/nvim/lua/config/treesitter.lua index 7136d8c6..81c27e04 100644 --- a/config/nvim/lua/config/treesitter.lua +++ b/config/nvim/lua/config/treesitter.lua @@ -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 = { diff --git a/config/nvim/lua/lsp/cmp.lua b/config/nvim/lua/lsp/cmp.lua index 37af3f09..aa6a3fda 100644 --- a/config/nvim/lua/lsp/cmp.lua +++ b/config/nvim/lua/lsp/cmp.lua @@ -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" }, },