Skip to content

LunarVim_luaSetting(LinuxOS)_(Rust Languges & Tabby AI & snippets setting)

License

Notifications You must be signed in to change notification settings

YoungHaKim7/lvim_Rust_AI_Setting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

82 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

rust1 ferris
lvim nvim vim


Contents [๐Ÿ”]



lvim(LunarVim)_Rust_AI_Setting(LinuxOS)

LunarVim_luaSetting_(Rust Languges & Tabby AI & snippets setting)

$HOME/.config/lvim
  • tree
tree          
.
โ”œโ”€โ”€ after
โ”‚ย ย  โ””โ”€โ”€ ftplugin
โ”‚ย ย      โ”œโ”€โ”€ bash.lua
โ”‚ย ย      โ”œโ”€โ”€ go.lua
โ”‚ย ย      โ”œโ”€โ”€ javascript.lua
โ”‚ย ย      โ”œโ”€โ”€ javascriptreact.lua
โ”‚ย ย      โ”œโ”€โ”€ rust.lua
โ”‚ย ย      โ”œโ”€โ”€ typescript.lua
โ”‚ย ย      โ””โ”€โ”€ typescriptreact.lua
โ”œโ”€โ”€ config.lua
โ”œโ”€โ”€ lazy-lock.json
โ””โ”€โ”€ lua
    โ””โ”€โ”€ user
        โ”œโ”€โ”€ functions.lua
        โ”œโ”€โ”€ icons.lua
        โ”œโ”€โ”€ inlay-hints.lua
        โ”œโ”€โ”€ keymaps.lua
        โ”œโ”€โ”€ lsp
        โ”‚ย ย  โ”œโ”€โ”€ init.lua
        โ”‚ย ย  โ””โ”€โ”€ languages
        โ”‚ย ย      โ”œโ”€โ”€ rust.lua
        โ”‚ย ย      โ””โ”€โ”€ sh.lua
        โ”œโ”€โ”€ options.lua
        โ”œโ”€โ”€ plugins.lua
        โ””โ”€โ”€ whichkey.lua

6 directories, 19 files

007๊ฐœ๊ณ ์ƒํ•˜๋ฉด์„œ ๋ฐฐ์šฐ๋Š” Rust_FullStack_LunarVim_Setting_part1[๐Ÿ”]

$HOME/.local/share/lunarvim/lvim

๋‹ค๋ฅธ Vim Setting[๐Ÿ”]

# doom_emacs_setting
.emacs.d

	
01_Vim_NeoVim_etc_Rust_settings
	
02_VScodeSetting_json
	
03_VS_Visual_Studio_Vim_Setting
	
04_helix_settings
	
05_Eclipse_Vim_settings
	
06_IntelliJ_IDEA_Vim_Setting
	
07_Sc_im_vim_excel
	
08_Android_Studio_Vim_Setting
	
09_macOS_Brewfile
	
10_FishShell
	
11_Zed_Editor

Lapce_editor
	
alacritty
	
broot_tree
	
doom_emacs.d
	
dotfiles_linux
	
tmux_conf
	
windows_terminal_settings

.zshrc
	
vimrc

์™ธ๊ตญ๋ถ„์ด ๋‚ด ์„ธํŒ… ๋” ๊น”๋”ํ•˜๊ฒŒ ์ •๋ฆฌํ•ด์คŒ[๐Ÿ”]

friendly-snippets rust.json๊ฒฝ๋กœ[๐Ÿ”]

  • ์—ฌ๊ธฐ์— ์ž˜ ์ถ”๊ฐ€ํ•ด ์ฃผ๋ฉด ๋จ
.local/share/lunarvim/site/pack/lazy/opt/friendly-snippets/snippets/rust/rust.json

Tabby AI(Coding Assistant)[๐Ÿ”]

brew install tabbyml/tabby/tabby

# Start server with StarCoder-1B
tabby serve --device metal --model TabbyML/StarCoder-1B
docker run -it \
  --gpus all -p 8080:8080 -v $HOME/.tabby:/data \
  tabbyml/tabby \
  serve --model TabbyML/StarCoder-1B --device cuda
