mirror of
				https://github.com/wlcx/home.git
				synced 2025-11-04 14:43:45 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			9c620bd13d
			...
			098307eac9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 098307eac9 | |||
| e8d7c460db | 
@ -11,7 +11,7 @@ vim.o.softtabstop = 4
 | 
			
		||||
vim.o.expandtab = true  -- owo expands ur tab
 | 
			
		||||
 | 
			
		||||
vim.o.list = true
 | 
			
		||||
vim.o.listchars = "trail:·"  -- show trailing spaces
 | 
			
		||||
vim.o.listchars = "trail:·,tab:␉·"  -- show trailing spaces
 | 
			
		||||
 | 
			
		||||
-- Colors
 | 
			
		||||
vim.cmd "colorscheme gruvbox"
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,8 @@
 | 
			
		||||
      nvim-lspconfig
 | 
			
		||||
      nvim-cmp
 | 
			
		||||
      cmp-nvim-lsp
 | 
			
		||||
      nvim-snippy
 | 
			
		||||
      cmp-snippy
 | 
			
		||||
      # Language specific
 | 
			
		||||
      go-nvim
 | 
			
		||||
      rust-vim
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,12 @@ end
 | 
			
		||||
-- Completion
 | 
			
		||||
local cmp = require'cmp'
 | 
			
		||||
cmp.setup({
 | 
			
		||||
  -- Use snippy for completion
 | 
			
		||||
  snippet = {
 | 
			
		||||
    expand = function(args)
 | 
			
		||||
      require('snippy').expand_snippet(args.body)
 | 
			
		||||
    end,
 | 
			
		||||
  },
 | 
			
		||||
  -- Disable completions if we're in a comment
 | 
			
		||||
  enabled = function()
 | 
			
		||||
    if require"cmp.config.context".in_treesitter_capture("comment")==true or require"cmp.config.context".in_syntax_group("Comment") then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user