From a64fb392b3793fafd3589935225e8618c174e84c Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 3 May 2022 12:36:39 +0200 Subject: nvim: bufferline, lsp mappings --- .config/nvim/lua/mappings.lua | 4 ++-- .config/nvim/lua/setup/bufferline.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 111c4f3..e0be18e 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -40,7 +40,7 @@ map('n', 'gi', 'Telescope lsp_implementations', opts) map('n', 'K', 'lua vim.lsp.buf.hover()', opts) map('n', '', 'lua vim.lsp.buf.signature_help()', opts) map('n', 'rn', 'lua vim.lsp.buf.rename()', opts) -map('n', 'xn', 'lua vim.lsp.diagnostic.goto_next()', opts) -map('n', 'xN', 'lua vim.lsp.diagnostic.goto_prev()', opts) +map('n', 'xn', 'lua vim.diagnostic.goto_next()', opts) +map('n', 'xN', 'lua vim.diagnostic.goto_prev()', opts) map('n', 'xx', 'Telescope lsp_code_actions', opts) map('n', 'xX', 'Telescope lsp_range_code_actions', opts) diff --git a/.config/nvim/lua/setup/bufferline.lua b/.config/nvim/lua/setup/bufferline.lua index 3dc0c71..09f1234 100644 --- a/.config/nvim/lua/setup/bufferline.lua +++ b/.config/nvim/lua/setup/bufferline.lua @@ -5,7 +5,10 @@ require("bufferline").setup { padding = 1, } }, diagnostics = "nvim_lsp", + max_name_length = 14, + max_prefix_length = 13, tab_size = 20, + separator_style = "thin", show_close_icon = false, }, } -- cgit v1.2.3-70-g09d2