docker run -it \          
  --gpus all -p 8080:8080 -v $HOME/.tabby:/data \
  tabbyml/tabby \
  serve --model TabbyML/Mistral-7B --device cuda

docker run -it \
  --gpus all -p 8080:8080 -v $HOME/.tabby:/data \
  tabbyml/tabby \
  serve --model TabbyML/StarCoder-3B --device cuda
docker run -it \
โ€“gpus all -p 8080:8080 \
-e TABBY_DISABLE_USAGE_COLLECTION=1 \
-v $HOME/.tabby:/data \
tabbyml/tabby \
serve โ€“model TabbyML/CodeLlama-7B โ€“device cuda

lvim ์“ธ ๋•Œ cargo fmt && cargo check ํ™œ์šฉํ•˜์ž[๐Ÿ”]

$ cargo fmt && cargo check
  • inlayhint ์ƒ‰๊น” hex color (LunarVim Inlayhint Color Settings)
// ์š”์ฆ˜ ์“ฐ๋Š” ์ƒ‰ 240106
:hi LspInlayHint guifg=#35638f guibg=#420517
:hi Comment guifg=#35638f guibg=#420517

// ๋ฐฐ๊ฒฝ์€ ์–ด๋‘์šด ๋นจ๊ฐ„์ƒ‰ /  ๊ธ€์”จ๋Š” ์•ฝ๊ฐ„ ๋ฐ์€ ์ƒ‰
:hi Comment guifg=#8aaecf guibg=#4e1a1a

Rust๊ณ ์ˆ˜์˜ snippets์ •๋ฆฌ[๐Ÿ”]

Helix snippets Server๊ตฌ์ถ•ํ•˜๊ธฐ[๐Ÿ”]

Nvim - Surround[๐Ÿ”]

    Old text                    Command         New text
--------------------------------------------------------------------------------
    surr*ound_words             ysiw)           (surround_words)
    *make strings               ys$"            "make strings"
    [delete ar*ound me!]        ds]             delete around me!
    remove <b>HTML t*ags</b>    dst             remove HTML tags
    'change quot*es'            cs'"            "change quotes"
    <b>or tag* types</b>        csth1<CR>       <h1>or tag types</h1>
    delete(functi*on calls)     dsf             function calls


zig lang setting ๋‚œ์ค‘์— ์ ์šฉํ•  ์˜ˆ์ •[๐Ÿ”]

https://github.com/NTBBloodbath/zig-tools.nvim

  • Apply jk as esc

    • /lua/user/keymaps.lua
    • lvim.keys.insert_mode["jk"] = "<Esc>"
      
  • Apply Relative Number

    • /lua/user/option.lua
    • local options = {
          relativenumber = true, -- set relative numbered lines
      }
      
  • Apply colorscheme

      • /lua/user/option.lua
    • -- lvim.colorscheme = "tokyonight-moon"
      -- lvim.colorscheme = "gruvbox-material"
      lvim.colorscheme = "habamax"
      
  • Rust fmt Setting()

  • zig-tools (lsp) will be applied.

    • todo!()

Migration Guide[๐Ÿ”]

๋‚ด NeoVim ์„ธํŒ…(LazyVim & NeoVim)[๐Ÿ”]

My LunarVim Setting๋‚ด ๋ฃจ๋‚˜๋น” ์„ธํŒ…Setting[๐Ÿ”]


์ด๊ฑฐ ์›๋ž˜ ์ฃผ์ธ ์˜์ƒ My Development Setup (Neovim, Tmux, Alacritty & Rust-based CLI Tools)[๐Ÿ”]

https://youtu.be/stCXFxC4OH0

Fork Github & Thank you.[๐Ÿ”]

https://github.com/adibhanna/lvim-config

About

LunarVim_luaSetting(LinuxOS)_(Rust Languges & Tabby AI & snippets setting)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages