Disable autocomplete without c-space & try to setup folds

This commit is contained in:
2024-07-28 23:38:24 +02:00
parent 2bfb38b5fb
commit ba15a1c31d
4 changed files with 12 additions and 4 deletions
+3
View File
@@ -12,6 +12,9 @@ return {
opts = function()
local cmp = require("cmp")
return {
completion = {
autocomplete = false
},
snippet = {
expand = function(args)
vim.snippet.expand(args.body)
-4
View File
@@ -20,10 +20,6 @@ return {
},
keymaps = {
["<BS>"] = "actions.parent",
-- Disable default mappings that conflict with harpoon.
["<C-h>"] = false,
["<C-t>"] = false,
},
},
},
@@ -33,6 +33,10 @@ return {
matchup = { enable = true },
},
main = "nvim-treesitter.configs",
init = function()
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"
end
},
{
+5
View File
@@ -51,6 +51,11 @@ local options = {
completeopt = { "menuone", "popup", "noinsert", "fuzzy" },
pumheight = 15,
foldcolumn = "1",
foldlevel = 99,
foldlevelstart = 99,
foldenable = true,
}
vim.g.loaded_python3_provider = 0