mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-30 22:59:22 +02:00
cleanup old tab filetype specific code
This commit is contained in:
parent
db9adf2fb8
commit
2b09dbf098
2 changed files with 0 additions and 23 deletions
|
@ -34,8 +34,6 @@ M.config = function()
|
|||
emoji = { kind = " ﲃ (Emoji)", filetypes = { "markdown", "text" } },
|
||||
-- for emoji press : (idk if that in compe tho)
|
||||
},
|
||||
-- FileTypes in this list won't trigger auto-complete when TAB is pressed. Hitting TAB will insert a tab character
|
||||
exclude_filetypes = { "md", "markdown", "mdown", "mkd", "mkdn", "mdwn", "text", "txt" },
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -100,22 +98,4 @@ M.setup = function()
|
|||
vim.api.nvim_set_keymap("i", "<C-d>", "compe#scroll({ 'delta': -4 })", { noremap = true, silent = true, expr = true })
|
||||
end
|
||||
|
||||
local is_excluded = function(file_type)
|
||||
for _, type in ipairs(lvim.builtin.compe.exclude_filetypes) do
|
||||
if type == file_type then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
M.set_tab_keybindings = function()
|
||||
local file_type = vim.fn.expand "%:e"
|
||||
-- if is_excluded(file_type) == false then
|
||||
-- vim.api.nvim_buf_set_keymap(0, "i", "<Tab>", "v:lua.tab_complete()", { expr = true })
|
||||
-- vim.api.nvim_buf_set_keymap(0, "s", "<Tab>", "v:lua.tab_complete()", { expr = true })
|
||||
-- vim.api.nvim_buf_set_keymap(0, "i", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
|
||||
-- vim.api.nvim_buf_set_keymap(0, "s", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
|
||||
-- end
|
||||
end
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue