formatting improvements

This commit is contained in:
Salar Rahmanian 2024-09-21 20:11:13 -07:00
parent b25a90efbc
commit 96dad8d803
2 changed files with 20 additions and 2 deletions

View file

@ -6,6 +6,9 @@ return {
-- Additional lua configuration, makes nvim stuff amazing -- Additional lua configuration, makes nvim stuff amazing
"folke/neodev.nvim", "folke/neodev.nvim",
-- schemas for json and yaml files
"b0o/schemastore.nvim",
}, },
config = function() config = function()
-- LSP settings. -- LSP settings.
@ -70,7 +73,22 @@ return {
}, },
html = {}, html = {},
jqls = {}, jqls = {},
jsonls = {}, jsonls = {
json = {
format = {
enable = true,
},
schemas = require("schemastore").json.schemas(),
validate = true,
},
},
pyright = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
useLibraryCodeForTypes = true,
},
},
marksman = {}, marksman = {},
nil_ls = {}, nil_ls = {},
nixd = {}, nixd = {},

View file

@ -58,7 +58,7 @@ return {
auto_install = true, auto_install = true,
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = false }, indent = { enable = true },
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {