diff options
| author | kkard2 <[email protected]> | 2024-02-08 11:53:29 +0100 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2024-02-08 11:53:29 +0100 |
| commit | 403ed671e869e860d3026753c4d42896e3426ffb (patch) | |
| tree | 0498e6672e096e738f35805f0021454a5e9761cb /nvim/init.lua | |
| parent | 2f8b1b9ac655a0ebd73073f959a74fd84500e91f (diff) | |
hypr shadow realm, waybar multiple monitors, nvim statusline
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 22 |
1 files changed, 21 insertions, 1 deletions
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", "<C-j>", 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("\"_xi<CR><Esc>f ", true, true, true)) else vim.fn.feedkeys(vim.api.nvim_replace_termcodes("i<CR><Esc>f ", true, true, true)) end end) +vim.keymap.set("n", "<leader>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", "<leader>ptt", function() +-- if vim.opt.expandtab then +-- vim.print("TABS") +-- else +-- vim.print("SPACES") +-- end +-- end) -- colorscheme |
