Compare commits

..

2 Commits

Author SHA1 Message Date
bd3bfa42aa add new mappings 2021-04-05 17:15:52 +07:00
44c9c07acc add statusline 2021-04-05 17:15:32 +07:00
2 changed files with 53 additions and 0 deletions

View File

@ -13,6 +13,27 @@
(noremap :n :j :gj) (noremap :n :j :gj)
(noremap :n :k :gk) (noremap :n :k :gk)
(noremap :t :<esc> :<C-\><C-n>)
(noremap :t :jj :<esc>)
(nvim.set_keymap
"n"
"<leader>s"
":mksession!<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"[<Space>"
":call append(line('.') - 1, repeat([''], v:count1))<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"]<Space>"
":call append(line('.'), repeat([''], v:count1))<CR>"
{:noremap true :silent true})
(set nvim.o.tabstop 2) (set nvim.o.tabstop 2)
(set nvim.bo.tabstop 2) (set nvim.bo.tabstop 2)

View File

@ -4,6 +4,38 @@ packer.startup(function(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
use 'Olical/aniseed' use 'Olical/aniseed'
use {
'hoob3rt/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function()
require('lualine').setup{
options = {
theme = 'nord',
section_separators = {'', ''},
component_separators = {'', ''},
icons_enabled = true,
},
sections = {
lualine_a = { {'mode', upper = true} },
lualine_b = { {'branch', icon = ''} },
lualine_c = { {'filename', file_status = true} },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
inactive_sections = {
lualine_a = { },
lualine_b = { },
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = { },
lualine_z = { }
},
extensions = { 'fugitive' }
}
end
}
use 'Yggdroot/indentLine' use 'Yggdroot/indentLine'
use 'ntpeters/vim-better-whitespace' use 'ntpeters/vim-better-whitespace'
use 'valloric/matchtagalways' use 'valloric/matchtagalways'