updates
This commit is contained in:
parent
00c18da4fb
commit
562b8065ec
1 changed files with 26 additions and 0 deletions
26
init.lua
26
init.lua
|
|
@ -136,6 +136,9 @@ vim.pack.add({
|
||||||
|
|
||||||
-- dashboard
|
-- dashboard
|
||||||
{ src = "https://github.com/nvimdev/dashboard-nvim" },
|
{ src = "https://github.com/nvimdev/dashboard-nvim" },
|
||||||
|
|
||||||
|
-- prettier
|
||||||
|
{ src = "https://github.com/MunifTanjim/prettier.nvim" },
|
||||||
})
|
})
|
||||||
|
|
||||||
-- telescope (sadly these configs need to be after vimpack)
|
-- telescope (sadly these configs need to be after vimpack)
|
||||||
|
|
@ -340,3 +343,26 @@ for _, plugin in pairs(enable_providers) do
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.g.loaded_python3_provider = nil
|
vim.g.loaded_python3_provider = nil
|
||||||
|
|
||||||
|
require("prettier").setup({
|
||||||
|
bin = 'prettier', -- or `'prettierd'` (v0.23.3+)
|
||||||
|
filetypes = {
|
||||||
|
"css",
|
||||||
|
"graphql",
|
||||||
|
"html",
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"json",
|
||||||
|
"less",
|
||||||
|
"markdown",
|
||||||
|
"scss",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"yaml",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "htmldjango",
|
||||||
|
command = "setlocal shiftwidth=2 tabstop=2"
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue