From f2a8a5c65e0698a2a2adb89f2dd08c428bbfc6ab Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Jun 2023 11:38:22 +0100 Subject: [PATCH 1/4] Clean ~/.cache/nvim on make clean --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4d517c8..dce636b 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ default: clean: -rm -rf $(HOME)/.local/share/nvim -rm -rf $(HOME)/.local/state/nvim + -rm -rf $(HOME)/.cache/nvim -rm $(BIN_DIR)/nvim -rm $(BIN_DIR)/direnv -rm -rf $(FONTS_DIR)/FiraCode From 8cdaa5f17034b3448ac9c34e8568b164754b3431 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Jun 2023 11:38:37 +0100 Subject: [PATCH 2/4] Enable treesitter if no on nix, but disable auto_install --- lua/plugins/treesitter.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index f299331..85705e7 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,6 +1,5 @@ return { "nvim-treesitter/nvim-treesitter", - cond = function() return vim.fn.executable "nix" == 1 end, version = false, build = ":TSUpdate", event = { "BufReadPre", "BufNewFile" }, @@ -18,7 +17,7 @@ return { require("nvim-treesitter.configs").setup(opts) end, opts = { - auto_install = true, + auto_install = vim.fn.executable "nix" == 1, highlight = { enable = true, disable = { "fortran" }, From dc31476433ea8c634f4faa7b429473b9d2581daa Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Jun 2023 11:38:44 +0100 Subject: [PATCH 3/4] Temp disable edgy --- lua/plugins/edgy.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/edgy.lua b/lua/plugins/edgy.lua index 31b2d7d..f8b39f0 100644 --- a/lua/plugins/edgy.lua +++ b/lua/plugins/edgy.lua @@ -1,5 +1,6 @@ return { "folke/edgy.nvim", + enabled = false, event = "VeryLazy", opts = { bottom = { From 4a3ef324698f532cd5e4a1757e1bad72072697f3 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Jun 2023 11:42:12 +0100 Subject: [PATCH 4/4] Add keymap to toggle SymbolsOutline --- lua/plugins/symbols-outline.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/symbols-outline.lua b/lua/plugins/symbols-outline.lua index 6fbb7d0..bb8abc8 100644 --- a/lua/plugins/symbols-outline.lua +++ b/lua/plugins/symbols-outline.lua @@ -3,5 +3,6 @@ return { cond = not vim.g.vscode, cmd = "SymbolsOutline", dependencies = { "neovim/nvim-lspconfig" }, + init = function() vim.keymap.set("n", "no", "SymbolsOutline ") end, config = true, }