diff options
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r-- | .config/nvim/lua/setup/lspconfig.lua | 12 | ||||
-rw-r--r-- | .config/nvim/lua/setup/lualine.lua | 3 |
2 files changed, 9 insertions, 6 deletions
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua index e65010d..488d35b 100644 --- a/.config/nvim/lua/setup/lspconfig.lua +++ b/.config/nvim/lua/setup/lspconfig.lua @@ -2,11 +2,13 @@ require("nvim-lsp-installer").setup {} local lspconfig = require("lspconfig") local function on_attach() - vim.cmd('doautocmd User lspAttached') - vim.cmd('augroup Format') - vim.cmd('autocmd! * <buffer>') - vim.cmd('autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()') - vim.cmd('augroup END') + vim.cmd([[ + doautocmd User lspAttached') + augroup Format + autocmd! * <buffer> + autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() + augroup END + ]]) end lspconfig.sumneko_lua.setup { diff --git a/.config/nvim/lua/setup/lualine.lua b/.config/nvim/lua/setup/lualine.lua index 312fe65..be3c97a 100644 --- a/.config/nvim/lua/setup/lualine.lua +++ b/.config/nvim/lua/setup/lualine.lua @@ -7,7 +7,7 @@ local config = { component_separators = { left = '', right = '' }, section_separators = { left = '', right = '' }, disabled_filetypes = { 'startify', 'terminal', 'netrw', 'NvimTree', 'packer' }, - globalstatus = false, + globalstatus = true, }, sections = { lualine_a = { 'mode' }, @@ -34,6 +34,7 @@ local config = { -- end local function ins_right(component) + table.insert(config.sections.lualine_x, 1, component) end |