Compare commits
2 Commits
e3cf322fc9
...
3866873ac8
| Author | SHA1 | Date | |
|---|---|---|---|
| 3866873ac8 | |||
| a503fed8d5 |
@@ -285,7 +285,31 @@ require("lazy").setup({
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
require("neo-tree").setup({
|
||||
window = {
|
||||
position = "left",
|
||||
width = 60,
|
||||
mappings = {
|
||||
["<tab>"] = {
|
||||
"toggle_node",
|
||||
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
"antosha417/nvim-lsp-file-operations",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("lsp-file-operations").setup()
|
||||
end,
|
||||
},
|
||||
|
||||
-- workspaces, lightweight "projects"
|
||||
@@ -414,15 +438,24 @@ require("lazy").setup({
|
||||
-- Calculate padding for centering the greeting
|
||||
local greetingWidth = #greeting - 3
|
||||
local padding = math.floor((logoWidth - greetingWidth) / 2)
|
||||
|
||||
-- Generate spaces for padding
|
||||
local paddedGreeting = string.rep(' ', padding) .. greeting
|
||||
|
||||
|
||||
local userName = "You work as '" .. vim.env.USER .. "'."
|
||||
|
||||
-- Calculate padding for centering the username
|
||||
local userNameWidth = #userName
|
||||
local padding = math.floor((logoWidth - userNameWidth) / 2)
|
||||
-- Generate spaces for padding
|
||||
local userNamePadded = string.rep(' ', padding) .. userName
|
||||
|
||||
|
||||
-- Add margin lines below the padded greeting
|
||||
local margin = string.rep('\n', marginBottom * 5)
|
||||
|
||||
-- Concatenate logo, padded greeting, and margin
|
||||
local adjustedLogo = logo .. '\n' .. paddedGreeting .. margin
|
||||
local adjustedLogo = logo .. '\n' .. paddedGreeting .. '\n\n' .. userNamePadded .. '\n' .. margin
|
||||
dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
@@ -552,7 +585,7 @@ require("lazy").setup({
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
default_provider = "ollama",
|
||||
edgy = true, -- enable this!
|
||||
edgy = true, -- enable this!
|
||||
single_window = false, -- set this to true if you want only one OGPT window to appear at a time
|
||||
providers = {
|
||||
ollama = {
|
||||
@@ -683,6 +716,9 @@ require("lazy").setup({
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
-- new plugins here
|
||||
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user