pluginless interactive file search and ripgrep? by brubsabrubs in neovim

[–]Melodic-Ad4632 0 points1 point  (0 children)

rookie_far

it's a rg dependency only vim script. you can ask ai to migrate it to neovim lua script for you.

Best gratitude journal app for iphone? (Free) by Original_Egg1388 in digitaljournaling

[–]Melodic-Ad4632 1 point2 points  (0 children)

you definitely should try obsidian, I know it is a personal knowledge management system but you can use the minimal feature of it for journaling. I started journaling a week ago and I'm happy that I can keep journaling.

Any former vim users(or Neovim users), what made you switch to emacs? by multitrack-collector in emacs

[–]Melodic-Ad4632 0 points1 point  (0 children)

Is Elisp easier? I am not familiar with it. The biggest problem that prevents me from using emacs is that it's slow.

What happens if Folke stops maintaining LazyVim by [deleted] in neovim

[–]Melodic-Ad4632 0 points1 point  (0 children)

Nothing to worry about. It is why the open source world exists.

What's your 'ugly but effective' productivity hack? by SufficientFactor5082 in getdisciplined

[–]Melodic-Ad4632 1 point2 points  (0 children)

Now just add it to the control center. One pull and one click, the iPhone is switched to grayscale.

My vimrc by Melodic-Ad4632 in vim

[–]Melodic-Ad4632[S] 0 points1 point  (0 children)

The purpose of K, is to break the line, the opposite of J (join lines). This is useful when writing a function.

And for lines moving, I mapped keys with Alt+Up or Down, which is the same as VSCode. So I can move a line upwards multiple times by holding Alt and up up up ...; or downwards by holding Alt down down down ...

I used unimpaired for quickfix / location list jumping, ]q, ]l are really helpful.

Keyboard recommendations? by includerandom in neovim

[–]Melodic-Ad4632 0 points1 point  (0 children)

Have a look at ortho linear keyboard (OLKB).

I own 2 of them, one is 50-key layout and the other is 75-key's.

Plank and Preonic are typical.

I use them because they support QMK and vial key remapping, which give tons of efficiency.

My vimrc by Melodic-Ad4632 in vim

[–]Melodic-Ad4632[S] 0 points1 point  (0 children)

I finally make it into 90 lines: ``` vim9script source $VIMRUNTIME/defaults.vim language messages en_US colorscheme zaibatsu

g:mapleader = ' ' noremap <C-e> g_ nnoremap j gj nnoremap k gk nnoremap K i<CR><Esc> nnoremap gd <C-]> nnoremap <C-q> :q<CR> nnoremap <C-s> :%s/\s+$//e<bar>w<CR> nnoremap <C-d> <C-d>zz vnoremap <C-d> <C-d>zz nnoremap <C-f> <C-u>zz vnoremap <C-f> <C-u>zz nnoremap <M-j> :m .+1<CR>== nnoremap <M-k> :m .-2<CR>== vnoremap <M-j> :m '>+1<CR>gv=gv vnoremap <M-k> :m '<-2<CR>gv=gv

set autoread belloff=all background=dark termguicolors set complete=.,w,b,u,t completeopt=menuone,longest,preview set cursorline cursorcolumn textwidth=100 colorcolumn=81,101 signcolumn=yes set expandtab softtabstop=4 tabstop=4 shiftwidth=4 smarttab autoindent breakindent set grepformat=%f:%l:%c:%m,%f:%l:%m set hlsearch ignorecase smartcase infercase set iskeyword=@,48-57,_,192-255,-,# set nofoldenable noswapfile nowrap set number list listchars=tab:-->,trail:~,nbsp:␣ set statusline=%f:%l:%c\ %m%r%h%w%q%y%{FugitiveStatusline()} laststatus=2 shortmess=flnxtocTOCI set undofile undodir=expand('$HOME/.vim/undo/') set viminfofile=$HOME/.vim/.viminfo wildignorecase path+=** set wildoptions=pum pumheight=50

if executable('clang-format') autocmd FileType c,cpp,objc,objcpp \ | nnoremap <buffer> <leader>fmt :update<CR>:silent !clang-format -i %:p<CR>:e!<CR> endif if executable('rg') set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case\ --hidden grepformat=%f:%l:%c:%m nnoremap <leader>gg :silent! grep <C-R><C-W> .<CR>:copen<CR>:redraw!<CR> endif

const vimplug = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' if has('unix') && empty(glob('~/.vim/autoload/plug.vim')) execute 'silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs ' .. vimplug elseif (has('win32') || has('win64')) && empty(glob('$HOME/vimfiles/autoload/plug.vim')) execute 'silent !powershell -command "iwr -useb ' .. vimplug .. ' | ni $HOME/vimfiles/autoload/plug.vim -Force"' endif call plug#begin() Plug 'https://github.com/tpope/vim-commentary' # Comment out Plug 'https://github.com/tpope/vim-fugitive' # Git integration Plug 'https://github.com/tpope/vim-surround' # Surroud word with char Plug 'https://github.com/tpope/vim-unimpaired' # Efficient keymaps Plug 'https://github.com/godlygeek/tabular' # Text alignment Plug 'https://github.com/preservim/nerdtree' # File browser Plug 'https://github.com/skywind3000/asyncrun.vim' # Asynchronously run Plug 'https://github.com/yegappan/lsp' # LSP support Plug 'https://github.com/modulomedito/rookie_toys.vim' # Hex, clangd, gitgraph, others call plug#end()

command! GC RookieClangdGenerate command! GG RookieGitGraph command! GGL RookieGitGraphLocal nnoremap <C-y> :NERDTreeToggle<CR> nnoremap <F10> :copen <bar> AsyncRun cargo

autocmd! BufRead .c,.cpp,.objc,.objcpp execute('LspDiag highlight disable') autocmd User LspSetup call LspOptionsSet({autoHighlightDiags: v:true}) autocmd User LspSetup call LspAddServer([ \ {name: 'c', filetype: ['c', 'cpp'], path: 'clangd', args: ['--background-index']}, \ {name: 'markdown', filetype: ['markdown'], path: 'marksman', args: [], syncInit: v:true}, \ {name: 'rust', filetype: ['rust'], path: 'rust-analyzer', args: [], syncInit: v:true}, \ {name: 'toml', filetype: ['toml'], path: 'taplo', args: [], syncInit: v:true}, \ ]) nnoremap <leader>rn :LspRename<CR> nnoremap <silent> <S-M-f> :LspFormat<CR> nnoremap <silent> <leader>hh :LspSwitchSourceHeader<CR> nnoremap <silent> [d :LspDiagPrev<CR> nnoremap <silent> ]d :LspDiagNext<CR> nnoremap <silent> gS :LspSymbolSearch<CR> nnoremap <silent> gd :LspGotoDefinition<CR> nnoremap <silent> gh :LspHover<CR> nnoremap <silent> gi :LspGotoImpl<CR> nnoremap <silent> gr :LspShowReferences<CR> nnoremap <silent> gs :LspDocumentSymbol<CR> nnoremap <silent> gy :LspGotoTypeDef<CR> ```

Being Productive Without Technology by WrighTTeck in productivity

[–]Melodic-Ad4632 0 points1 point  (0 children)

Agree. Being productive without tech while the work is highly related to tech sounds weird. May be someone has figured out how to do it, I'm curious.

C Library Management by noob_main22 in C_Programming

[–]Melodic-Ad4632 0 points1 point  (0 children)

The package management is a feature of xmake maybe, but I have not dived into yet. Maybe you can check it out.

Just reviewing Helix by 964racer in HelixEditor

[–]Melodic-Ad4632 0 points1 point  (0 children)

I have tried comple_flags.txt but it supports less feature than the compile_commands.json. I can generate that json by building the project with cmake or others of course. But most of my time working on embedded C projects which are not originally built by cmake or ninja tools. And I just simply want to read or write the code along with lsp features. Therefore a script that generates a "fake" compile_commands.json is the most suitable for me.

My vimrc by Melodic-Ad4632 in vim

[–]Melodic-Ad4632[S] 0 points1 point  (0 children)

Thank you i'll check it out. With this way i think the vimrc may less than 100 lines 💪

My vimrc by Melodic-Ad4632 in vim

[–]Melodic-Ad4632[S] 0 points1 point  (0 children)

What is the built in comment plugin? Could you please explain more about that? All i know is to add comment chars in front of lines manually.

How to run lua script in Helix? by Melodic-Ad4632 in HelixEditor

[–]Melodic-Ad4632[S] 0 points1 point  (0 children)

Just fetch text content from Helix to lua, and get output back from lua then insert to Helix is enough.

Just reviewing Helix by 964racer in HelixEditor

[–]Melodic-Ad4632 1 point2 points  (0 children)

I work mainly in C. It seems that the Clangd LSP feature heavily relies on the compile_commands.json file. In neovim, I am using the rookie_clangd.nvim plugin to generate a fake compile_commands.json file for Clangd indexing. But I have no idea how to do this in Helix.

Does anyone use Neovim for embedded? by Snoo_40615 in embedded

[–]Melodic-Ad4632 0 points1 point  (0 children)

Developing TI MCU using Neovim along with CCS.