This commit is contained in:
2025-06-10 13:27:05 -05:00
parent 8ee847db45
commit 39e6719d12
4 changed files with 148 additions and 145 deletions

View File

@@ -12,7 +12,7 @@ return {
typescriptreact = { "prettier" }, typescriptreact = { "prettier" },
svelte = { "prettier" }, svelte = { "prettier" },
css = { "prettier" }, css = { "prettier" },
html = { "prettier" }, html = { "prettier", "djlint" },
json = { "prettier" }, json = { "prettier" },
yaml = { "prettier" }, yaml = { "prettier" },
markdown = { "prettier" }, markdown = { "prettier" },

View File

@@ -49,6 +49,7 @@ return {
"pylint", -- python linter "pylint", -- python linter
"eslint_d", -- js linter "eslint_d", -- js linter
"django-template-lsp", "django-template-lsp",
"djlint",
}, },
}) })
end, end,

View File

@@ -35,8 +35,8 @@ return {
end, end,
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<C-k>"] = cmp.mapping.select_prev_item(), -- previous suggestion ["<S-Tab>"] = cmp.mapping.select_prev_item(), -- previous suggestion
["<C-j>"] = cmp.mapping.select_next_item(), -- next suggestion ["<Tab>"] = cmp.mapping.select_next_item(), -- next suggestion
["<C-b>"] = cmp.mapping.scroll_docs(-4), ["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions ["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
@@ -45,7 +45,7 @@ return {
}), }),
-- sources for autocompletion -- sources for autocompletion
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "nvim_lsp"}, { name = "nvim_lsp" },
{ name = "luasnip" }, -- snippets { name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer { name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths { name = "path" }, -- file system paths

View File

@@ -28,12 +28,14 @@ return {
"tsx", "tsx",
"yaml", "yaml",
"html", "html",
"htmldjango",
"php",
"css", "css",
"prisma", "prisma",
"markdown", "markdown",
"markdown_inline", "markdown_inline",
"python",
"svelte", "svelte",
"graphql",
"bash", "bash",
"lua", "lua",
"vim", "vim",