feat: update

main
jaredgoldman 2024-04-07 18:29:54 -04:00
parent adf11320cb
commit 9e0e8c0286
7 changed files with 52 additions and 4 deletions

View File

@ -13,4 +13,5 @@ require("config.fterm")
require("config.harpoon") require("config.harpoon")
require("config.autopairs") require("config.autopairs")
require("config.autotags") require("config.autotags")
-- require("config.dashboard")
require("keymaps") require("keymaps")

View File

@ -7,6 +7,7 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"copilot.vim": { "branch": "release", "commit": "7097b09e52621a97d11f254e04de5e5a0f26e5f5" }, "copilot.vim": { "branch": "release", "commit": "7097b09e52621a97d11f254e04de5e5a0f26e5f5" },
"dashboard-nvim": { "branch": "master", "commit": "681300934baf36f6184ca41f0b26aed22056d4ee" },
"harpoon": { "branch": "harpoon2", "commit": "da326d0438ac68dee9b6b62a734be940a8bd8405" }, "harpoon": { "branch": "harpoon2", "commit": "da326d0438ac68dee9b6b62a734be940a8bd8405" },
"lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" }, "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },

View File

@ -0,0 +1,30 @@
local dashboard = require("dashboard-nvim")
dashboard.setup({
theme = 'doom',
config = {
header = {}, --your header
center = {
{
icon = '',
icon_hl = 'Title',
desc = 'Find File ',
desc_hl = 'String',
key = 'b',
keymap = 'SPC f f',
key_hl = 'Number',
key_format = ' %s', -- remove default surrounding `[]`
action = 'lua print(2)'
},
{
icon = '',
desc = 'Find Dotfiles',
key = 'f',
keymap = 'SPC f d',
key_format = ' %s', -- remove default surrounding `[]`
action = 'lua print(3)'
},
},
footer = {} --your footer
}
})

View File

@ -6,7 +6,6 @@ local api = vim.api
-- Custom commands -- Custom commands
api.nvim_create_user_command('FTermToggle', fterm.toggle, { bang = true }) api.nvim_create_user_command('FTermToggle', fterm.toggle, { bang = true })
api.nvim_create_user_command('FTermClose', fterm.close, { bang = true }) api.nvim_create_user_command('FTermClose', fterm.close, { bang = true })
local mappings = { local mappings = {
n = { n = {
-- highlighting -- highlighting

View File

@ -48,3 +48,9 @@ api.nvim_create_autocmd({ "BufWritePre" }, {
pattern = { "*" }, pattern = { "*" },
command = [[if &filetype !~# 'lsp' | %s/\s\+$//e | endif]], command = [[if &filetype !~# 'lsp' | %s/\s\+$//e | endif]],
}) })
-- Startup
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
vim.defer_fn(function() vim.cmd("NvimTreeOpen") end, 100) -- Delays NVim Tree opening by 100ms
end
})

View File

@ -10,9 +10,20 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
lazypath, lazypath,
}) })
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ require("lazy").setup({
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
theme = "doom"
}
end,
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
},
"tanvirtin/monokai.nvim", "tanvirtin/monokai.nvim",
{ {
"onsails/lspkind.nvim", "onsails/lspkind.nvim",
@ -69,9 +80,7 @@ require("lazy").setup({
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',
event = "InsertEnter", event = "InsertEnter",
config = true config = true
-- use opts = {} for passing setup options
-- this is equalent to setup({}) function
}, },
'windwp/nvim-ts-autotag', 'windwp/nvim-ts-autotag',
'nvim-treesitter/nvim-treesitter' 'nvim-treesitter/nvim-treesitter',
}) })

View File

@ -10,3 +10,5 @@
- extended history x - extended history x
- auto-pairs x - auto-pairs x
- lua vim linting x - lua vim linting x
- dashboard
- debugger