From dfeced80d791327fdeb1efa2d9810466dc771cab Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 24 Aug 2022 10:00:22 +0200 Subject: vim: add neovide, open folds by default, enable TS navigation --- common/vim.nix | 2 ++ dotfiles/vim.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/vim.nix b/common/vim.nix index 8245f99..3452bf8 100644 --- a/common/vim.nix +++ b/common/vim.nix @@ -185,6 +185,7 @@ in environment.systemPackages = with pkgs.unstable; [ myNeovim + neovide deadnix statix @@ -195,6 +196,7 @@ in environment.sessionVariables = { EDITOR = "nvim"; MANPAGER = "nvim +Man!"; + NEOVIDE_MULTIGRID = "1"; }; home-manager.users.minijackson = { ... }: diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index a993e99..0231cc1 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua @@ -192,6 +192,7 @@ require("nvim-treesitter.configs").setup { }, refactor = { highlight_definitions = { enable = true }, + navigation = { enable = true }, }, textobjects = { lsp_interop = { @@ -261,6 +262,7 @@ require("nvim-treesitter.configs").setup { vim.o.foldmethod = "expr" vim.o.foldexpr = "nvim_treesitter#foldexpr()" +vim.o.foldlevel = 99 vim.api.nvim_set_hl(0, "TSCurrentScope", { bg = vim.g.current_gruvbox_colors.dark0_soft[1], -- cgit v1.2.3