diff --git a/modules/_neovim/autocmd.nix b/modules/_neovim/autocmd.nix index 3776458..96d5fe3 100644 --- a/modules/_neovim/autocmd.nix +++ b/modules/_neovim/autocmd.nix @@ -26,7 +26,7 @@ { event = "FileType"; group = "Christoph"; - pattern = "*.ex,*.exs,*.heex"; + pattern = "elixir,eelixir,heex"; command = "setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2"; } ]; diff --git a/modules/_neovim/mappings.nix b/modules/_neovim/mappings.nix index 540cbb9..c9c935e 100644 --- a/modules/_neovim/mappings.nix +++ b/modules/_neovim/mappings.nix @@ -321,13 +321,13 @@ { mode = "n"; key = "lj"; - action = ":lua vim.diagnostic.goto_next()"; + action = ":lua vim.diagnostic.jump({ count = 1 })"; options.desc = "Next diagnostic"; } { mode = "n"; key = "lk"; - action = ":lua vim.diagnostic.goto_prev()"; + action = ":lua vim.diagnostic.jump({ count = -1 })"; options.desc = "Prev diagnostic"; } { diff --git a/modules/_neovim/options.nix b/modules/_neovim/options.nix index f6fabee..dac7e35 100644 --- a/modules/_neovim/options.nix +++ b/modules/_neovim/options.nix @@ -10,8 +10,10 @@ list = false; mouse = ""; relativenumber = true; + scrolloff = 8; shiftwidth = 2; smartcase = true; + undofile = true; }; }; } diff --git a/modules/_neovim/plugins/mini.nix b/modules/_neovim/plugins/mini.nix index cb65cf3..99bef64 100644 --- a/modules/_neovim/plugins/mini.nix +++ b/modules/_neovim/plugins/mini.nix @@ -131,6 +131,15 @@ diff = {}; extra = {}; git = {}; + hipatterns = { + highlighters = { + fixme.__raw = "{ pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' }"; + hack.__raw = "{ pattern = '%f[%w]()HACK()%f[%W]', group = 'MiniHipatternsHack' }"; + todo.__raw = "{ pattern = '%f[%w]()TODO()%f[%W]', group = 'MiniHipatternsTodo' }"; + note.__raw = "{ pattern = '%f[%w]()NOTE()%f[%W]', group = 'MiniHipatternsNote' }"; + hex_color.__raw = "require('mini.hipatterns').gen_highlighter.hex_color()"; + }; + }; icons = {}; indentscope = { settings = { @@ -149,8 +158,10 @@ }; }; move = {}; + notify = {}; pairs = {}; pick = {}; + splitjoin = {}; starter = {}; statusline = {}; surround = {};