This commit is contained in:
Zacharias-Brohn
2025-02-15 23:39:07 +01:00
parent 2ac5fc926a
commit d87b6964b5
5 changed files with 12 additions and 34 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
require("bufferline").setup ({
options = {
diagnostics = "coc",
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = " "
for e, n in pairs(diagnostics_dict) do
@@ -10,6 +10,8 @@ require("bufferline").setup ({
end
return s
end,
show_close_icon = false,
show_buffer_close_icons = false,
always_show_bufferline = true,
offsets = {
{
-21
View File
@@ -55,8 +55,6 @@ require("mason-lspconfig").setup({
}
})
local cmp_select = { behaivior = cmp.SelectBehavior.Select }
cmp.setup {
completion = { completeopt = "menu,menuone" },
snippet = {
@@ -72,12 +70,10 @@ cmp.setup {
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
},
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
@@ -87,7 +83,6 @@ cmp.setup {
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
@@ -105,19 +100,9 @@ cmp.setup {
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "async_path" },
}),
}
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' },
{ name = 'cmdline' },
}),
matching = { disallow_symbol_nonprefix_matching = false },
})
vim.diagnostic.config({
-- update_in_insert = true,
float = {
@@ -149,9 +134,3 @@ for _, server in ipairs(servers) do
lspconfig[server].setup {
}
end
-- lspconfig.hyprls.setup {
-- root_dir = vim.fs.root( 0, 'hyprland.conf' ),
-- single_file_support = false,
-- filetypes = { "conf" },
-- }
-7
View File
@@ -67,9 +67,6 @@ local function format_message(message, percentage)
return (percentage and percentage .. "%\t" or "") .. (message or "")
end
-- LSP integration
-- Make sure to also have the snippet with the common helper functions in your config!
vim.lsp.handlers["$/progress"] = function(_, result, ctx)
local client_id = ctx.client_id
@@ -110,7 +107,6 @@ vim.lsp.handlers["$/progress"] = function(_, result, ctx)
end
end
-- table from lsp severity to vim severity.
local severity = {
"error",
"warn",
@@ -121,9 +117,6 @@ vim.lsp.handlers["window/showMessage"] = function(err, method, params, client_id
vim.notify(method.message, severity[params.type])
end
-- DAP integration
-- Make sure to also have the snippet with the common helper functions in your config!
dap.listeners.before['event_progressStart']['progress-notifications'] = function(session, body)
local notif_data = get_notif_data("dap", body.progressId)
+4 -1
View File
@@ -134,7 +134,6 @@ return {
char = {
corner_top = "",
corner_bottom = "",
vertical = "",
arrow = "",
},
@@ -177,6 +176,10 @@ return {
border = nil,
highlight_selection = true,
use_matchfuzzy = true,
tab_completion = true,
},
},
{
"andweeb/presence.nvim",
},
}