mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: added preview for lsp
This commit is contained in:
6
.config/nvim/lua/plugins/goto-preview.lua
Normal file
6
.config/nvim/lua/plugins/goto-preview.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"rmagatti/goto-preview",
|
||||
config = function()
|
||||
require("goto-preview").setup({})
|
||||
end,
|
||||
}
|
@@ -1,53 +1,65 @@
|
||||
return {
|
||||
-- statusline
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
lazy = true
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
lazy = true,
|
||||
},
|
||||
{
|
||||
'f-person/git-blame.nvim',
|
||||
"f-person/git-blame.nvim",
|
||||
config = function()
|
||||
vim.g.gitblame_display_virtual_text = 0
|
||||
end
|
||||
end,
|
||||
},
|
||||
{ "tiyn/tccs.nvim" },
|
||||
{
|
||||
"roobert/action-hints.nvim",
|
||||
config = function()
|
||||
require("action-hints").setup({
|
||||
template = {
|
||||
definition = { text = "D", color = "#add8e6" },
|
||||
references = { text = "R%s", color = "#ff6666" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{ 'tiyn/tccs.nvim' },
|
||||
},
|
||||
config = function()
|
||||
require('lualine').setup({
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
globalstatus = true,
|
||||
symbols = {
|
||||
error = Error_sign,
|
||||
warn = Warn_sign,
|
||||
hint = Hint_sign,
|
||||
info = Info_sign
|
||||
info = Info_sign,
|
||||
},
|
||||
theme = 'tccs',
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' }
|
||||
theme = "tccs",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = {
|
||||
lualine_b = {
|
||||
{
|
||||
require('gitblame').get_current_blame_text,
|
||||
cond = require('gitblame').is_blame_text_available
|
||||
}
|
||||
require("gitblame").get_current_blame_text,
|
||||
cond = require("gitblame").is_blame_text_available,
|
||||
},
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
'encoding',
|
||||
'fileformat',
|
||||
require("action-hints").statusline,
|
||||
"encoding",
|
||||
"fileformat",
|
||||
{
|
||||
'filetype',
|
||||
icon_only = true
|
||||
}
|
||||
"filetype",
|
||||
icon_only = true,
|
||||
},
|
||||
},
|
||||
lualine_y = {
|
||||
{
|
||||
'filename',
|
||||
"filename",
|
||||
file_status = true,
|
||||
newfile_status = true,
|
||||
path = 1,
|
||||
@@ -57,12 +69,12 @@ return {
|
||||
readonly = Lualine_signs["readonly"],
|
||||
unnamed = Lualine_signs["unnamed"],
|
||||
newfile = Lualine_signs["newfile"],
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_z = { 'progress', 'location' },
|
||||
}
|
||||
lualine_z = { "progress", "location" },
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user