aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/lualine.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-10-03 11:41:10 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-10-03 11:41:10 -0300
commitf032fb9e2fadaaec6f71aaf45ed1d94128ea45cd (patch)
tree17bc2e9fe0a3614285b59c75ae801021d31e76df /lua/plugins/lualine.lua
parentfa3e94e60b9edc7c3620f43e207b915eae84bab0 (diff)
downloadnvim-conf-f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd.tar.gz
nvim-conf-f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd.zip
feat: add rust tools
Diffstat (limited to 'lua/plugins/lualine.lua')
-rw-r--r--lua/plugins/lualine.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua
index 88a0fec..5873598 100644
--- a/lua/plugins/lualine.lua
+++ b/lua/plugins/lualine.lua
@@ -91,10 +91,10 @@ return {
},
sections = process_sections {
lualine_a = {
- { 'mode',
- -- icons_enabled = true,
+ { 'mode',
+ icons_enabled = true,
icon = {
- " ",
+ " ",
color = { fg = colors.base4, bg = colors.base03, gui = 'bold'}
},
-- color = { fg = colors.base0, bg = colors.green300, gui = 'bold' },
@@ -131,11 +131,11 @@ return {
},
lualine_c = {
{
- 'filename',
- on_click = function()
+ 'filename',
+ on_click = function()
require('telescope.builtin').find_files()
- -- print('file name clicked')
- end,
+ -- print('file name clicked')
+ end,
icon = ' ',
color = { fg = colors.yellow100, bg = colors.base03, gui = 'bold'},
path = 4,
@@ -175,7 +175,7 @@ return {
-- Lsp server name .
function()
local msg = 'No LSP'
- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
+ local buf_ft = vim.api.nvim_get_option_value("filetype", { buf = 0 })
local clients = vim.lsp.get_clients()
if next(clients) == nil then
return msg
@@ -208,13 +208,13 @@ return {
}
},
lualine_z = {
- {
- -- 'location',
+ {
+ -- 'location',
-- function()
-- return "Ln:%l Col:%c"
-- end
-- separator = { right = '' }, left_padding = 2 },
- }
+ }
},
},
inactive_sections = {