all repos — dotfiles @ 3bcdff0911bb536363df0b0e6921e0286352f740

linux dotfiles

nvim: add winresizer plugin and change colorscheme
Prithu Goswami pg@prithu.dev
Fri, 09 Sep 2022 16:46:49 +0530
commit

3bcdff0911bb536363df0b0e6921e0286352f740

parent

64c26d063600be17fb491d7aef2857324d72fba3

M config/nvim/init.luaconfig/nvim/init.lua

@@ -3,14 +3,14 @@ require 'options'

require 'keymaps' require 'completion' require 'lsp' -vim.cmd('colorscheme darkplus') - - require("nvim-tree").setup({ sort_by = "case_sensitive", filters = { custom = {"__pycache__"} + }, + diagnostics = { + enable = true }, renderer = { indent_markers = {
M config/nvim/lua/keymaps.luaconfig/nvim/lua/keymaps.lua

@@ -14,6 +14,7 @@ k('n', '<C-j>', '<C-W><C-J>', options)

k('n', '<C-k>', '<C-W><C-K>', options) k('n', '<C-h>', '<C-W><C-H>', options) k('n', '<C-l>', '<C-W><C-L>', options) +vim.g.winresizer_start_key = '<leader>e' -- tab navigation k('n', 'H', 'gT', options)

@@ -38,5 +39,5 @@ k('v', '>', '>gv', options)

k('v', '<', '<gv', options) k('n', '<leader>m', ':nohlsearch<CR>', options) -k('n', '<leader>z', ':MaximizerToggle<CR>', options) +k('n', '<leader>z', '<C-W>_', options) k('n', '<leader>r', ':so ~/.config/nvim/init.lua<CR>', options)
M config/nvim/lua/options.luaconfig/nvim/lua/options.lua

@@ -18,3 +18,10 @@ vim.opt.number = true

vim.opt.backspace = 'indent,eol,start' vim.opt.iskeyword:append "-" -- treat hyphen a part of a word and not a boundary vim.opt.termguicolors = true + +vim.cmd('colorscheme base16-classic-dark') + +vim.g.winresizer_vert_resize = 4 +vim.g.winresizer_horiz_resize = 2 + +
M config/nvim/lua/plugins.luaconfig/nvim/lua/plugins.lua

@@ -14,6 +14,7 @@ -- themes

use 'ayu-theme/ayu-vim' use 'folke/tokyonight.nvim' use 'LunarVim/Colorschemes' + use 'chriskempson/base16-vim' -- lsp use 'neovim/nvim-lspconfig'

@@ -33,6 +34,7 @@ use 'tpope/vim-fugitive'

use 'tpope/vim-surround' use 'tpope/vim-commentary' + use 'simeji/winresizer' use 'rstacruz/vim-closer' use {'iamcco/markdown-preview.nvim', run = 'cd app && npm install', cmd = 'MarkdownPreview'} use {