Добавил выбор комплита на ctrl+tab

This commit is contained in:
urec56 2025-04-27 01:07:26 +03:00
parent fc6b9032dc
commit 16d44a3d12
2 changed files with 8 additions and 0 deletions

View file

@ -68,6 +68,7 @@ return {
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
['<C-Tab>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines

View file

@ -37,6 +37,7 @@ vim.api.nvim_create_autocmd('FileType', {
vim.bo.commentstring = '// %s'
end,
})
-- Комментировать .sql код биндом
vim.api.nvim_create_autocmd('FileType', {
pattern = 'sql',
@ -45,6 +46,12 @@ vim.api.nvim_create_autocmd('FileType', {
end,
})
-- Fix .sqlfluff highlight
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = '*.sqlfluff',
command = 'set filetype=toml',
})
-- Enable mouse mode, can be useful for resizing splits for example!
vim.opt.mouse = 'a'