diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-06-29 11:02:39 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-06-29 11:02:39 +0200 |
| commit | ffb269393ceabc3b8afb6198588f5225b7d6560b (patch) | |
| tree | 64e0daffaa336db810390e4d14acd944b1d03b64 /nvim/lua/plugins | |
| parent | 5a0555bc9d7f52d240d7ab82c77b516245119bc0 (diff) | |
| download | dotfiles-ffb269393ceabc3b8afb6198588f5225b7d6560b.tar.gz dotfiles-ffb269393ceabc3b8afb6198588f5225b7d6560b.tar.bz2 dotfiles-ffb269393ceabc3b8afb6198588f5225b7d6560b.zip | |
lazy.nvim: config() und Optionen getrennt
Diffstat (limited to 'nvim/lua/plugins')
| -rw-r--r-- | nvim/lua/plugins/format.lua | 4 | ||||
| -rw-r--r-- | nvim/lua/plugins/git.lua | 15 | ||||
| -rw-r--r-- | nvim/lua/plugins/telescope.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/plugins/ui.lua | 48 |
4 files changed, 36 insertions, 36 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 9334465..d6942a8 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -30,8 +30,4 @@ return { | |||
| 30 | lsp_format = "fallback", | 30 | lsp_format = "fallback", |
| 31 | }, | 31 | }, |
| 32 | }, | 32 | }, |
| 33 | |||
| 34 | config = function(_, opts) | ||
| 35 | require("conform").setup(opts) | ||
| 36 | end, | ||
| 37 | } | 33 | } |
diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua index 94032c7..ed7bafe 100644 --- a/nvim/lua/plugins/git.lua +++ b/nvim/lua/plugins/git.lua | |||
| @@ -2,13 +2,14 @@ return { | |||
| 2 | { | 2 | { |
| 3 | "lewis6991/gitsigns.nvim", | 3 | "lewis6991/gitsigns.nvim", |
| 4 | event = { "BufReadPre", "BufNewFile" }, | 4 | event = { "BufReadPre", "BufNewFile" }, |
| 5 | config = function() | 5 | opts = { |
| 6 | require("gitsigns").setup({ | 6 | current_line_blame = true, |
| 7 | current_line_blame = true, | 7 | current_line_blame_opts = { |
| 8 | current_line_blame_opts = { | 8 | delay = 250, |
| 9 | delay = 250, | 9 | }, |
| 10 | }, | 10 | }, |
| 11 | }) | 11 | config = function(_, opts) |
| 12 | require("gitsigns").setup(opts) | ||
| 12 | require("config.keymaps").gitsigns() | 13 | require("config.keymaps").gitsigns() |
| 13 | end, | 14 | end, |
| 14 | }, | 15 | }, |
diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 8c2cae5..bbf33ce 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua | |||
| @@ -5,6 +5,11 @@ return { | |||
| 5 | "nvim-lua/plenary.nvim", | 5 | "nvim-lua/plenary.nvim", |
| 6 | }, | 6 | }, |
| 7 | lazy = true, | 7 | lazy = true, |
| 8 | opts = { | ||
| 9 | defaults = { | ||
| 10 | path_display = { "truncate" }, | ||
| 11 | }, | ||
| 12 | }, | ||
| 8 | keys = { | 13 | keys = { |
| 9 | { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" }, | 14 | { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" }, |
| 10 | { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live grep" }, | 15 | { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live grep" }, |
diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index cad8dfb..9ee68de 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua | |||
| @@ -29,33 +29,31 @@ return { | |||
| 29 | keys = { | 29 | keys = { |
| 30 | { "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Explorer toggle" }, | 30 | { "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Explorer toggle" }, |
| 31 | }, | 31 | }, |
| 32 | config = function() | 32 | opts = { |
| 33 | require("nvim-tree").setup({ | 33 | update_focused_file = { |
| 34 | update_focused_file = { | 34 | enable = true, |
| 35 | enable = true, | 35 | update_root = false, |
| 36 | update_root = false, | 36 | ignore_list = {}, |
| 37 | ignore_list = {}, | 37 | }, |
| 38 | }, | 38 | view = { |
| 39 | view = { | 39 | width = 40, |
| 40 | width = 30, | 40 | cursorline = true, |
| 41 | cursorline = true, | 41 | }, |
| 42 | }, | 42 | renderer = { |
| 43 | renderer = { | 43 | highlight_opened_files = "all", |
| 44 | highlight_opened_files = "all", | 44 | highlight_git = true, |
| 45 | highlight_git = true, | 45 | icons = { |
| 46 | icons = { | 46 | show = { |
| 47 | show = { | 47 | file = true, |
| 48 | file = true, | 48 | folder = true, |
| 49 | folder = true, | 49 | git = true, |
| 50 | git = true, | ||
| 51 | }, | ||
| 52 | }, | 50 | }, |
| 53 | }, | 51 | }, |
| 54 | filters = { | 52 | }, |
| 55 | dotfiles = false, | 53 | filters = { |
| 56 | }, | 54 | dotfiles = false, |
| 57 | }) | 55 | }, |
| 58 | end, | 56 | }, |
| 59 | }, | 57 | }, |
| 60 | 58 | ||
| 61 | { | 59 | { |
