all repos

init.lua @ 34c273d463be33a634acfec351c6bb08c0cbaa07

my nvim config
2 files changed, 20 insertions(+), 27 deletions(-)
feat(lsp): change js server, add jsonls, remove rust-analyzer
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-07-13 16:17:46 +0300
Parent: 47f7578
M lua/configs/lsp/servers.lua

@@ -1,37 +1,12 @@

return { - denols = {}, + tsserver = {}, vimls = {}, - yamlls = { - settings = { - yaml = { - schemaStore = { - enable = true, - url = "https://www.schemastore.org/api/json/catalog.json", - }, - }, - }, - }, - rust_analyzer = { - settings = { - ["rust-analyzer"] = { - cargo = { allFeatures = true }, - checkOnSave = { - command = "clippy", - extraArgs = { "--no-deps" }, - }, - }, - }, - }, gopls = { settings = { gopls = { linksInHover = false, staticcheck = true, - memoryMode = "Normal", - analyses = { - unusedparams = true, - unreachable = true, - }, + analyses = { unusedparams = true, unreachable = true }, }, }, },

@@ -40,6 +15,23 @@ python = {

disableOrganizeImports = true, autoSearchPaths = true, analysis = { useLibraryCodeForTypes = false }, + }, + }, + yamlls = { + settings = { + yaml = { + schemaStore = { + enable = true, + url = "https://www.schemastore.org/api/json/catalog.json", + }, + }, + }, + }, + jsonls = { + settings = { + json = { + schemas = require("schemastore").json.schemas(), + }, }, }, }
M lua/plugins.lua

@@ -99,6 +99,7 @@ config = u.get.config "lsp",

requires = { { "williamboman/nvim-lsp-installer", module = "nvim-lsp-installer" }, { "jose-elias-alvarez/null-ls.nvim", module = "null-ls" }, + { "b0o/schemastore.nvim", modules = "schemastore" }, { "folke/lua-dev.nvim", module = "lua-dev" }, }, }