mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +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
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user