updated lsp navigator and diagnostics

master
blob42 9 months ago
parent 0c1681d104
commit 660dd0c37b

@ -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
}
},

@ -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}}",

@ -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 = '<c-]>', 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 = '<Leader>gt', func = require('navigator.treesitter').buf_ts, desc = 'lsp buf_ts' },
-- { key = '<Leader>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,

@ -22,6 +22,8 @@ local config = {
c = true,
java = true,
},
printf_statements = {},
print_var_statements = {},
}
M.setup = function()

@ -16,6 +16,7 @@ local config = {
WIP = { color = "default"},
NOTE = { alt = { "TIP", "INFO", "TRICK", "RELEASE"}},
DEBUG = {},
REVIEW = { color = "info" }
},
colors = {
-- info = {"#2563EB"},

@ -48,10 +48,10 @@ return {
-- }
-- },
--
rainbow = {
enable = true,
extended_mode = true,
},
-- rainbow = {
-- enable = true,
-- extended_mode = true,
-- },
textobjects = {
enable = true,

@ -132,6 +132,7 @@ return {
-- Code Refactoring
["ThePrimeagen/refactoring.nvim"] = {
module = {"refactoring"},
setup = function()
require("core.utils").load_mappings "refactoring"
end,

Loading…
Cancel
Save