-
|
When using a TAB character in blink-cmp it tries to do autocompletion. Which command option under Example exception from blink-cmp docs: vim.api.nvim_create_autocmd('BufEnter', {
pattern = 'Makefile',
callback = function()
vim.b.completion = false
end,
}) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Well I got something right, in my home manager setup: programs.nvf = {
enable = true;
settings = {
vim = {
# additionalRuntimePaths
additionalRuntimePaths = [
./nvim-fix-makefile
];
# Neovim supports in-line syntax highlighting for multi-line strings.
# Simply place the filetype in a /* comment */ before the line.
luaConfigRC.nvim-fix-makefile = /* lua */ ''
-- Call the Lua module from ./nvim/lua/nvim-fix-makefile
-- via an autocmd
vim.api.nvim_create_autocmd('BufEnter', {
pattern = 'Makefile',
callback = function()
vim.b.completion = false
end
})
'';
};
};
};Example autocmd taken from: https://cmp.saghen.dev/recipes#disable-per-filetype-buffer |
Beta Was this translation helpful? Give feedback.
-
|
But still, I can't seem to get the characters to be tabs. |
Beta Was this translation helpful? Give feedback.
-
|
I also have editorconfig enabled with the following: |
Beta Was this translation helpful? Give feedback.
-
|
Seems I was barking at the wrong tree. I tried to use |
Beta Was this translation helpful? Give feedback.
Seems I was barking at the wrong tree. I tried to use
source .env.commonin Makefile, but it isinclude