Browse Source

Autopairs, and messed LuaLine a bit

master
Julio Biason 3 years ago
parent
commit
75e7f78d48
  1. 3
      .gitmodules
  2. 15
      nvim/init.lua
  3. 1
      nvim/pack/plugins/start/nvim-autopairs

3
.gitmodules vendored

@ -25,3 +25,6 @@
[submodule "nvim/pack/plugins/start/plenary.nvim"]
path = nvim/pack/plugins/start/plenary.nvim
url = https://github.com/nvim-lua/plenary.nvim.git
[submodule "nvim/pack/plugins/start/nvim-autopairs"]
path = nvim/pack/plugins/start/nvim-autopairs
url = https://github.com/windwp/nvim-autopairs.git

15
nvim/init.lua

@ -82,21 +82,21 @@ require 'lualine'.setup {
icons_enabled = true,
-- theme = 'ayu_dark',
theme = 'ayu_mirage',
component_separators = { left = ' ', right = ' '},
section_separators = { left = ' ', right = ' '},
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {},
always_divide_middle = true,
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch'},
lualine_b = {'filename', 'branch'},
lualine_c = {
{
'diagnostics',
symbols = {error = 'E', warn = 'W', info = 'I', hint = 'H'},
symbols = {error = 'Errors:', warn = 'Warns:', info = 'Info:', hint = 'Hints:'},
sources = { 'nvim_diagnostic' }
}
},
lualine_d = {'filename'},
lualine_w = {'encoding'},
lualine_x = {'filetype'},
lualine_y = {'progress'},
@ -112,7 +112,7 @@ require 'lualine'.setup {
},
tabline = {
lualine_a = {'tabs'},
lualine_b = {'filename'},
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
@ -138,3 +138,6 @@ require('snippy').setup({
require('telescope').setup{}
vim.api.nvim_set_keymap('n', '<leader><space>', '<cmd>Telescope find_files<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>g', '<cmd>Telescope live_grep<CR>', { noremap = true, silent = true })
-- Auto-pairs
require('nvim-autopairs').setup{}

1
nvim/pack/plugins/start/nvim-autopairs

@ -0,0 +1 @@
Subproject commit 784398a8f184431fd4329f20b0e4f52e87707bbd
Loading…
Cancel
Save