diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-08 07:14:29 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-08 07:57:54 +0200 |
| commit | 3da4c7f9209707af194de9538b2308be4e702e73 (patch) | |
| tree | ab6b56ed2c965d29ec26380f255528474e761ace /nvim/lua/config/options.lua | |
| parent | 8c43ebd619d724133e1063e3b686907d5aa56abe (diff) | |
| download | dotfiles-3da4c7f9209707af194de9538b2308be4e702e73.tar.gz dotfiles-3da4c7f9209707af194de9538b2308be4e702e73.tar.bz2 dotfiles-3da4c7f9209707af194de9538b2308be4e702e73.zip | |
Konfiguration vereinfacht
Diffstat (limited to 'nvim/lua/config/options.lua')
| -rw-r--r-- | nvim/lua/config/options.lua | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 227475a..b1d2104 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua | |||
| @@ -12,6 +12,9 @@ opt.signcolumn = "yes" | |||
| 12 | opt.termguicolors = true | 12 | opt.termguicolors = true |
| 13 | opt.showcmd = false | 13 | opt.showcmd = false |
| 14 | 14 | ||
| 15 | -- Rahmen für alle Floating Windows (ersetzt manuelles Setzen von 'border') | ||
| 16 | opt.winborder = "rounded" | ||
| 17 | |||
| 15 | -- Texte umbrechen | 18 | -- Texte umbrechen |
| 16 | opt.wrap = false | 19 | opt.wrap = false |
| 17 | opt.linebreak = true | 20 | opt.linebreak = true |
| @@ -56,10 +59,8 @@ opt.tabstop = 4 | |||
| 56 | opt.shiftwidth = 4 | 59 | opt.shiftwidth = 4 |
| 57 | opt.softtabstop = 0 | 60 | opt.softtabstop = 0 |
| 58 | 61 | ||
| 59 | -- Einrückungen | 62 | -- Einrückungen (cindent nur für C/C++, siehe ftplugin/c.lua) |
| 60 | opt.smartindent = true | ||
| 61 | opt.autoindent = true | 63 | opt.autoindent = true |
| 62 | opt.cindent = true | ||
| 63 | 64 | ||
| 64 | -- Faltungen | 65 | -- Faltungen |
| 65 | opt.foldlevel = 1000 | 66 | opt.foldlevel = 1000 |
| @@ -95,7 +96,6 @@ opt.fileformat = "unix" | |||
| 95 | -- Provider deaktivieren (alle Plugins sind reines Lua, kein Provider noetig) | 96 | -- Provider deaktivieren (alle Plugins sind reines Lua, kein Provider noetig) |
| 96 | g.loaded_ruby_provider = 0 | 97 | g.loaded_ruby_provider = 0 |
| 97 | g.loaded_perl_provider = 0 | 98 | g.loaded_perl_provider = 0 |
| 98 | g.loaded_luarocks_provider = 0 | ||
| 99 | g.loaded_python3_provider = 0 | 99 | g.loaded_python3_provider = 0 |
| 100 | g.loaded_node_provider = 0 | 100 | g.loaded_node_provider = 0 |
| 101 | 101 | ||
| @@ -114,11 +114,3 @@ vim.diagnostic.config({ | |||
| 114 | severity_sort = true, | 114 | severity_sort = true, |
| 115 | float = { border = "rounded" }, | 115 | float = { border = "rounded" }, |
| 116 | }) | 116 | }) |
| 117 | |||
| 118 | vim.lsp.util.open_floating_preview = (function(orig) | ||
| 119 | return function(contents, syntax, opts, ...) | ||
| 120 | opts = opts or {} | ||
| 121 | opts.border = opts.border or "rounded" | ||
| 122 | return orig(contents, syntax, opts, ...) | ||
| 123 | end | ||
| 124 | end)(vim.lsp.util.open_floating_preview) | ||
