fix: tabs + cmp fixed
This commit is contained in:
@@ -24,58 +24,43 @@ return {
|
||||
-- │ Completion │
|
||||
{
|
||||
'saghen/blink.cmp',
|
||||
-- dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
version = '1.*',
|
||||
opts = {
|
||||
-- All presets have the following mappings:
|
||||
-- C-space: Open menu or open docs if already open
|
||||
-- C-n/C-p or Up/Down: Select next/previous item
|
||||
-- C-e: Hide menu
|
||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||
keymap = { preset = 'default' },
|
||||
keymap = {
|
||||
preset = 'default',
|
||||
['<Enter>'] = { 'accept', 'fallback' },
|
||||
['<Tab>'] = { 'select_next', 'fallback' },
|
||||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
-- (Default) Only show the documentation popup when manually triggered
|
||||
completion = { documentation = { auto_show = false } },
|
||||
-- Default list of enabled providers defined so that you can extend it
|
||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||
sources = {
|
||||
},
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||
},
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
},
|
||||
-- {
|
||||
-- "L3MON4D3/LuaSnip",
|
||||
-- build = "make install_jsregexp",
|
||||
-- dependencies = { "rafamadriz/friendly-snippets" },
|
||||
-- },
|
||||
--
|
||||
|
||||
-- -- │ Auto close │
|
||||
-- {
|
||||
-- "m4xshen/autoclose.nvim",
|
||||
-- },
|
||||
--
|
||||
-- {
|
||||
-- "windwp/nvim-ts-autotag",
|
||||
-- config = function(_, opts)
|
||||
-- require('nvim-ts-autotag').setup({
|
||||
-- opts = {
|
||||
-- enable_close = true, -- Auto close tags
|
||||
-- enable_rename = true, -- Auto rename pairs of tags
|
||||
-- enable_close_on_slash = false -- Auto close on trailing </
|
||||
-- },
|
||||
-- per_filetype = {
|
||||
-- ["html"] = {
|
||||
-- enable_close = true
|
||||
-- }
|
||||
-- }
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
--
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
config = function(_, opts)
|
||||
require('nvim-ts-autotag').setup({
|
||||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
enable_close_on_slash = false
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- │ Diagnostics │
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
|
||||
Reference in New Issue
Block a user