nvim: Add jinja2 syntax and json schemastore
This commit is contained in:
parent
be8cfae777
commit
3856920168
2 changed files with 17 additions and 1 deletions
|
@ -23,7 +23,7 @@ return packer.startup({
|
||||||
use("RRethy/nvim-base16")
|
use("RRethy/nvim-base16")
|
||||||
vim.cmd([[colorscheme base16-espresso]])
|
vim.cmd([[colorscheme base16-espresso]])
|
||||||
|
|
||||||
-- Completion and linting
|
-- Managing lsp servers, linters, formatters
|
||||||
use("williamboman/mason.nvim")
|
use("williamboman/mason.nvim")
|
||||||
use("williamboman/mason-lspconfig.nvim")
|
use("williamboman/mason-lspconfig.nvim")
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ return packer.startup({
|
||||||
use("jose-elias-alvarez/typescript.nvim")
|
use("jose-elias-alvarez/typescript.nvim")
|
||||||
use("onsails/lspkind.nvim")
|
use("onsails/lspkind.nvim")
|
||||||
|
|
||||||
|
-- Formatting and linting
|
||||||
use("jose-elias-alvarez/null-ls.nvim")
|
use("jose-elias-alvarez/null-ls.nvim")
|
||||||
use("jayp0521/mason-null-ls.nvim")
|
use("jayp0521/mason-null-ls.nvim")
|
||||||
|
|
||||||
|
@ -94,9 +95,15 @@ return packer.startup({
|
||||||
-- Fast onscreen navigation
|
-- Fast onscreen navigation
|
||||||
use("ggandor/leap.nvim")
|
use("ggandor/leap.nvim")
|
||||||
|
|
||||||
|
-- jinja2 syntax
|
||||||
|
use("glench/vim-jinja2-syntax")
|
||||||
|
|
||||||
-- nvim startpage
|
-- nvim startpage
|
||||||
use({ "goolord/alpha-nvim", requires = "nvim-tree/nvim-web-devicons" })
|
use({ "goolord/alpha-nvim", requires = "nvim-tree/nvim-web-devicons" })
|
||||||
|
|
||||||
|
-- schemastore for nvim
|
||||||
|
use("b0o/schemastore.nvim")
|
||||||
|
|
||||||
if packer.bootstrap then
|
if packer.bootstrap then
|
||||||
require("packer").sync()
|
require("packer").sync()
|
||||||
end
|
end
|
||||||
|
|
|
@ -75,6 +75,15 @@ lspconfig["emmet_ls"].setup({
|
||||||
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
|
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
lspconfig["jsonls"].setup({
|
||||||
|
settings = {
|
||||||
|
json = {
|
||||||
|
schemas = require("schemastore").json.schemas(),
|
||||||
|
validate = { enable = true },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
lspconfig["sumneko_lua"].setup({
|
lspconfig["sumneko_lua"].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
Loading…
Add table
Reference in a new issue