Several changes to statusbar

This commit is contained in:
2022-07-13 16:56:46 +02:00
parent 4a7bbc6746
commit c7aade9b4d
3 changed files with 14 additions and 3 deletions

View File

@@ -29,6 +29,15 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
}
)
local saga = require 'lspsaga'
saga.init_lsp_saga({
-- symbols in winbar
symbol_in_winbar = true,
winbar_file_format = function()
return vim.fn.expand("%=%m %f")
end,
})
-- symbols for autocomplete
vim.lsp.protocol.CompletionItemKind = {
"  (Text) ",
@@ -118,7 +127,7 @@ capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
lspconfig['elixirls'].setup{
cmd = { "/home/halfdan/opt/elixir-ls/rel/language_server.sh"},
cmd = { "/Users/fbecker18/opt/elixir-ls/language_server.sh"},
on_attach = on_attach,
capabilities = capabilities,
}

View File

@@ -86,7 +86,7 @@ return require("packer").startup(
use {'L3MON4D3/LuaSnip'}
use {'saadparwaiz1/cmp_luasnip'}
use {'tami5/lspsaga.nvim'}
use {'glepnir/lspsaga.nvim'}
-- Used to display LSP status in Lualine
use {'nvim-lua/lsp-status.nvim'}

View File

@@ -33,7 +33,9 @@ vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shif
vim.o.updatetime = 300 -- Faster completion
vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms
vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
vim.o.laststatus = 3 -- Set global status bar
vim.opt.showtabline = 0 -- Disable tabline
-- vim.opt.winbar = "%=%m %f" -- Show winbar with modified flag and filename right adjusted
-- Enable telescope theme
vim.g.gruvbox_baby_telescope_theme = 1