summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:36:39 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:36:39 +0200
commit280b092727fc3a0bb8a1735b53a517071dd475c6 (patch)
tree4cf284196c0d80715fcd6066d57cc87670c81d0b
parent88fce742fea734e6ad9fd3716e3f64161138926b (diff)
nvim: bufferline, lsp mappings
-rw-r--r--.config/nvim/lua/mappings.lua4
-rw-r--r--.config/nvim/lua/setup/bufferline.lua3
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,
},
}