working dashboard

This commit is contained in:
Christoph J. Scherr 2023-09-06 15:44:20 +02:00
parent 3d9c5f6df6
commit bd80dcc2a5
5 changed files with 108 additions and 53 deletions

View File

@ -30,6 +30,7 @@ return {
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
{ {
'olimorris/persisted.nvim', 'olimorris/persisted.nvim',
enabled = false,
event = 'VimEnter', event = 'VimEnter',
priority = 1000, priority = 1000,
opts = { opts = {

View File

@ -37,59 +37,59 @@ return {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
opts = { opts = {
servers = { servers = {
gopls = { -- gopls = {
settings = { -- settings = {
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md -- -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
gopls = { -- gopls = {
gofumpt = true, -- gofumpt = true,
usePlaceholders = true, -- usePlaceholders = true,
completeUnimported = true, -- completeUnimported = true,
staticcheck = true, -- staticcheck = true,
directoryFilters = { -- directoryFilters = {
'-.git', -- '-.git',
'-.vscode', -- '-.vscode',
'-.idea', -- '-.idea',
'-.vscode-test', -- '-.vscode-test',
'-node_modules', -- '-node_modules',
}, -- },
semanticTokens = true, -- semanticTokens = true,
codelenses = { -- codelenses = {
gc_details = false, -- gc_details = false,
generate = true, -- generate = true,
regenerate_cgo = true, -- regenerate_cgo = true,
run_govulncheck = true, -- run_govulncheck = true,
test = true, -- test = true,
tidy = true, -- tidy = true,
upgrade_dependency = true, -- upgrade_dependency = true,
vendor = true, -- vendor = true,
}, -- },
hints = { -- hints = {
assignVariableTypes = true, -- assignVariableTypes = true,
compositeLiteralFields = true, -- compositeLiteralFields = true,
compositeLiteralTypes = true, -- compositeLiteralTypes = true,
constantValues = true, -- constantValues = true,
functionTypeParameters = true, -- functionTypeParameters = true,
parameterNames = true, -- parameterNames = true,
rangeVariableTypes = true, -- rangeVariableTypes = true,
}, -- },
-- https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md -- -- https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md
analyses = { -- analyses = {
fieldalignment = true, -- fieldalignment = true,
nilness = true, -- nilness = true,
unusedparams = true, -- unusedparams = true,
unusedwrite = true, -- unusedwrite = true,
useany = true, -- useany = true,
-- fillreturns = true, -- -- fillreturns = true,
-- nonewvars = true, -- -- nonewvars = true,
-- shadow = true, -- -- shadow = true,
-- undeclaredname = true, -- -- undeclaredname = true,
-- unusedvariable = true, -- -- unusedvariable = true,
-- ST1000 = false, -- -- ST1000 = false,
-- ST1005 = false, -- -- ST1005 = false,
}, -- },
}, -- },
}, -- },
}, -- },
}, },
setup = { setup = {
gopls = function(_, _) gopls = function(_, _)

View File

@ -0,0 +1,53 @@
return {
{
'glepnir/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup({
theme = 'hyper',
config = {
header = {
foo = "bar",
},
week_header = {
enable = true,
},
shortcut = {
{
desc = '󰊳 Update',
group = '@property',
action = 'Lazy update',
key = 'u'
},
{
icon = '',
icon_hl = '@variable',
desc = 'Files',
group = 'Label',
action = 'Telescope find_files',
key = 'f',
},
{
desc = ' Git',
group = 'Label',
action = function()
local Util = require('plex.lib.utils')
Util.float_term({ 'lazygit'}, { cwd = Util.get_root() })
end,
key = 'g',
},
{
desc = ' Neorg',
group = 'Number',
action = 'Neorg workspace main',
key = 'o',
},
},
},
})
end,
dependencies = { {'nvim-tree/nvim-web-devicons'}}
}
}

View File

@ -1,2 +1,3 @@
#ifferent #ifferent
Linter Linter
Neorg

Binary file not shown.