From 96dad8d8037b67695b6e513d7be85e3ff0b59e64 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 21 Sep 2024 20:11:13 -0700 Subject: [PATCH] formatting improvements --- lua/plugins/lsp.lua | 20 +++++++++++++++++++- lua/plugins/treesitter.lua | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index d7ff675..c13682b 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -6,6 +6,9 @@ return { -- Additional lua configuration, makes nvim stuff amazing "folke/neodev.nvim", + + -- schemas for json and yaml files + "b0o/schemastore.nvim", }, config = function() -- LSP settings. @@ -70,7 +73,22 @@ return { }, html = {}, jqls = {}, - jsonls = {}, + jsonls = { + json = { + format = { + enable = true, + }, + schemas = require("schemastore").json.schemas(), + validate = true, + }, + }, + pyright = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "workspace", + useLibraryCodeForTypes = true, + }, + }, marksman = {}, nil_ls = {}, nixd = {}, diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index b2d666d..cfc5538 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -58,7 +58,7 @@ return { auto_install = true, highlight = { enable = true }, - indent = { enable = false }, + indent = { enable = true }, incremental_selection = { enable = true, keymaps = {