chg: Diable telemetry in lua

This commit is contained in:
Sayantan Santra 2024-03-23 03:27:49 -05:00
parent 28771e443a
commit 810e9ce16c
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
4 changed files with 21 additions and 15 deletions

View file

@ -4,7 +4,7 @@ local cnf = require("conform")
local slow_format_filetypes = { "tex" } local slow_format_filetypes = { "tex" }
cnf.setup({ cnf.setup({
formatters_by_ft = { formatters_by_ft = {
tex = { "latexindent" } tex = { "latexindent" },
}, },
format_on_save = function(bufnr) format_on_save = function(bufnr)
@ -35,4 +35,3 @@ cnf.formatters.latexindent = {
return { "--lines", ctx.range.start[1] .. "-" .. ctx.range["end"][1] } return { "--lines", ctx.range.start[1] .. "-" .. ctx.range["end"][1] }
end, end,
} }

View file

@ -1,6 +1,14 @@
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
lspconfig.pyright.setup {} lspconfig.pyright.setup {}
lspconfig.lua_ls.setup {}
lspconfig.lua_ls.setup({
settings = {
Lua = {
telemetry = { enable = false },
},
}
})
lspconfig.rust_analyzer.setup { lspconfig.rust_analyzer.setup {
-- Server-specific settings. See `:help lspconfig-setup` -- Server-specific settings. See `:help lspconfig-setup`
settings = { settings = {

View file

@ -5,4 +5,3 @@ require("Comment").setup()
-- Default settings for nvim-surround -- Default settings for nvim-surround
require("nvim-surround").setup() require("nvim-surround").setup()