add tabs plugin, change colorscheme
This commit is contained in:
		
							parent
							
								
									72364ad9ac
								
							
						
					
					
						commit
						8286a94451
					
				
							
								
								
									
										44
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										44
									
								
								init.lua
								
								
								
								
							| 
						 | 
				
			
			@ -35,7 +35,6 @@ I hope you enjoy your Neovim journey,
 | 
			
		|||
 | 
			
		||||
P.S. You can delete this when you're done too. It's your config now :)
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- Set <space> as the leader key
 | 
			
		||||
-- See `:help mapleader`
 | 
			
		||||
--  NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +96,7 @@ require('lazy').setup({
 | 
			
		|||
  },
 | 
			
		||||
 | 
			
		||||
  -- Useful plugin to show you pending keybinds.
 | 
			
		||||
  { 'folke/which-key.nvim', opts = {} },
 | 
			
		||||
  { 'folke/which-key.nvim',          opts = {} },
 | 
			
		||||
  { -- Adds git releated signs to the gutter, as well as utilities for managing changes
 | 
			
		||||
    'lewis6991/gitsigns.nvim',
 | 
			
		||||
    opts = {
 | 
			
		||||
| 
						 | 
				
			
			@ -114,9 +113,34 @@ require('lazy').setup({
 | 
			
		|||
 | 
			
		||||
  { -- Theme inspired by Atom
 | 
			
		||||
    'navarasu/onedark.nvim',
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    'Mofiqul/vscode.nvim',
 | 
			
		||||
    priority = 1000,
 | 
			
		||||
    lazy = false,
 | 
			
		||||
    name = 'vscode',
 | 
			
		||||
    config = function()
 | 
			
		||||
      vim.cmd.colorscheme 'onedark'
 | 
			
		||||
      local c = require('vscode.colors').get_colors()
 | 
			
		||||
      require('vscode').setup({
 | 
			
		||||
        -- Enable transparent background
 | 
			
		||||
        transparent = true,
 | 
			
		||||
        -- Enable italic comment
 | 
			
		||||
        italic_comments = true,
 | 
			
		||||
        -- Disable nvim-tree background color
 | 
			
		||||
        disable_nvimtree_bg = true,
 | 
			
		||||
        -- Override colors (see ./lua/vscode/colors.lua)
 | 
			
		||||
        color_overrides = {
 | 
			
		||||
          vscLineNumber = '#FFFFFF',
 | 
			
		||||
        },
 | 
			
		||||
        -- Override highlight groups (see ./lua/vscode/theme.lua)
 | 
			
		||||
        group_overrides = {
 | 
			
		||||
          -- this supports the same val table as vim.api.nvim_set_hl
 | 
			
		||||
          -- use colors from this colorscheme by requiring vscode.colors!
 | 
			
		||||
          Cursor = { fg = c.vscDarkBlue, bg = c.vscLightGreen, bold = true },
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
      vim.cmd([[colorscheme vscode]])
 | 
			
		||||
    end,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -126,7 +150,7 @@ require('lazy').setup({
 | 
			
		|||
    opts = {
 | 
			
		||||
      options = {
 | 
			
		||||
        icons_enabled = false,
 | 
			
		||||
        theme = 'onedark',
 | 
			
		||||
        theme = 'vscode',
 | 
			
		||||
        component_separators = '|',
 | 
			
		||||
        section_separators = '',
 | 
			
		||||
      },
 | 
			
		||||
| 
						 | 
				
			
			@ -144,7 +168,7 @@ require('lazy').setup({
 | 
			
		|||
  },
 | 
			
		||||
 | 
			
		||||
  -- "gc" to comment visual regions/lines
 | 
			
		||||
  { 'numToStr/Comment.nvim', opts = {} },
 | 
			
		||||
  { 'numToStr/Comment.nvim',         opts = {} },
 | 
			
		||||
 | 
			
		||||
  -- Fuzzy Finder (files, lsp, etc)
 | 
			
		||||
  { 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } },
 | 
			
		||||
| 
						 | 
				
			
			@ -175,8 +199,8 @@ require('lazy').setup({
 | 
			
		|||
  -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
 | 
			
		||||
  --       These are some example plugins that I've included in the kickstart repository.
 | 
			
		||||
  --       Uncomment any of the lines below to enable them.
 | 
			
		||||
  -- require 'kickstart.plugins.autoformat',
 | 
			
		||||
  -- require 'kickstart.plugins.debug',
 | 
			
		||||
  require 'kickstart.plugins.autoformat',
 | 
			
		||||
  require 'kickstart.plugins.debug',
 | 
			
		||||
 | 
			
		||||
  -- NOTE: The import below automatically adds your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
 | 
			
		||||
  --    You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping
 | 
			
		||||
| 
						 | 
				
			
			@ -461,7 +485,7 @@ cmp.setup {
 | 
			
		|||
    end,
 | 
			
		||||
  },
 | 
			
		||||
  mapping = cmp.mapping.preset.insert {
 | 
			
		||||
    ['<C-d>'] = cmp.mapping.scroll_docs(-4),
 | 
			
		||||
    ['<C-d>'] = cmp.mapping.scroll_docs( -4),
 | 
			
		||||
    ['<C-f>'] = cmp.mapping.scroll_docs(4),
 | 
			
		||||
    ['<C-Space>'] = cmp.mapping.complete {},
 | 
			
		||||
    ['<CR>'] = cmp.mapping.confirm {
 | 
			
		||||
| 
						 | 
				
			
			@ -480,8 +504,8 @@ cmp.setup {
 | 
			
		|||
    ['<S-Tab>'] = cmp.mapping(function(fallback)
 | 
			
		||||
      if cmp.visible() then
 | 
			
		||||
        cmp.select_prev_item()
 | 
			
		||||
      elseif luasnip.jumpable(-1) then
 | 
			
		||||
        luasnip.jump(-1)
 | 
			
		||||
      elseif luasnip.jumpable( -1) then
 | 
			
		||||
        luasnip.jump( -1)
 | 
			
		||||
      else
 | 
			
		||||
        fallback()
 | 
			
		||||
      end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,4 +2,7 @@
 | 
			
		|||
--  I promise not to create any merge conflicts in this directory :)
 | 
			
		||||
--
 | 
			
		||||
-- See the kickstart.nvim README for more information
 | 
			
		||||
return {}
 | 
			
		||||
return {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,57 @@
 | 
			
		|||
-- debug.lua
 | 
			
		||||
--
 | 
			
		||||
-- Shows how to use the DAP plugin to debug your code.
 | 
			
		||||
--
 | 
			
		||||
-- Primarily focused on configuring the debugger for Go, but can
 | 
			
		||||
-- be extended to other languages as well. That's why it's called
 | 
			
		||||
-- kickstart.nvim and not kitchen-sink.nvim ;)
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
	-- NOTE: Yes, you can install new plugins here!
 | 
			
		||||
	'romgrk/barbar.nvim',
 | 
			
		||||
	-- NOTE: And you can specify dependencies as well
 | 
			
		||||
	dependencies = {
 | 
			
		||||
		'nvim-tree/nvim-web-devicons',
 | 
			
		||||
	},
 | 
			
		||||
	config = function()
 | 
			
		||||
		local map = vim.api.nvim_set_keymap
 | 
			
		||||
		local opts = { noremap = true, silent = true }
 | 
			
		||||
 | 
			
		||||
		-- Move to previous/next
 | 
			
		||||
		map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
 | 
			
		||||
		map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
 | 
			
		||||
		-- Re-order to previous/next
 | 
			
		||||
		map('n', '<A-<>', '<Cmd>BufferMovePrevious<CR>', opts)
 | 
			
		||||
		map('n', '<A->>', '<Cmd>BufferMoveNext<CR>', opts)
 | 
			
		||||
		-- Goto buffer in position...
 | 
			
		||||
		map('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts)
 | 
			
		||||
		map('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts)
 | 
			
		||||
		map('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts)
 | 
			
		||||
		map('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts)
 | 
			
		||||
		map('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts)
 | 
			
		||||
		map('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts)
 | 
			
		||||
		map('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts)
 | 
			
		||||
		map('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts)
 | 
			
		||||
		map('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts)
 | 
			
		||||
		map('n', '<A-0>', '<Cmd>BufferLast<CR>', opts)
 | 
			
		||||
		-- Pin/unpin buffer
 | 
			
		||||
		map('n', '<A-p>', '<Cmd>BufferPin<CR>', opts)
 | 
			
		||||
		-- Close buffer
 | 
			
		||||
		map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
 | 
			
		||||
		-- Wipeout buffer
 | 
			
		||||
		--                 :BufferWipeout
 | 
			
		||||
		-- Close commands
 | 
			
		||||
		--                 :BufferCloseAllButCurrent
 | 
			
		||||
		--                 :BufferCloseAllButPinned
 | 
			
		||||
		--                 :BufferCloseAllButCurrentOrPinned
 | 
			
		||||
		--                 :BufferCloseBuffersLeft
 | 
			
		||||
		--                 :BufferCloseBuffersRight
 | 
			
		||||
		-- Magic buffer-picking mode
 | 
			
		||||
		map('n', '<C-p>', '<Cmd>BufferPick<CR>', opts)
 | 
			
		||||
		-- Sort automatically by...
 | 
			
		||||
		map('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
 | 
			
		||||
		map('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)
 | 
			
		||||
		map('n', '<Space>bl', '<Cmd>BufferOrderByLanguage<CR>', opts)
 | 
			
		||||
		map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', opts)
 | 
			
		||||
	end,
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue