From f056d7155f41ec9f677684cf6e29f3617e012de6 Mon Sep 17 00:00:00 2001 From: ralvescosta Date: Sun, 16 Mar 2025 19:56:22 -0300 Subject: [PATCH] feat:ident --- lua/custom/plugins/nvim-dap-go.lua | 58 +++++++++++++-------------- lua/kickstart/plugins/indent_line.lua | 9 +++-- lua/kickstart/plugins/treesitter.lua | 4 +- lua/kickstart/plugins/vim-sleuth.lua | 3 +- 4 files changed, 39 insertions(+), 35 deletions(-) diff --git a/lua/custom/plugins/nvim-dap-go.lua b/lua/custom/plugins/nvim-dap-go.lua index f227cdef..6d85eac7 100644 --- a/lua/custom/plugins/nvim-dap-go.lua +++ b/lua/custom/plugins/nvim-dap-go.lua @@ -1,31 +1,31 @@ return { - { - 'leoluz/nvim-dap-go', - ft = 'go', - dependencies = { - 'mfussenegger/nvim-dap', - }, - config = function(_, _) - require('dap-go').setup { - dap_configurations = { - { - type = 'go', - name = 'Debug with dynamic args', - request = 'launch', - program = '${workspaceFolder}/main.go', - outputMode = 'remote', - args = require('dap-go').get_arguments, - env = { - GOPRIVATE = 'bitbucket.org/asappay', - ENVIRONMENT = 'dev', - SERVICE_NAME = 'go-acquirer-local-service', - OTEL_EXPORTER_OTLP_ENDPOINT = 'localhost:4317', - AWSPROFILE = 'asappay-dev', - SOME_VAR = 'value', - }, - }, - }, - } - end, - }, + -- { + -- 'leoluz/nvim-dap-go', + -- ft = 'go', + -- dependencies = { + -- 'mfussenegger/nvim-dap', + -- }, + -- config = function(_, _) + -- require('dap-go').setup { + -- dap_configurations = { + -- { + -- type = 'go', + -- name = 'Debug with dynamic args', + -- request = 'launch', + -- program = '${workspaceFolder}/main.go', + -- outputMode = 'remote', + -- args = require('dap-go').get_arguments, + -- env = { + -- GOPRIVATE = 'bitbucket.org/asappay', + -- ENVIRONMENT = 'dev', + -- SERVICE_NAME = 'go-acquirer-local-service', + -- OTEL_EXPORTER_OTLP_ENDPOINT = 'localhost:4317', + -- AWSPROFILE = 'asappay-dev', + -- SOME_VAR = 'value', + -- }, + -- }, + -- }, + -- } + -- end, + -- }, } diff --git a/lua/kickstart/plugins/indent_line.lua b/lua/kickstart/plugins/indent_line.lua index ed7f2693..0a0c37f3 100644 --- a/lua/kickstart/plugins/indent_line.lua +++ b/lua/kickstart/plugins/indent_line.lua @@ -1,9 +1,12 @@ return { - { -- Add indentation guides even on blank lines + { 'lukas-reineke/indent-blankline.nvim', - -- Enable `lukas-reineke/indent-blankline.nvim` - -- See `:help ibl` main = 'ibl', + ---@module "ibl" + ---@type ibl.config opts = {}, + config = function() + require('ibl').setup {} + end, }, } diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index b87cb50a..0f2d5760 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -39,9 +39,9 @@ return { -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. -- If you are experiencing weird indenting issues, add the language to -- the list of additional_vim_regex_highlighting and disabled languages for indent. - additional_vim_regex_highlighting = { 'ruby' }, + additional_vim_regex_highlighting = { 'ruby', 'go' }, }, - indent = { enable = true, disable = { 'ruby' } }, + indent = { enable = true, disable = { 'ruby', 'go' } }, }, -- There are additional nvim-treesitter modules that you can use to interact -- with nvim-treesitter. You should go explore a few and see what interests you: diff --git a/lua/kickstart/plugins/vim-sleuth.lua b/lua/kickstart/plugins/vim-sleuth.lua index 3583242a..eaa07d48 100644 --- a/lua/kickstart/plugins/vim-sleuth.lua +++ b/lua/kickstart/plugins/vim-sleuth.lua @@ -1,5 +1,6 @@ return { + -- EditorConfig to use this we need to have the .editorocnfig file configured { 'tpope/vim-sleuth', - } + }, }