more cleanup

This commit is contained in:
dlond 2025-05-26 06:26:18 +12:00
parent 003d871cdd
commit 0a859f314e
3 changed files with 12 additions and 11 deletions

View File

@ -166,6 +166,7 @@ vim.o.scrolloff = 10
-- See `:help 'confirm'` -- See `:help 'confirm'`
vim.o.confirm = true vim.o.confirm = true
require 'custom.options'
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
@ -205,6 +206,8 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" }) -- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" }) -- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
require 'custom.keymaps'
-- [[ Basic Autocommands ]] -- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands` -- See `:help lua-guide-autocommands`
@ -246,6 +249,7 @@ rtp:prepend(lazypath)
-- --
-- NOTE: Here is where you install your plugins. -- NOTE: Here is where you install your plugins.
require('lazy').setup({ require('lazy').setup({
{ import = 'custom.plugins' },
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
@ -377,9 +381,6 @@ require('lazy').setup({
end, end,
}, },
{ 'nvim-telescope/telescope-ui-select.nvim' }, { 'nvim-telescope/telescope-ui-select.nvim' },
-- Useful for getting pretty icons, but requires a Nerd Font.
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
}, },
config = function() config = function()
-- Telescope is a fuzzy finder that comes with a lot of different things that -- Telescope is a fuzzy finder that comes with a lot of different things that
@ -940,7 +941,6 @@ require('lazy').setup({
-- This is the easiest way to modularize your config. -- This is the easiest way to modularize your config.
-- --
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
{ import = 'custom.plugins' },
-- --
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
-- Or use telescope! -- Or use telescope!
@ -968,8 +968,6 @@ require('lazy').setup({
}, },
}) })
require 'custom.options'
require 'custom.keymaps'
require 'custom.utils' require 'custom.utils'
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`

View File

@ -3,6 +3,14 @@
-- --
-- See the kickstart.nvim README for more information -- See the kickstart.nvim README for more information
return { return {
{
'nvim-tree/nvim-web-devicons',
lazy = false,
priority = 1000,
config = function()
require('nvim-web-devicons').setup()
end,
},
{ import = 'custom.plugins.completion' }, { import = 'custom.plugins.completion' },
{ import = 'custom.plugins.debug' }, { import = 'custom.plugins.debug' },
{ import = 'custom.plugins.formatting' }, { import = 'custom.plugins.formatting' },
@ -11,8 +19,4 @@ return {
{ import = 'custom.plugins.telescope' }, { import = 'custom.plugins.telescope' },
{ import = 'custom.plugins.theme' }, { import = 'custom.plugins.theme' },
{ import = 'custom.plugins.treesitter' }, { import = 'custom.plugins.treesitter' },
{
'nvim-tree/nvim-web-devicons',
lazy = true,
},
} }

View File

@ -15,7 +15,6 @@ return {
end, end,
}, },
{ 'nvim-telescope/telescope-ui-select.nvim' }, { 'nvim-telescope/telescope-ui-select.nvim' },
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, -- Conditionally enable based on options
}, },
opts = { -- Use opts to merge/override defaults opts = { -- Use opts to merge/override defaults
pickers = { pickers = {