From 804d5b36129148b5d1c52b4066a84fce131ddb7f Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 16 Jan 2024 16:33:32 +0100 Subject: [PATCH] Refactoring --- after/plugin/dap/dap-flutter.lua | 2 +- after/plugin/lsp/lsp-gdscript.lua | 2 +- lua/myworkflow/autocommands.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/after/plugin/dap/dap-flutter.lua b/after/plugin/dap/dap-flutter.lua index aed6110..c89eb38 100644 --- a/after/plugin/dap/dap-flutter.lua +++ b/after/plugin/dap/dap-flutter.lua @@ -16,6 +16,6 @@ dap.configurations.dart = { -- The nvim-dap plugin populates this variable with the editor's current working directory cwd = "${workspaceFolder}", -- This gets forwarded to the Flutter CLI tool, substitute `linux` for whatever device you wish to launch - toolArgs = { "-d", "linux" } + toolArgs = { "-d", "chrome" } } } diff --git a/after/plugin/lsp/lsp-gdscript.lua b/after/plugin/lsp/lsp-gdscript.lua index 9300c44..a740adc 100644 --- a/after/plugin/lsp/lsp-gdscript.lua +++ b/after/plugin/lsp/lsp-gdscript.lua @@ -1,4 +1,4 @@ ---require("lspconfig").gdscript.setup {} +require("lspconfig").gdscript.setup {} vim.api.nvim_create_autocmd('BufWritePost', { diff --git a/lua/myworkflow/autocommands.lua b/lua/myworkflow/autocommands.lua index d50f951..125e70c 100644 --- a/lua/myworkflow/autocommands.lua +++ b/lua/myworkflow/autocommands.lua @@ -1,6 +1,6 @@ -local group = vim.api.nvim_create_augroup("autoformat", {}) +local autoformat_group = vim.api.nvim_create_augroup("autoformat", {}) vim.api.nvim_create_autocmd('BufWritePre', { - group = group, + group = autoformat_group, callback = function() vim.lsp.buf.format { async = false } end