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 = {