feat(nvim): telescope UI + lint fixes

This commit is contained in:
Florian Schmitt 2024-04-24 10:49:52 +03:00
parent c0df020743
commit 8d79b104a5
4 changed files with 29 additions and 7 deletions

View file

@ -1,4 +1,5 @@
return { return {
{ "akinsho/bufferline.nvim", enabled = false }, { "akinsho/bufferline.nvim", enabled = false },
-- add more plugins to disable here { "lukas-reineke/indent-blankline.nvim", enabled = false },
{ "echasnovski/mini.indentscope", enabled = false },
} }

View file

@ -87,7 +87,29 @@ return {
}, },
}, },
}, },
{
{ "lukas-reineke/indent-blankline.nvim", enabled = false }, "nvim-telescope/telescope.nvim",
{ "echasnovski/mini.indentscope", enabled = false }, opts = {
defaults = {
layout_strategy = "center",
layout_config = {
prompt_position = "top",
preview_cutoff = 1, -- Preview should always show (unless previewer = false)
width = function(_, max_columns, _)
return math.min(max_columns, 80)
end,
height = function(_, _, max_lines)
return math.min(max_lines, 15)
end,
},
sorting_strategy = "ascending",
border = true,
borderchars = {
prompt = { "", "", " ", "", "", "", "", "" },
results = { "", "", "", "", "", "", "", "" },
preview = { "", "", "", "", "", "", "", "" },
},
},
},
},
} }

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should

View file

@ -1,5 +1,5 @@
# cli programs should be available on servers and desktop # cli programs should be available on servers and desktop
{ lib, pkgs, ... }: { pkgs, ... }:
{ {
programs.zsh.enable = true; programs.zsh.enable = true;
@ -13,7 +13,6 @@
mpd.musicDirectory = "/home/mrflos/Musique"; mpd.musicDirectory = "/home/mrflos/Musique";
mpd.user = "mrflos"; mpd.user = "mrflos";
mpd.group = "users"; mpd.group = "users";
#mpd.dataDir
mpd.startWhenNeeded = true; mpd.startWhenNeeded = true;
mpd.extraConfig = '' mpd.extraConfig = ''
audio_output { audio_output {