add extensions for autocomplete, autoclose, clipboard
This commit is contained in:
		
							parent
							
								
									73385e8b17
								
							
						
					
					
						commit
						dfeb1e7a56
					
				
							
								
								
									
										4
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										4
									
								
								init.lua
								
								
								
								
							| 
						 | 
				
			
			@ -45,7 +45,7 @@ vim.g.maplocalleader = ' '
 | 
			
		|||
-- https://jaketrent.com/post/set-node-version-nvim/
 | 
			
		||||
-- need to npm install -g typescript-language-server
 | 
			
		||||
local home_dir = "/home/justinprather"
 | 
			
		||||
local node_bin = "/home/justinprather/.nvm/versions/node/v18.4.0/bin"
 | 
			
		||||
local node_bin = "/.nvm/versions/node/v18.4.0/bin"
 | 
			
		||||
vim.g.node_host_prog = home_dir .. node_bin .. "/node"
 | 
			
		||||
vim.cmd("let $PATH = '" .. home_dir .. node_bin .. ":' . $PATH")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -92,7 +92,7 @@ require('lazy').setup({
 | 
			
		|||
 | 
			
		||||
      -- Useful status updates for LSP
 | 
			
		||||
      -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
 | 
			
		||||
      { 'j-hui/fidget.nvim', opts = {} },
 | 
			
		||||
      { 'j-hui/fidget.nvim',       opts = {} },
 | 
			
		||||
 | 
			
		||||
      -- Additional lua configuration, makes nvim stuff amazing!
 | 
			
		||||
      'folke/neodev.nvim',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
-- You can add your own plugins here or in other files in this directory!
 | 
			
		||||
--  I promise not to create any merge conflicts in this directory :)
 | 
			
		||||
--
 | 
			
		||||
-- See the kickstart.nvim README for more information
 | 
			
		||||
return {
 | 
			
		||||
	'm4xshen/autoclose.nvim',
 | 
			
		||||
	config = function()
 | 
			
		||||
		require('autoclose').setup()
 | 
			
		||||
	end,
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
return {
 | 
			
		||||
	'David-Kunz/cmp-npm',
 | 
			
		||||
	config = function()
 | 
			
		||||
		require('cmp-npm').setup()
 | 
			
		||||
		local cmp = require('cmp')
 | 
			
		||||
		local config = cmp.get_config()
 | 
			
		||||
		table.insert(config.sources, {
 | 
			
		||||
			name = 'npm', keyword_length = 4
 | 
			
		||||
		})
 | 
			
		||||
		cmp.setup(config)
 | 
			
		||||
	end
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
 | 
			
		||||
return {
 | 
			
		||||
  'EtiamNullam/deferred-clipboard.nvim',
 | 
			
		||||
  config = function()
 | 
			
		||||
    require('deferred-clipboard').setup {
 | 
			
		||||
    fallback = 'unnamedplus', -- or your preferred setting for clipboard
 | 
			
		||||
    }
 | 
			
		||||
  end,
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
return {
 | 
			
		||||
	'windwp/nvim-ts-autotag',
 | 
			
		||||
	config = function()
 | 
			
		||||
		require('nvim-ts-autotag').setup()
 | 
			
		||||
	end,
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue