From 31047b239ce86ccf74ac7783c93b3ff7fde4ed76 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 23 Mar 2023 21:37:13 +0100 Subject: [PATCH 1/7] Editor tweaks --- doomemacs/.doom.d/custom.el | 2 +- nvim/.config/nvim/lua/custom/chadrc.lua | 6 ++++++ oh-my-zsh/.oh-my-zsh/aliases.sh | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 nvim/.config/nvim/lua/custom/chadrc.lua diff --git a/doomemacs/.doom.d/custom.el b/doomemacs/.doom.d/custom.el index c65db52..f353b6d 100644 --- a/doomemacs/.doom.d/custom.el +++ b/doomemacs/.doom.d/custom.el @@ -12,7 +12,7 @@ '(elcord-idle-message "Thinking...") '(elcord-mode t nil (elcord)) '(elcord-quiet t) - '(package-selected-packages '(elcord quelpa eldoc-cmake cpputils-cmake)) + '(package-selected-packages '(lsp-pyright elcord quelpa eldoc-cmake cpputils-cmake)) '(warning-suppress-types '((initialization) (defvaralias)))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/nvim/.config/nvim/lua/custom/chadrc.lua b/nvim/.config/nvim/lua/custom/chadrc.lua new file mode 100644 index 0000000..e71eeb2 --- /dev/null +++ b/nvim/.config/nvim/lua/custom/chadrc.lua @@ -0,0 +1,6 @@ + local M = {} + M.ui = { + theme = "onedark", + } + return M + \ No newline at end of file diff --git a/oh-my-zsh/.oh-my-zsh/aliases.sh b/oh-my-zsh/.oh-my-zsh/aliases.sh index 99bc12a..f38d37e 100644 --- a/oh-my-zsh/.oh-my-zsh/aliases.sh +++ b/oh-my-zsh/.oh-my-zsh/aliases.sh @@ -7,8 +7,8 @@ alias ccd="pwd | xclip" # Programs alias vidconvert="ffmpeg -i" -alias vim="nvim" -alias vi="nvim" +# alias vim="nvim" +# alias vi="nvim" # Shortcuts alias todo="task" From 6c282bf90c893bfafcbfa93a7be7bbf94b9f559a Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 1 Apr 2023 15:40:47 +0200 Subject: [PATCH 2/7] Minor tweak --- doomemacs/.doom.d/custom.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doomemacs/.doom.d/custom.el b/doomemacs/.doom.d/custom.el index f353b6d..12acc10 100644 --- a/doomemacs/.doom.d/custom.el +++ b/doomemacs/.doom.d/custom.el @@ -12,7 +12,8 @@ '(elcord-idle-message "Thinking...") '(elcord-mode t nil (elcord)) '(elcord-quiet t) - '(package-selected-packages '(lsp-pyright elcord quelpa eldoc-cmake cpputils-cmake)) + '(package-selected-packages + '(scala-mode thrift lsp-pyright elcord quelpa eldoc-cmake cpputils-cmake)) '(warning-suppress-types '((initialization) (defvaralias)))) (custom-set-faces ;; custom-set-faces was added by Custom. From 6aa0e3a61abc63a0b657da19c40014af4e3e376c Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 1 Apr 2023 19:27:49 +0200 Subject: [PATCH 3/7] Stuff --- doomemacs/.doom.d/custom.el | 4 +++- doomemacs/.doom.d/init.el | 36 ++++++++++++++++++++---------------- nvim/.config/nvim/init.vim | 25 +++++++++++++------------ 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/doomemacs/.doom.d/custom.el b/doomemacs/.doom.d/custom.el index 12acc10..758e730 100644 --- a/doomemacs/.doom.d/custom.el +++ b/doomemacs/.doom.d/custom.el @@ -3,6 +3,8 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. + '(custom-safe-themes + '("2dd4951e967990396142ec54d376cced3f135810b2b69920e77103e0bcedfba9" default)) '(elcord-display-buffer-details nil) '(elcord-display-elapsed t) '(elcord-display-line-numbers nil) @@ -13,7 +15,7 @@ '(elcord-mode t nil (elcord)) '(elcord-quiet t) '(package-selected-packages - '(scala-mode thrift lsp-pyright elcord quelpa eldoc-cmake cpputils-cmake)) + '(elcord quelpa eldoc-cmake cpputils-cmake)) '(warning-suppress-types '((initialization) (defvaralias)))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/doomemacs/.doom.d/init.el b/doomemacs/.doom.d/init.el index 8279616..b710d50 100644 --- a/doomemacs/.doom.d/init.el +++ b/doomemacs/.doom.d/init.el @@ -37,8 +37,8 @@ ;;hydra ;;indent-guides ; highlighted indent columns ligatures ; ligatures and symbols to make your code pretty again - ;; minimap ; show a map of the code on the side - ;; modeline ; snazzy, Atom-inspired modeline, plus API + minimap ; show a map of the code on the side + modeline ; snazzy, Atom-inspired modeline, plus API ;;nav-flash ; blink cursor line after big motions neotree ; a project drawer, like NERDTree for vim ophints ; highlight the region an operation acts on @@ -121,7 +121,7 @@ ;;common-lisp ; if you've seen one lisp, you've seen them all ;;coq ; proofs-as-programs ;;crystal ; ruby at the speed of c - csharp ; unity, .NET, and mono shenanigans + (csharp +lsp) ; unity, .NET, and mono shenanigans ;;data ; config/data formats ;;(dart +flutter) ; paint ui and not much else ;;dhall @@ -144,38 +144,38 @@ json ; At least it ain't XML (java +lsp) ; the poster child for carpal tunnel syndrome javascript ; all(hope(abandon(ye(who(enter(here)))))) - ;;julia ; a better, faster MATLAB - ;;kotlin ; a better, slicker Java(Script) + julia ; a better, faster MATLAB + kotlin ; a better, slicker Java(Script) latex ; writing papers in Emacs has never been so fun ;;lean ; for folks with too much to prove ;;ledger ; be audit you can be - lua ; one-based indices? one-based indices + (lua +lsp) ; one-based indices? one-based indices markdown ; writing docs for people to ignore - ;;nim ; python + lisp at the speed of c - ;;nix ; I hereby declare "nix geht mehr!" - ;;ocaml ; an objective camel + nim ; python + lisp at the speed of c + nix ; I hereby declare "nix geht mehr!" + ocaml ; an objective camel org ; organize your plain life in plain text - ;;php ; perl's insecure younger brother + php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;; purescript ; javascript, but functional - python ; beautiful is better than ugly + (python +lsp) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs ;;raku ; the artist formerly known as perl6 ;;rest ; Emacs as a REST client ;;rst ; ReST in peace (ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() - ;;scala ; java, but good + (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (scala +lsp) ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor ;;sml ;;solidity ; do you need a blockchain? No. - ;;swift ; who asked for emoji variables? + (swift +lsp) ; who asked for emoji variables? ;;terra ; Earth and Moon in alignment for performance. - ;;web ; the tubes + web ; the tubes yaml ; JSON, but readable - ;;zig ; C, but simpler + (zig +lsp) ; C, but simpler :email ;;(mu4e +org +gmail) @@ -193,3 +193,7 @@ :config ;;literate (default +bindings +smartparens)) + + +(after! lsp-pyls + (setq lsp-pyls-plugins-pycodestyle-ignore '("E501"))) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 423ddff..5b04419 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -28,6 +28,7 @@ call plug#begin('~/.config/nvim/plugged') Plug 'ellisonleao/gruvbox.nvim' Plug 'sainnhe/gruvbox-material' Plug 'projekt0n/github-nvim-theme' + Plug 'chriskempson/base16-vim' " Lua Line Plug 'nvim-lualine/lualine.nvim' Plug 'kyazdani42/nvim-web-devicons' @@ -56,27 +57,27 @@ set shiftwidth=4 let g:ruby_recommended_style = 0 " Binds - " Tabs - vmap >gv - vmap >gv +vmap :NERDTreeToggle +" NERDTree +nmap :NERDTreeToggle set clipboard+=unnamedplus " Theme " set background=dark -colorscheme github_dark +colorscheme base16-tomorrow-night let &showbreak = '↳ ' set laststatus=0 ruler -" set rnu nu +set nu -hi Normal guibg=NONE ctermbg=NONE -hi EndOfBuffer guibg=NONE ctermbg=NONE -hi TabLine guibg=NONE ctermbg=NONE -" hi TabLineSel ctermfg=223 guibg=NONE ctermbg=NONE -hi TabLineFill guibg=NONE ctermbg=NONE +" hi Normal guibg=NONE ctermbg=NONE +" hi EndOfBuffer guibg=NONE ctermbg=NONE +" hi TabLine guibg=NONE ctermbg=NONE +" " hi TabLineSel ctermfg=223 guibg=NONE ctermbg=NONE +" hi TabLineFill guibg=NONE ctermbg=NONE hi StatusLine ctermbg=NONE guibg=NONE From 6bcbf5646d48a4217ad7df4b00705a1c873312e6 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 6 Apr 2023 13:27:57 +0200 Subject: [PATCH 4/7] Shell & nvim stuff --- nvim/.config/nvim/init.vim | 34 +++++++++++++++++++++++++++++++++- zsh/.zshrc | 2 +- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 5b04419..22df3b8 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -10,8 +10,14 @@ call plug#begin('~/.config/nvim/plugged') Plug 'vim-scripts/fountain.vim' Plug 'preservim/nerdtree' Plug 'numToStr/Comment.nvim' + Plug 'andweeb/presence.nvim' + + " LS + " Plug 'neoclide/coc.nvim', {'branch': 'release'} + Plug 'nvim-lua/completion-nvim' + Plug 'neovim/nvim-lspconfig' + " Lang support - Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'tpope/vim-markdown' Plug 'ap/vim-css-color' Plug 'axelf4/vim-haskell' @@ -24,11 +30,13 @@ call plug#begin('~/.config/nvim/plugged') Plug 'slim-template/vim-slim' Plug 'OmniSharp/omnisharp-vim' Plug 'ARM9/arm-syntax-vim' + " Themes Plug 'ellisonleao/gruvbox.nvim' Plug 'sainnhe/gruvbox-material' Plug 'projekt0n/github-nvim-theme' Plug 'chriskempson/base16-vim' + " Lua Line Plug 'nvim-lualine/lualine.nvim' Plug 'kyazdani42/nvim-web-devicons' @@ -122,4 +130,28 @@ set title lua << END require('lualine').setup() require('Comment').setup() +----require('lspconfig').setup({}) +require("presence").setup({ + -- General options + auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) + neovim_image_text = "Neovim", -- Text displayed when hovered over the Neovim image + main_image = "neovim", -- Main image display (either "neovim" or "file") + client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) + log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") + debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) + enable_line_number = false, -- Displays the current line number instead of the current project + blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + buttons = false, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "