From 403ed671e869e860d3026753c4d42896e3426ffb Mon Sep 17 00:00:00 2001 From: kkard2 Date: Thu, 8 Feb 2024 11:53:29 +0100 Subject: hypr shadow realm, waybar multiple monitors, nvim statusline --- nvim/init.lua | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'nvim/init.lua') diff --git a/nvim/init.lua b/nvim/init.lua index 7393a9a..7cd854a 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -69,13 +69,33 @@ vim.keymap.set("n", "", function() local col = vim.api.nvim_win_get_cursor(0)[2] local char = vim.api.nvim_get_current_line():sub(col + 1, col + 1) - if (char == " ") then + if char == " " then vim.fn.feedkeys(vim.api.nvim_replace_termcodes("\"_xif ", true, true, true)) else vim.fn.feedkeys(vim.api.nvim_replace_termcodes("if ", true, true, true)) end end) +vim.keymap.set("n", "tt", function() + vim.opt.expandtab = not vim.opt.expandtab +end) + +-- what not using lualine does to a mf +vim.cmd([[set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P]]) --default +vim.cmd([[set statusline+=\ ft=%{&filetype}]]) +vim.cmd([[set statusline+=\ ff=%{&fileformat}]]) +vim.cmd([[set statusline+=\ spaces=%{&expandtab}]]) + +-- vim.opt.statusline.append(function() +-- return "test" +-- end) +-- vim.keymap.set("n", "ptt", function() +-- if vim.opt.expandtab then +-- vim.print("TABS") +-- else +-- vim.print("SPACES") +-- end +-- end) -- colorscheme -- cgit v1.3.1