diff options
| author | Chris Patti <feoh@feoh.org> | 2023-06-04 16:10:59 +0000 |
|---|---|---|
| committer | Chris Patti <feoh@feoh.org> | 2023-06-04 16:10:59 +0000 |
| commit | 0b27e37a70826bb30821c6f76c231ce332292359 (patch) | |
| tree | ab97deeace7bcedf002ad285b2a2467be019e1fd /nvim/init.lua | |
| parent | ef49ada08c0ff2d8c2abb41e1b5826c1b009b511 (diff) | |
| download | dots-0b27e37a70826bb30821c6f76c231ce332292359.tar.gz | |
Revert "Refactor theme and status line into their own file"
This reverts commit 4dd2f71906c4278356f80736ee7f3faaf3cdb3ca.
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 5e9e567..ca2da6e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -122,18 +122,35 @@ require('lazy').setup({ changedelete = { text = '~' }, }, on_attach = function(bufnr) - 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>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', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' }) end, }, }, - -- Theme related configs go here - require 'kickstart.plugins.theme', + { + -- Theme inspired by Atom + 'navarasu/onedark.nvim', + priority = 1000, + config = function() + vim.cmd.colorscheme 'onedark' + end, + }, - -- Status line related configs go here - require 'kickstart.plugins.statusline', + { + -- Set lualine as statusline + 'nvim-lualine/lualine.nvim', + -- See `:help lualine.txt` + opts = { + options = { + icons_enabled = false, + theme = 'onedark', + component_separators = '|', + section_separators = '', + }, + }, + }, { -- Add indentation guides even on blank lines |