diff options
author | Adam <adam.moloney.stuck@gmail.com> | 2022-05-03 12:36:39 +0200 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2022-05-03 17:17:20 +0200 |
commit | a64fb392b3793fafd3589935225e8618c174e84c (patch) | |
tree | e19dc085343e9c4ba1633218601e2a670a06c812 | |
parent | 827805437eb232dd5605e06b448205c8a00496cd (diff) |
nvim: bufferline, lsp mappings
-rw-r--r-- | .config/nvim/lua/mappings.lua | 4 | ||||
-rw-r--r-- | .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', '<leader>gi', '<cmd>Telescope lsp_implementations<cr>', opts) map('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts) map('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<cr>', opts) map('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>', opts) -map('n', '<leader>xn', '<cmd>lua vim.lsp.diagnostic.goto_next()<cr>', opts) -map('n', '<leader>xN', '<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>', opts) +map('n', '<leader>xn', '<cmd>lua vim.diagnostic.goto_next()<cr>', opts) +map('n', '<leader>xN', '<cmd>lua vim.diagnostic.goto_prev()<cr>', opts) map('n', '<leader>xx', '<cmd>Telescope lsp_code_actions<cr>', opts) map('n', '<leader>xX', '<cmd>Telescope lsp_range_code_actions<cr>', 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, }, } |