Forráskód Böngészése

add $HOME/go/bin to path and add path to nvim completion

Douglas A 1 éve
szülő
commit
003cb8847b
2 módosított fájl, 9 hozzáadás és 5 törlés
  1. 5 3
      nvim/init.lua
  2. 4 2
      zsh/zshrc

+ 5 - 3
nvim/init.lua

@@ -101,6 +101,9 @@ require('lazy').setup({
       'L3MON4D3/LuaSnip',
       'saadparwaiz1/cmp_luasnip',
 
+      'hrsh7th/cmp-path',
+
+
       -- Adds LSP completion capabilities
       'hrsh7th/cmp-nvim-lsp',
 
@@ -162,8 +165,6 @@ require('lazy').setup({
     -- Enable `lukas-reineke/indent-blankline.nvim`
     -- See `:help indent_blankline.txt`
     opts = {
-      char = '┊',
-      show_trailing_blankline_indent = false,
     },
   },
 
@@ -522,7 +523,8 @@ cmp.setup {
   sources = {
     { name = 'nvim_lsp' },
     { name = 'luasnip' },
-  },
+    { name = 'path' },
+  }
 }
 
 -- The line beneath this is called `modeline`. See `:help modeline`

+ 4 - 2
zsh/zshrc

@@ -1,5 +1,5 @@
 # If you come from bash you might have to change your $PATH.
-# export PATH=$HOME/bin:/usr/local/bin:$PATH
+# export PATH=$HOME/bin:/usr/local/bin:$PATH/th
 
 # Path to your oh-my-zsh installation.
 export ZSH="$HOME/.oh-my-zsh"
@@ -70,7 +70,7 @@ ZSH_THEME="robbyrussell"
 # Custom plugins may be added to $ZSH_CUSTOM/plugins/
 # Example format: plugins=(rails git textmate ruby lighthouse)
 # Add wisely, as too many plugins slow down shell startup.
-plugins=(git ssh-agent)
+plugins=(git ssh-agent rust)
 
 source $ZSH/oh-my-zsh.sh
 
@@ -109,12 +109,14 @@ PATH=$PATH:$HOME/.cargo/bin
 
 #go
 PATH=$PATH:/usr/local/go/bin
+PATH=$PATH:$HOME/go/bin
 
 #bun
 PATH=$PATH:$HOME/.bun/bin
 # local bin
 PATH=$PATH:$HOME/.local/bin
 
+
 export PATH
 
 export NVM_DIR="$HOME/.nvm"