From 6c7bdda4d98a8c8d2a9da0443d8e69efa259be00 Mon Sep 17 00:00:00 2001 From: Victor Martinez <49537445+JasterV@users.noreply.github.com> Date: Mon, 23 Jan 2023 01:07:59 +0100 Subject: [PATCH] update lvim config and other stuff --- .config/alacritty/alacritty.yml | 4 ++-- .config/lvim/.gitignore | 5 ----- .config/lvim/README.md | 5 ----- .config/lvim/config.lua | 16 +++++++++++----- .doom.d/config.el | 17 ++++++++++++++++- .doom.d/init.el | 8 ++++---- .doom.d/packages.el | 1 + 7 files changed, 34 insertions(+), 22 deletions(-) delete mode 100644 .config/lvim/.gitignore delete mode 100644 .config/lvim/README.md diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index abd8ff8..d7c2675 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -67,7 +67,7 @@ window: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. - opacity: 0.9 + opacity: 0.7 # Startup Mode (changes require restart) # @@ -109,7 +109,7 @@ scrolling: # Font configuration font: - size: 16.0 + size: 16 # Normal (roman) font face normal: # Font family diff --git a/.config/lvim/.gitignore b/.config/lvim/.gitignore deleted file mode 100644 index c859880..0000000 --- a/.config/lvim/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -plugin - -.init.vim -.luarc.json -lua/sniprun-config/init.lua diff --git a/.config/lvim/README.md b/.config/lvim/README.md deleted file mode 100644 index c5e0599..0000000 --- a/.config/lvim/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# LunarVim configuration - -This is my configuration for LunarVim. - - diff --git a/.config/lvim/config.lua b/.config/lvim/config.lua index 2d95e06..438f689 100644 --- a/.config/lvim/config.lua +++ b/.config/lvim/config.lua @@ -13,10 +13,12 @@ vim.o.guifont = "FiraCode Nerd Font Mono:h20" lvim.use_icons = true lvim.colorscheme = "tokyonight" lvim.log.level = "warn" -lvim.format_on_save = true lvim.transparent_window = false +lvim.format_on_save = { enabled = true } -- Disable virtual text lvim.lsp.diagnostics.virtual_text = false +-- to disable icons and use a minimalist setup set this as false +lvim.use_icons = true --[[ KEYMAPS @@ -42,9 +44,9 @@ lvim.builtin.which_key.mappings["bo"] = { "Telescope buffers previewer=false theme=dropdown initial_mode=normal", "Buffers" } + --[[ BUILTIN PLUGINS - After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile --]] @@ -53,7 +55,7 @@ lvim.builtin.alpha.active = true lvim.builtin.alpha.mode = "dashboard" -- Notify -lvim.builtin.notify.active = true +-- lvim.builtin.notify.active = true -- Terminal lvim.builtin.terminal.active = false @@ -136,6 +138,12 @@ lvim.builtin.lualine.inactive_sections = { -- LSP -- lvim.lsp.automatic_servers_installation = true +-- -- make sure server will always be installed even if the server is in skipped_servers list +-- lvim.lsp.installer.setup.ensure_installed = { +-- "sumneko_lua", +-- "jsonls", +-- } + --[[ ADDITIONAL PLUGINS @@ -148,7 +156,6 @@ local numb = { } local colorschemes = { - tokyionight = { "folke/tokyonight.nvim" }, horizon = { "lunarvim/horizon.nvim" } } @@ -204,7 +211,6 @@ local ts_rainbow = { lvim.plugins = { numb, - colorschemes.tokyionight, rust_tools, git_fugitive, ts_rainbow diff --git a/.doom.d/config.el b/.doom.d/config.el index 4f588d9..ae3c91b 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -34,8 +34,21 @@ ;; There are two ways to load a theme. Both assume the theme is installed and ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-one) +(use-package doom-themes + :ensure t + :config + ;; Global settings (defaults) + (setq doom-themes-enable-bold t ; if nil, bold is universally disabled + doom-themes-enable-italic t) ; if nil, italics is universally disabled + (load-theme 'doom-vibrant t) + ;; Enable flashing mode-line on errors + (doom-themes-visual-bell-config) + ;; or for treemacs users + (setq doom-themes-treemacs-theme "doom-colors") ; use "doom-colors" for less minimal icon theme + (doom-themes-treemacs-config) + ;; Corrects (and improves) org-mode's native fontification. + (doom-themes-org-config)) ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type t) @@ -78,3 +91,5 @@ ;; they are implemented. (map! :leader :desc "Fuzzy find file in project" :n "fp" #'project-find-file) + + diff --git a/.doom.d/init.el b/.doom.d/init.el index 46a65a9..ad149dd 100644 --- a/.doom.d/init.el +++ b/.doom.d/init.el @@ -69,7 +69,7 @@ :emacs dired ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent - ;;ibuffer ; interactive buffer management + ibuffer ; interactive buffer management undo ; persistent, smarter undo for your inevitable mistakes vc ; version-control and Emacs, sitting in a tree @@ -89,7 +89,7 @@ ;;biblio ; Writes a PhD for you (citation needed) ;;debugger ; FIXME stepping through code, to help you add bugs ;;direnv - ;;docker + docker ;;editorconfig ; let someone else argue about tabs vs spaces ;;ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) @@ -127,7 +127,7 @@ (elixir +lsp) ; erlang done right (elm +lsp) ; care for a cup of TEA? emacs-lisp ; drown in parentheses - ;;erlang ; an elegant language for a more civilized age + erlang ; an elegant language for a more civilized age ;;ess ; emacs speaks statistics ;;factor ;;faust ; dsp, but you get to keep your soul @@ -136,7 +136,7 @@ ;;fstar ; (dependent) types and (monadic) effects and Z3 ;;gdscript ; the language you waited for ;;(go +lsp) ; the hipster dialect - ;;(graphql +lsp) ; Give queries a REST + (graphql +lsp) ; Give queries a REST ;;(haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on diff --git a/.doom.d/packages.el b/.doom.d/packages.el index 839b83c..d6c407a 100644 --- a/.doom.d/packages.el +++ b/.doom.d/packages.el @@ -8,6 +8,7 @@ ;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: ;(package! some-package) +(package! doom-themes) ;; To install a package directly from a remote git repo, you must specify a ;; `:recipe'. You'll find documentation on what `:recipe' accepts here: