chg: Diable telemetry in lua
This commit is contained in:
parent
28771e443a
commit
810e9ce16c
4 changed files with 21 additions and 15 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -5,4 +5,3 @@ require("Comment").setup()
|
|||
|
||||
-- Default settings for nvim-surround
|
||||
require("nvim-surround").setup()
|
||||
|
||||
|
|
Loading…
Reference in a new issue