diff options
| -rw-r--r-- | conform.lua | 3 | ||||
| -rw-r--r-- | firenvim.lua | 3 | ||||
| -rw-r--r-- | flash.lua | 32 | ||||
| -rw-r--r-- | gitsigns.lua | 8 | ||||
| -rw-r--r-- | indent-blankline.lua | 7 | ||||
| -rw-r--r-- | lualine.lua | 4 | ||||
| -rw-r--r-- | noice.lua | 7 | ||||
| -rw-r--r-- | telescope.lua | 2 | ||||
| -rw-r--r-- | todo-comments.lua | 9 | ||||
| -rw-r--r-- | zen-mode.lua | 83 |
10 files changed, 153 insertions, 5 deletions
diff --git a/conform.lua b/conform.lua index 82e76b8..fbefafc 100644 --- a/conform.lua +++ b/conform.lua @@ -11,8 +11,9 @@ return { tex = { "tex-fmt" }, lua = { "stylua" }, sh = { "shfmt" }, + json = { "json_repair" }, }, - -- This is the "Magic" part: Format on Save + format_on_save = { lsp_fallback = true, -- Use LSP if no dedicated formatter is found async = false, -- Formatting must be synchronous to save correctly diff --git a/firenvim.lua b/firenvim.lua deleted file mode 100644 index 90d2d1d..0000000 --- a/firenvim.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - { "glacambre/firenvim", build = ":call firenvim#install(0)" }, -} diff --git a/flash.lua b/flash.lua new file mode 100644 index 0000000..450f34a --- /dev/null +++ b/flash.lua @@ -0,0 +1,32 @@ +return { + "folke/flash.nvim", + event = "VeryLazy", + ---@type Flash.Config + opts = {}, + keys = { + { + "r", + mode = "o", + function() + require("flash").remote() + end, + desc = "Remote Flash", + }, + { + "R", + mode = { "o", "x" }, + function() + require("flash").treesitter_search() + end, + desc = "Treesitter Search", + }, + { + "<c-s>", + mode = { "c" }, + function() + require("flash").toggle() + end, + desc = "Toggle Flash Search", + }, + }, +} diff --git a/gitsigns.lua b/gitsigns.lua new file mode 100644 index 0000000..5e03163 --- /dev/null +++ b/gitsigns.lua @@ -0,0 +1,8 @@ +return { + { + "lewis6991/gitsigns.nvim", + config = function() + require("gitsigns").setup() + end, + }, +} diff --git a/indent-blankline.lua b/indent-blankline.lua new file mode 100644 index 0000000..84cbd72 --- /dev/null +++ b/indent-blankline.lua @@ -0,0 +1,7 @@ +return { + "lukas-reineke/indent-blankline.nvim", + main = "ibl", + ---@module "ibl" + ---@type ibl.config + opts = {}, +} diff --git a/lualine.lua b/lualine.lua new file mode 100644 index 0000000..c6ea8ad --- /dev/null +++ b/lualine.lua @@ -0,0 +1,4 @@ +return { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, +} diff --git a/noice.lua b/noice.lua new file mode 100644 index 0000000..84cbd72 --- /dev/null +++ b/noice.lua @@ -0,0 +1,7 @@ +return { + "lukas-reineke/indent-blankline.nvim", + main = "ibl", + ---@module "ibl" + ---@type ibl.config + opts = {}, +} diff --git a/telescope.lua b/telescope.lua index f652ff2..116f878 100644 --- a/telescope.lua +++ b/telescope.lua @@ -16,6 +16,7 @@ return { telescope.setup({ defaults = { file_ignore_patterns = { "node_modules", ".git/" }, + preview = { treesitter = false }, }, }) @@ -29,7 +30,6 @@ return { map("n", "<leader>fg", "<cmd>Telescope live_grep<cr>", opts) map("n", "<leader>fh", "<cmd>Telescope help_tags<cr>", opts) map("n", "<leader>fm", "<cmd>Telescope marks<cr>", opts) - map("n", "<leader>fr", "<cmd>Telescope registers<cr>", opts) map("n", "<leader>fo", "<cmd>Telescope oldfiles<cr>", opts) map("n", "<leader>fv", "<cmd>Telescope vim_options<cr>", opts) end, diff --git a/todo-comments.lua b/todo-comments.lua new file mode 100644 index 0000000..52e52b6 --- /dev/null +++ b/todo-comments.lua @@ -0,0 +1,9 @@ +return { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + }, +} diff --git a/zen-mode.lua b/zen-mode.lua new file mode 100644 index 0000000..3f23443 --- /dev/null +++ b/zen-mode.lua @@ -0,0 +1,83 @@ +return { + "folke/zen-mode.nvim", + opts = { + window = { + backdrop = 0.95, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal + -- height and width can be: + -- * an absolute number of cells when > 1 + -- * a percentage of the width / height of the editor when <= 1 + -- * a function that returns the width or the height + width = 120, -- width of the Zen window + height = 1, -- height of the Zen window + -- by default, no options are changed for the Zen window + -- uncomment any of the options below, or add other vim.wo options you want to apply + options = { + signcolumn = "no", -- disable signcolumn + -- number = false, -- disable number column + -- relativenumber = false, -- disable relative numbers + cursorline = false, -- disable cursorline + cursorcolumn = false, -- disable cursor column + foldcolumn = "0", -- disable fold column + list = false, -- disable whitespace characters + }, + }, + plugins = { + -- disable some global vim options (vim.o...) + -- comment the lines to not apply the options + options = { + enabled = true, + ruler = false, -- disables the ruler text in the cmd line area + showcmd = false, -- disables the command in the last line of the screen + -- you may turn on/off statusline in zen mode by setting 'laststatus' + -- statusline will be shown only if 'laststatus' == 3 + laststatus = 0, -- turn off the statusline in zen mode + }, + twilight = { enabled = true }, -- enable to start Twilight when zen mode opens + gitsigns = { enabled = false }, -- disables git signs + tmux = { enabled = false }, -- disables the tmux statusline + todo = { enabled = false }, -- if set to "true", todo-comments.nvim highlights will be disabled + -- this will change the font size on kitty when in zen mode + -- to make this work, you need to set the following kitty options: + -- - allow_remote_control socket-only + -- - listen_on unix:/tmp/kitty + kitty = { + enabled = false, + font = "+4", -- font size increment + }, + -- this will change the font size on alacritty when in zen mode + -- requires Alacritty Version 0.10.0 or higher + -- uses `alacritty msg` subcommand to change font size + alacritty = { + enabled = false, + font = "14", -- font size + }, + -- this will change the font size on wezterm when in zen mode + -- See alse also the Plugins/Wezterm section in this projects README + wezterm = { + enabled = false, + -- can be either an absolute font size or the number of incremental steps + font = "+4", -- (10% increase per step) + }, + -- this will change the scale factor in Neovide when in zen mode + -- See alse also the Plugins/Wezterm section in this projects README + neovide = { + enabled = false, + -- Will multiply the current scale factor by this number + scale = 1.2, + -- disable the Neovide animations while in Zen mode + disable_animations = { + neovide_animation_length = 0, + neovide_cursor_animate_command_line = false, + neovide_scroll_animation_length = 0, + neovide_position_animation_length = 0, + neovide_cursor_animation_length = 0, + neovide_cursor_vfx_mode = "", + }, + }, + }, + -- callback where you can add custom code when the Zen window opens + on_open = function(win) end, + -- callback where you can add custom code when the Zen window closes + on_close = function() end, + }, +} |
