diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-10-06 22:43:10 +0200 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-10-06 22:43:10 +0200 |
commit | 872fe99c314fa7ad5084673a38f8e09d4291d8a0 (patch) | |
tree | 083f2e6aed3b8eb16db2b9b8bb0f7ee14932e66f /.config/nvim/lua/setup | |
parent | 14e9e356c390250349bce9e0d32336126b9e4797 (diff) |
nvim: global statusline, winbar, cmdheight
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 |