mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 12:02:58 +00:00
Disable autocomplete without c-space & try to setup folds
This commit is contained in:
@@ -12,6 +12,9 @@ return {
|
||||
opts = function()
|
||||
local cmp = require("cmp")
|
||||
return {
|
||||
completion = {
|
||||
autocomplete = false
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
vim.snippet.expand(args.body)
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user