From e88f0a589ddaebf9651e22f5a612e4e256a46592 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Tue, 29 Mar 2022 16:11:15 -0400 Subject: [PATCH] stuff. vim. jc. sox. etc --- home-cli.nix | 7 ++++++- lunar.lua | 27 +++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/home-cli.nix b/home-cli.nix index aad98e4..9dca101 100644 --- a/home-cli.nix +++ b/home-cli.nix @@ -15,6 +15,7 @@ in hexyl httpie timg + sox tealdeer du-dust duplicati @@ -38,8 +39,10 @@ in magic-wormhole qrcp pastel + jq jo # jo name=Dustin age=99 -> { name: "dustin", age: 99 } fx # jo -a one two three | fx ".map(e => e.length > 3)" -> [false, false, true] + jc # dig example.com | jc --dig; or "magic" syntax: jc dig example.com; jc ls -l; etc. visidata sc-im bandwhich @@ -149,6 +152,9 @@ in er = "rm -rf logs; unzip -o"; srsync = "rsync --rsync-path='sudo rsync'"; vim = "~/.local/bin/lvim"; # trying out LunarVim + ambient1 = "play -n -c1 synth whitenoise lowpass -1 120 lowpass -1 120 lowpass -1 120 gain +16"; + ambient2 = "play -c 2 -n synth brownnoise lowpass 200"; + ambient3 = "play -c 2 -n synth brownnoise lowpass 150 loudness +10"; }; }; @@ -294,7 +300,6 @@ in programs.gpg.enable = true; programs.mpv.enable = true; - programs.jq.enable = true; programs.noti.enable = true; programs.bottom.enable = true; diff --git a/lunar.lua b/lunar.lua index 65e5f78..b60a706 100644 --- a/lunar.lua +++ b/lunar.lua @@ -6,11 +6,14 @@ lvim.transparent_window = true -- vim.opt.cmdheight = 1 vim.opt.conceallevel = 2 -- TODO: only for org files -lvim.builtin.dashboard.active = true +lvim.builtin.alpha.mode = 'startify' lvim.builtin.notify.active = true lvim.builtin.terminal.active = true lvim.builtin.treesitter.highlight.enabled = true +lvim.builtin.nvimtree.setup.hijack_netrw = false -- to get gx working again +lvim.builtin.nvimtree.setup.disable_netrw = true -- TODO: but it isn't working + table.insert(lvim.builtin.cmp.sources, { name = "orgmode" }) lvim.plugins = { @@ -83,6 +86,8 @@ lvim.plugins = { -- end -- }, { "jamessan/vim-gnupg" }, + { "simrat39/symbols-outline.nvim" }, + { "voldikss/vim-floaterm" }, } lvim.builtin.which_key.mappings["t"] = { @@ -101,8 +106,8 @@ lvim.builtin.which_key.mappings["T"] = { T = { ":TableModeRealign", "Realign" }, } -lvim.builtin.which_key.mappings["m"] = { "MinimapToggle", "Toggle Minimap" } lvim.builtin.which_key.mappings["B"] = { "BlamerShow", "Show Blamer" } +lvim.builtin.which_key.mappings["S"] = { "SymbolsOutline", "Symbols Outline" } -- Org mode stuff @@ -130,3 +135,21 @@ lvim.builtin.which_key.mappings["B"] = { "BlamerShow", "Show Blamer" } -- org_agenda_files = {'~/Dropbox/org/*', '~/my-orgs/**/*'}, -- org_default_notes_file = '~/Dropbox/org/refile.org', -- }) + +-- Prettier configuration +local formatters = require "lvim.lsp.null-ls.formatters" +formatters.setup { + { + exe = "prettier", + -- filetypes = { "javascriptreact", "javascript", "typescriptreact", "typescript", "json", "markdown", }, + }, +} + +-- ESLint +local linters = require "lvim.lsp.null-ls.linters" +linters.setup { + { + exe = "eslint", + -- filetypes = { "javascriptreact", "javascript", "typescriptreact", "typescript", "vue", }, + }, +}