diff --git a/lua/custom/chadrc.lua b/lua/custom/chadrc.lua index 4d4803b..28bbc22 100644 --- a/lua/custom/chadrc.lua +++ b/lua/custom/chadrc.lua @@ -33,7 +33,7 @@ M.ui = { diagnostic_head = '', -- default diagnostic head on dialogs diagnostic_err = '', -- severity 1 diagnostic_warn = '', -- 2 - diagnostic_info = '', -- 3 + diagnostic_info = '', -- 3 diagnostic_hint = '', -- 4 } }, diff --git a/lua/custom/plugins/configs/code-gpt.lua b/lua/custom/plugins/configs/code-gpt.lua index d398fb7..eb2ff75 100644 --- a/lua/custom/plugins/configs/code-gpt.lua +++ b/lua/custom/plugins/configs/code-gpt.lua @@ -13,6 +13,11 @@ M.setup = function() python = "Use pytest framework." } }, + ["code4"] = { + system_message_template = "You are a Programming pair Assistant AI. You are helpful with improving and optimizing source code using the best idiomatic practicies.", + model = "gpt-4", + user_message_template = "I have the following {{language}} code: ```{{filetype}}\n{{text_selection}}```\n{{command_args}}. {{language_instructions}} Think step by step then only return the code snippet and nothing else." + }, ["docu4"] = { system_message_template = "You are a technical documentation assistant to a software developer. You will help improving project documentation.", user_message_template = "Improve the following text: ```{{text_selection}}```\n. Use a professional. Write as if you are writing a python project documentation for a Github repo. {{command_args}}", diff --git a/lua/custom/plugins/configs/navigator.lua b/lua/custom/plugins/configs/navigator.lua index 4c9dcbe..64f6270 100644 --- a/lua/custom/plugins/configs/navigator.lua +++ b/lua/custom/plugins/configs/navigator.lua @@ -1,5 +1,6 @@ local present, navigator = pcall(require, "navigator") + if not present then return end @@ -18,6 +19,8 @@ local get_current_gomod = function() return mod_name end +-- default config +-- "~/.local/share/nvim/site/pack/packer/opt/navigator.lua/lua/navigator.lua" local config = { debug = false, transparency = 5, @@ -32,7 +35,8 @@ local config = { { key = 'gW', func = require('navigator.workspace').workspace_symbol_live, desc = 'lsp workspace_symbol_live' }, { key = '', func = require('navigator.definition').definition, desc = 'lsp definition' }, { key = 'gd', func = require('navigator.definition').definition, desc = 'lsp definition' }, - { key = 'gp', func = require('navigator.definition').definition_preview, desc = 'lsp definition_preview' }, + { key = 'gp', func = require('navigator.definition').definition_preview, desc = 'lsp definition preview' }, + { key = 'gP', func = require('navigator.definition').type_definition_preview, desc = 'lsp type definition preview' }, -- handled by main mappings -- { key = 'gt', func = require('navigator.treesitter').buf_ts, desc = 'lsp buf_ts' }, -- { key = 'gT', func = require('navigator.treesitter').bufs_ts, desc = 'lsp bufs_ts' }, @@ -97,7 +101,7 @@ local config = { icons = { icons = true, -- set to false to use system default ( if you using a terminal does not have nerd/icon) -- Code action - code_action_icon = ' ', -- "", + code_action_icon = '', -- "", -- code lens code_lens_action_icon = '', @@ -106,7 +110,7 @@ local config = { diagnostic_head = '', -- default diagnostic head on dialogs diagnostic_err = '', -- severity 1 diagnostic_warn = '', -- 2 - diagnostic_info = '', -- 3 + diagnostic_info = '', -- 3 diagnostic_hint = '', -- 4 -- used in the diagnostics summary window @@ -115,7 +119,7 @@ local config = { diagnostic_head_severity_3 = 'i', diagnostic_head_description = ' ', diagnostic_virtual_text = '', - diagnostic_file = '🚑', + diagnostic_file = ' ', -- Values -- @@ -143,7 +147,7 @@ local config = { module = '', flag = '', }, - treesitter_defult = '🌲', + treesitter_defult = '', doc_symbols = '', }, mason = true, @@ -162,6 +166,11 @@ local config = { severity_sort = { reverse = false }, }, + code_action = { + delay = 5000, -- 5 sec delay + virtual_text_icon = false, + }, + diagnostic_scrollbar_sign = false, display_diagnostic_qf = false, diff --git a/lua/custom/plugins/configs/refactoring.lua b/lua/custom/plugins/configs/refactoring.lua index 4e26b61..b62ff70 100644 --- a/lua/custom/plugins/configs/refactoring.lua +++ b/lua/custom/plugins/configs/refactoring.lua @@ -22,6 +22,8 @@ local config = { c = true, java = true, }, + printf_statements = {}, + print_var_statements = {}, } M.setup = function() diff --git a/lua/custom/plugins/configs/todo-comments.lua b/lua/custom/plugins/configs/todo-comments.lua index efcfe36..95b667d 100644 --- a/lua/custom/plugins/configs/todo-comments.lua +++ b/lua/custom/plugins/configs/todo-comments.lua @@ -16,6 +16,7 @@ local config = { WIP = { color = "default"}, NOTE = { alt = { "TIP", "INFO", "TRICK", "RELEASE"}}, DEBUG = {}, + REVIEW = { color = "info" } }, colors = { -- info = {"#2563EB"}, diff --git a/lua/custom/plugins/configs/treesitter.lua b/lua/custom/plugins/configs/treesitter.lua index b139e70..1a5fb9f 100644 --- a/lua/custom/plugins/configs/treesitter.lua +++ b/lua/custom/plugins/configs/treesitter.lua @@ -48,10 +48,10 @@ return { -- } -- }, -- - rainbow = { - enable = true, - extended_mode = true, - }, + -- rainbow = { + -- enable = true, + -- extended_mode = true, + -- }, textobjects = { enable = true, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index c5833c1..6670bb2 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -132,6 +132,7 @@ return { -- Code Refactoring ["ThePrimeagen/refactoring.nvim"] = { + module = {"refactoring"}, setup = function() require("core.utils").load_mappings "refactoring" end,