diff --git a/nvim/lua/kickstart/plugins/completion.lua b/nvim/lua/kickstart/plugins/completion.lua index ff71bda..2c7f887 100644 --- a/nvim/lua/kickstart/plugins/completion.lua +++ b/nvim/lua/kickstart/plugins/completion.lua @@ -68,6 +68,7 @@ return { -- This will auto-import if your LSP supports it. -- This will expand snippets if the LSP sent a snippet. -- [''] = cmp.mapping.confirm { select = true }, + [''] = cmp.mapping.confirm { select = true }, -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines diff --git a/nvim/lua/kickstart/settings.lua b/nvim/lua/kickstart/settings.lua index 50e463d..32c865a 100644 --- a/nvim/lua/kickstart/settings.lua +++ b/nvim/lua/kickstart/settings.lua @@ -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'