Browse Source

Autopairs, and messed LuaLine a bit

master
Julio Biason 3 years ago
parent
commit
75e7f78d48
  1. 3
      .gitmodules
  2. 11
      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

11
nvim/init.lua

@ -89,14 +89,14 @@ require 'lualine'.setup {
},
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