From 45a9afa2306580448a25be830ea77c7f505067e5 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Wed, 4 Jan 2023 18:12:50 -0800 Subject: [PATCH] Cleanup --- home.nix | 11 +++++++++++ programs/neovim/init.lua | 8 ++++++-- programs/neovim/settings/salargalaxyline.lua | 12 ------------ 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/home.nix b/home.nix index c1a8ed7..cb4f6dc 100644 --- a/home.nix +++ b/home.nix @@ -71,6 +71,7 @@ pandoc patchelf pijul + prettyping rclone readline ripgrep @@ -234,6 +235,8 @@ set -xg PATH /Users/salar/.luarocks/bin:/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/bin:/Users/salar/bin:/Users/salar/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/nix/store/3qp71mhrpxxg080yc82k51nx7b5hkajr-kitty-0.21.2/Applications/kitty.app/Contents/MacOS $PATH + set -xg PATH "/Users/salar/Library/Application Support/Coursier/bin" $PATH + set -xg JAVA_HOME /Users/salar/.nix-profile set -xg JDTLS_CONFIG /Users/salar/.config/jdt-language-server/config_mac @@ -297,6 +300,14 @@ end ''; + # pijul config + xdg.configFile."pijul/config.toml".text = lib.mkAfter '' + [author] + name = "softinio" + full_name = "Salar Rahmanian" + email = "code@softinio.com" + ''; + # Neovim Configuration xdg.configFile."nvim/lua/salargalaxyline.lua".source = programs/neovim/settings/salargalaxyline.lua; xdg.configFile."nvim/init.lua".source = programs/neovim/init.lua; diff --git a/programs/neovim/init.lua b/programs/neovim/init.lua index 342f67b..a49de4d 100644 --- a/programs/neovim/init.lua +++ b/programs/neovim/init.lua @@ -179,7 +179,7 @@ _G.load_config = function() require('texlabconfig').setup { cache_activate = true, cache_filetypes = { 'tex', 'bib' }, - reverse_search_edit_cmd = 'split', + reverse_search_edit_cmd = vim.cmd.edit, settings = { texlab = { build = { @@ -519,7 +519,11 @@ _G.load_config = function() Lua = { completion = { callSnippet = "Replace" - } + }, + diagnostics = { + -- Get the language server to recognize the `vim` global + globals = {'vim'} + }, } } }) diff --git a/programs/neovim/settings/salargalaxyline.lua b/programs/neovim/settings/salargalaxyline.lua index 729f50b..8e678d7 100644 --- a/programs/neovim/settings/salargalaxyline.lua +++ b/programs/neovim/settings/salargalaxyline.lua @@ -178,18 +178,6 @@ gls.right[4] = { highlight = { colors.yellow, colors.purple }, }, } -gls.right[5] = { - BatteryNvim = { - provider = function() - local status = require 'battery'.get_status_line() - local formatted = string.format(status) - return formatted - end, - separator = '', - separator_highlight = { colors.bg, colors.purple }, - highlight = { colors.grey, colors.purple }, - }, -} gls.short_line_left[1] = { BufferType = {