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

friendly-snippets

Chris 4 éve
szülő
commit
54e745deca
4 módosított fájl, 11 hozzáadás és 7 törlés
  1. 1 0
      lua/nv-globals.lua
  2. 1 1
      lua/nv-nvimtree/init.lua
  3. 7 6
      lua/plugins.lua
  4. 2 0
      nv-settings.lua

+ 1 - 0
lua/nv-globals.lua

@@ -1,5 +1,6 @@
 O = {
 
+	auto_close_tree = 0,
     auto_complete = true,
     colorscheme = 'nvcode',
     python = {

+ 1 - 1
lua/nv-nvimtree/init.lua

@@ -19,7 +19,7 @@ vim.g.nvim_tree_disable_netrw = 0 --"1 by default, disables netrw
 vim.g.nvim_tree_hide_dotfiles = 1 --0 by default, this option hides files and folders starting with a dot `.`
 vim.g.nvim_tree_indent_markers = 1 --"0 by default, this option shows indent markers when folders are open
 vim.g.nvim_tree_follow = 1 --"0 by default, this option allows the cursor to be updated when entering a buffer
-vim.g.nvim_tree_auto_close = 0 --0 by default, closes the tree when it's the last window
+vim.g.nvim_tree_auto_close = O.auto_close_tree --0 by default, closes the tree when it's the last window
 vim.g.nvim_tree_auto_ignore_ft = 'startify' --"empty by default, don't auto open tree on specific filetypes.
 local tree_cb = require'nvim-tree.config'.nvim_tree_callback
 vim.g.nvim_tree_bindings = {

+ 7 - 6
lua/plugins.lua

@@ -39,13 +39,14 @@ return require('packer').startup(function(use)
     use 'hrsh7th/nvim-compe'
     use 'mattn/emmet-vim'
     use 'hrsh7th/vim-vsnip'
-    use 'xabikos/vscode-javascript'
-    use 'dsznajder/vscode-es7-javascript-react-snippets'
-    use 'golang/vscode-go'
-    use 'rust-lang/vscode-rust'
-    use 'ChristianChiarulli/html-snippets'
     use 'ChristianChiarulli/java-snippets'
-    use 'ChristianChiarulli/python-snippets'
+	use "rafamadriz/friendly-snippets"
+    -- use 'xabikos/vscode-javascript'
+    -- use 'dsznajder/vscode-es7-javascript-react-snippets'
+    -- use 'golang/vscode-go'
+    -- use 'rust-lang/vscode-rust'
+    -- use 'ChristianChiarulli/html-snippets'
+    -- use 'ChristianChiarulli/python-snippets'
 
     -- Treesitter
     use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}

+ 2 - 0
nv-settings.lua

@@ -11,6 +11,8 @@ an executable
 -- general
 O.auto_complete = true
 O.colorscheme = 'nvcode'
+O.auto_close_tree = 0
+
 
 -- python
 -- add things like O.python.formatter.yapf.exec_path