From ec6675e6386838089dc395fc95d50275bbb69875 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 9 Nov 2023 21:53:43 +0100 Subject: [PATCH] Add .config/nvim/lazyvim.json Update .config/nvim/lua/plugins/none-ls.lua --- dot_config/nvim/lazyvim.json | 9 +++++ dot_config/nvim/lua/plugins/none-ls.lua | 48 ++++++++++++------------- 2 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 dot_config/nvim/lazyvim.json diff --git a/dot_config/nvim/lazyvim.json b/dot_config/nvim/lazyvim.json new file mode 100644 index 0000000..ff6a139 --- /dev/null +++ b/dot_config/nvim/lazyvim.json @@ -0,0 +1,9 @@ +{ + "extras": [ + + ], + "news": { + "NEWS.md": "2123" + }, + "version": 2 +} \ No newline at end of file diff --git a/dot_config/nvim/lua/plugins/none-ls.lua b/dot_config/nvim/lua/plugins/none-ls.lua index 5edd98d..1377fd5 100644 --- a/dot_config/nvim/lua/plugins/none-ls.lua +++ b/dot_config/nvim/lua/plugins/none-ls.lua @@ -1,24 +1,24 @@ -local h = require("null-ls.helpers") -local methods = require("null-ls.methods") -local u = require("null-ls.utils") +-- local h = require("-ls.helpers") +-- local methods = require("none-ls.methods") +-- local u = require("none-ls.utils") -local FORMATTING = methods.internal.FORMATTING +-- local FORMATTING = methods.internal.FORMATTING -local leptosfmt = h.make_builtin({ - name = "leptosfmt", - meta = { - url = "https://github.com/bram209/leptosfmt", - description = "A formatter for the leptos view! macro" - }, - method = FORMATTING, - filetypes = { "rust" }, - generator_opts = { - command = "leptosfmt", - args = { "--quiet", "--stdin" }, - to_stdin = true, - }, - factory = h.formatter_factory, -}) +-- local leptosfmt = h.make_builtin({ +-- name = "leptosfmt", +-- meta = { +-- url = "https://github.com/bram209/leptosfmt", +-- description = "A formatter for the leptos view! macro" +-- }, +-- method = FORMATTING, +-- filetypes = { "rust" }, +-- generator_opts = { +-- command = "leptosfmt", +-- args = { "--quiet", "--stdin" }, +-- to_stdin = true, +-- }, +-- factory = h.formatter_factory, +-- }) return { @@ -49,11 +49,11 @@ return { extra_args = { "--edition=2021" }, filetypes = { "rust" } }), - leptosfmt.with({ - condition = function(utils) - return utils.root_has_file({ "leptosfmt.toml" }) - end, - }), + -- leptosfmt.with({ + -- condition = function(utils) + -- return utils.root_has_file({ "leptosfmt.toml" }) + -- end, + -- }), nls.builtins.diagnostics.revive, nls.builtins.code_actions.impl, nls.builtins.code_actions.refactoring,