diff --git a/init.lua b/init.lua index 0d60c7a..6bef37b 100644 --- a/init.lua +++ b/init.lua @@ -11,6 +11,7 @@ O.tabstop=2 O.shiftwidth=2 O.expandtab=true O.preserveindent=true +O.fillchars = { eob = " " } O.termguicolors=true -- If running on WSL + Arch, uncomment this for faster startup @@ -105,6 +106,8 @@ packer.startup({function(u) u 'preservim/vim-markdown' u 'vim-pandoc/vim-pandoc-syntax' u 'itchyny/calendar.vim' + u 'junegunn/goyo.vim' + u 'junegunn/limelight.vim' -- Terminal u 'akinsho/toggleterm.nvim' @@ -123,7 +126,8 @@ packer.startup({function(u) } -- Others - u 'nvim-lualine/lualine.nvim' + -- u 'nvim-lualine/lualine.nvim' + u 'itchyny/lightline.vim' u 'folke/which-key.nvim' if fresh_install then @@ -167,7 +171,6 @@ lsp.on_attach(function(client, bufnr) end) lsp.ensure_installed({ - 'lua_ls', 'tsserver', 'eslint', 'rust_analyzer', @@ -199,13 +202,6 @@ cmp.setup { } } -local lualine = require('lualine') -lualine.setup({ - options = { - theme = 'nord' - } -}); - local whichkey = require('which-key') whichkey.setup() @@ -288,15 +284,15 @@ keymap("v", ">", ">gv", opts) keymap("v", "p", '"_dP', opts) -- Move text up and down -keymap("x", "J", ":move '>+1gv-gv", opts) -keymap("x", "K", ":move '<-2gv-gv", opts) -keymap("x", "", ":move '>+1gv-gv", opts) -keymap("x", "", ":move '<-2gv-gv", opts) +keymap("x", "J", ":move '>+1gv-gv", opts) +keymap("x", "K", ":move '<-2gv-gv", opts) +keymap("x", "", ":move '>+1gv-gv", opts) +keymap("x", "", ":move '<-2gv-gv", opts) -- terminal keymap("t", "", "", opts) -keymap("n", "tt", ":ToggleTerm", opts) -keymap("x", "tt", ":ToggleTerm", opts) +keymap("n", "tt", ":ToggleTerm", opts) +keymap("x", "tt", ":ToggleTerm", opts) -- Notes @@ -309,6 +305,10 @@ keymap('n', 'fy', ':let @+=@%', opts) keymap('n', 'gn', 'yi[:e *', opts) keymap('n', 'gm', ':e main.md', opts) +-- Present +keymap('n', 'g', ':Goyo', opts) +keymap('n', 'l', ':Limelight!! 0.9', opts) + -- Neovide if V.g.neovide then keymap('n', 'ff', ':lua V.g.neovide_fullscreen = true', opts)