From 810e9ce16cfca63ff492fff94f17ab658f6a37ae Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 23 Mar 2024 03:27:49 -0500 Subject: [PATCH] chg: Diable telemetry in lua --- laptop/plugin/conform.lua | 5 ++--- laptop/plugin/lean.lua | 6 +++--- laptop/plugin/lspconfig.lua | 24 ++++++++++++++++-------- laptop/plugin/misc.lua | 1 - 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/laptop/plugin/conform.lua b/laptop/plugin/conform.lua index 87d0fa9..b3c7c98 100644 --- a/laptop/plugin/conform.lua +++ b/laptop/plugin/conform.lua @@ -4,7 +4,7 @@ local cnf = require("conform") local slow_format_filetypes = { "tex" } cnf.setup({ formatters_by_ft = { - tex = { "latexindent" } + tex = { "latexindent" }, }, format_on_save = function(bufnr) @@ -28,11 +28,10 @@ cnf.setup({ end, }) -cnf.formatters.latexindent = { +cnf.formatters.latexindent = { -- command = "/usr/bin/latexindent", prepend_args = { "-g", "/dev/null" }, -- Do not create an indent.log file range_args = function(ctx) return { "--lines", ctx.range.start[1] .. "-" .. ctx.range["end"][1] } end, } - diff --git a/laptop/plugin/lean.lua b/laptop/plugin/lean.lua index d777749..c903011 100644 --- a/laptop/plugin/lean.lua +++ b/laptop/plugin/lean.lua @@ -1,6 +1,6 @@ -require('lean').setup{ - abbreviations = { builtin = true }, - mappings = true, +require('lean').setup { + abbreviations = { builtin = true }, + mappings = true, } -- -- Update error messages even while you're typing in insert mode diff --git a/laptop/plugin/lspconfig.lua b/laptop/plugin/lspconfig.lua index 325c025..f49af5b 100644 --- a/laptop/plugin/lspconfig.lua +++ b/laptop/plugin/lspconfig.lua @@ -1,13 +1,21 @@ local lspconfig = require('lspconfig') lspconfig.pyright.setup {} -lspconfig.lua_ls.setup {} + +lspconfig.lua_ls.setup({ + settings = { + Lua = { + telemetry = { enable = false }, + }, + } +}) + lspconfig.rust_analyzer.setup { - -- Server-specific settings. See `:help lspconfig-setup` - settings = { - ['rust-analyzer'] = { - check = { - command = "clippy", - } + -- Server-specific settings. See `:help lspconfig-setup` + settings = { + ['rust-analyzer'] = { + check = { + command = "clippy", + } + }, }, - }, } diff --git a/laptop/plugin/misc.lua b/laptop/plugin/misc.lua index f0a642d..575d90e 100644 --- a/laptop/plugin/misc.lua +++ b/laptop/plugin/misc.lua @@ -5,4 +5,3 @@ require("Comment").setup() -- Default settings for nvim-surround require("nvim-surround").setup() -