summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2023-06-03 10:11:10 -0400
committerChris Patti <feoh@feoh.org>2023-06-03 10:11:58 -0400
commitcdaa750c86cfc0c8f2fc1c8638b7296c327bf5a9 (patch)
treefc98865cd810aa91c8c245b6f20c9fdda0bd0e2f /init.lua
parente15e7f4bda880b17c89327003877c6cff55d7958 (diff)
Refactor theme and status line into their own file
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua29
1 files changed, 6 insertions, 23 deletions
diff --git a/init.lua b/init.lua
index ca2da6e..5e9e567 100644
--- a/init.lua
+++ b/init.lua
@@ -122,35 +122,18 @@ require('lazy').setup({
changedelete = { text = '~' },
},
on_attach = function(bufnr)
- vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk, { buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
- vim.keymap.set('n', '<leader>gn', require('gitsigns').next_hunk, { buffer = bufnr, desc = '[G]o to [N]ext Hunk' })
+ vim.keymap.set('n', '[c', require('gitsigns').prev_hunk, { buffer = bufnr, desc = 'Go to Previous Hunk' })
+ vim.keymap.set('n', ']c', require('gitsigns').next_hunk, { buffer = bufnr, desc = 'Go to Next Hunk' })
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
end,
},
},
- {
- -- Theme inspired by Atom
- 'navarasu/onedark.nvim',
- priority = 1000,
- config = function()
- vim.cmd.colorscheme 'onedark'
- end,
- },
+ -- Theme related configs go here
+ require 'kickstart.plugins.theme',
- {
- -- Set lualine as statusline
- 'nvim-lualine/lualine.nvim',
- -- See `:help lualine.txt`
- opts = {
- options = {
- icons_enabled = false,
- theme = 'onedark',
- component_separators = '|',
- section_separators = '',
- },
- },
- },
+ -- Status line related configs go here
+ require 'kickstart.plugins.statusline',
{
-- Add indentation guides even on blank lines