summaryrefslogtreecommitdiff
path: root/lua/lualinesetup.lua
diff options
context:
space:
mode:
authorJosh Rahm <rahm@josher.dev>2026-10-18 15:54:35 -0600
committerJosh Rahm <rahm@josher.dev>2026-10-18 15:54:35 -0600
commit457674c5b25b9f4be84f0f0ddf0cea7c1811174a (patch)
tree69ce27a62afabd7a3d66830201c4d2d40a28e500 /lua/lualinesetup.lua
parent715fd8b957d7c553f2df3070b430784517fc78ae (diff)
downloadconfig.vim-457674c5b25b9f4be84f0f0ddf0cea7c1811174a.tar.gz
config.vim-457674c5b25b9f4be84f0f0ddf0cea7c1811174a.tar.bz2
config.vim-457674c5b25b9f4be84f0f0ddf0cea7c1811174a.zip
Redesign my vim config.
Now uses Lua primarily Breaks apart the configuration into rc-service style configuration files. Deletes a ton of the cruft with old LSP settings.
Diffstat (limited to 'lua/lualinesetup.lua')
-rw-r--r--lua/lualinesetup.lua47
1 files changed, 0 insertions, 47 deletions
diff --git a/lua/lualinesetup.lua b/lua/lualinesetup.lua
deleted file mode 100644
index b324f39..0000000
--- a/lua/lualinesetup.lua
+++ /dev/null
@@ -1,47 +0,0 @@
-local vim = assert(vim)
-
--- LSP clients attached to buffer
-local clients_lsp = function()
- local bufnr = vim.api.nvim_get_current_buf()
-
- local clients = vim.lsp.buf_get_clients(bufnr)
- if next(clients) == nil then
- return ''
- end
-
- local c = {}
- for _, client in pairs(clients) do
- table.insert(c, client.name)
- end
- return '\u{f085} ' .. table.concat(c, ',')
-end
-
-local config = {
- options = {
- theme = 'meltdown',
- component_separators = '', -- '┃'
- section_separators = {left = '', right = ''},
- },
- sections = {
- lualine_a = { 'mode' },
- lualine_b = { 'branch', 'diff', 'diagnostics' },
- lualine_c = { 'filename' },
-
- -- right
- lualine_x = {
- -- { clients_lsp, color = { fg = '#80a0ff' } },
- -- { 'encoding', color = { fg = '#80a0ff' } },
- -- { 'fileformat', color = { fg = '#ffb700' } },
- -- { 'filetype', color = { fg = '#80a0ff' } },
- },
- lualine_y = {
- { clients_lsp, color = { fg = '#80a0ff' } },
- { 'encoding', color = { fg = '#80a0ff' } },
- { 'fileformat', color = { fg = '#ffb700' } },
- { 'filetype', color = { fg = '#80a0ff' } },
- 'progress' },
- lualine_z = { 'location' }
- },
-}
-
-require("lualine").setup(config)