aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua')
-rw-r--r--nvim/lua/config/options.lua3
-rw-r--r--nvim/lua/config/statusline.lua26
2 files changed, 3 insertions, 26 deletions
diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua
index b1d2104..55fe983 100644
--- a/nvim/lua/config/options.lua
+++ b/nvim/lua/config/options.lua
@@ -50,9 +50,6 @@ opt.matchpairs:append("<:>")
50-- automatisches Einlesen geänderter Dateien 50-- automatisches Einlesen geänderter Dateien
51opt.autoread = true 51opt.autoread = true
52 52
53-- Suche rekursiv
54opt.path:append("**")
55
56-- Tabs 53-- Tabs
57opt.expandtab = false 54opt.expandtab = false
58opt.tabstop = 4 55opt.tabstop = 4
diff --git a/nvim/lua/config/statusline.lua b/nvim/lua/config/statusline.lua
index 01339d0..99a2ad5 100644
--- a/nvim/lua/config/statusline.lua
+++ b/nvim/lua/config/statusline.lua
@@ -46,19 +46,6 @@ local function git_diff()
46 return "" 46 return ""
47end 47end
48 48
49----------------------------------------------------------------------
50-- Dateiname mit Modifikationsstatus
51----------------------------------------------------------------------
52
53local function filename()
54 local name = vim.fn.expand("%:.")
55 if name == "" then name = "[No Name]" end
56
57 if vim.bo.modified then name = name .. " [+]" end
58
59 return " " .. name .. " "
60end
61
62------------------------------------------------------------------------ 49------------------------------------------------------------------------
63-- Treesitter-Aktivität (buffer-lokal, kein redraw-spam) 50-- Treesitter-Aktivität (buffer-lokal, kein redraw-spam)
64------------------------------------------------------------------------ 51------------------------------------------------------------------------
@@ -103,14 +90,6 @@ local function fileinfo()
103 return string.format(" %s %s ", ft, enc) 90 return string.format(" %s %s ", ft, enc)
104end 91end
105 92
106------------------------------------------------------------------------
107-- Cursor-Position (kein redraw-spam)
108------------------------------------------------------------------------
109
110local function position()
111 return string.format(" %d:%d ", vim.fn.line("."), vim.fn.col("."))
112end
113
114---------------------------------------------------------------------- 93----------------------------------------------------------------------
115-- Öffentliche Statusline-Funktion 94-- Öffentliche Statusline-Funktion
116---------------------------------------------------------------------- 95----------------------------------------------------------------------
@@ -123,7 +102,8 @@ function M.statusline()
123 git(), 102 git(),
124 git_diff(), 103 git_diff(),
125 "%#StatusLine#", 104 "%#StatusLine#",
126 filename(), 105 -- %f Dateiname, %m Modifikationsstatus; %(..%) faellt weg, wenn %m leer ist
106 " %f%( %m%) ",
127 107
128 "%=", 108 "%=",
129 109
@@ -132,7 +112,7 @@ function M.statusline()
132 treesitter(), 112 treesitter(),
133 fileinfo(), 113 fileinfo(),
134 " %p%% ", 114 " %p%% ",
135 position(), 115 " %l:%c ",
136 }) 116 })
137end 117end
138 118