Added tabstop/softtabstop 4
This commit is contained in:
		
							parent
							
								
									ca533432a6
								
							
						
					
					
						commit
						f5fd67fb1b
					
				
							
								
								
									
										30
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										30
									
								
								init.lua
								
								
								
								
							| 
						 | 
				
			
			@ -74,7 +74,8 @@ require('lazy').setup({
 | 
			
		|||
 | 
			
		||||
  -- NOTE: This is where your plugins related to LSP can be installed.
 | 
			
		||||
  --  The configuration is done below. Search for lspconfig to find it below.
 | 
			
		||||
  { -- LSP Configuration & Plugins
 | 
			
		||||
  {
 | 
			
		||||
    -- LSP Configuration & Plugins
 | 
			
		||||
    'neovim/nvim-lspconfig',
 | 
			
		||||
    dependencies = {
 | 
			
		||||
      -- Automatically install LSPs to stdpath for neovim
 | 
			
		||||
| 
						 | 
				
			
			@ -90,14 +91,16 @@ require('lazy').setup({
 | 
			
		|||
    },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  { -- Autocompletion
 | 
			
		||||
  {
 | 
			
		||||
    -- Autocompletion
 | 
			
		||||
    'hrsh7th/nvim-cmp',
 | 
			
		||||
    dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  -- Useful plugin to show you pending keybinds.
 | 
			
		||||
  { 'folke/which-key.nvim',          opts = {} },
 | 
			
		||||
  { -- Adds git releated signs to the gutter, as well as utilities for managing changes
 | 
			
		||||
  {
 | 
			
		||||
    -- Adds git releated signs to the gutter, as well as utilities for managing changes
 | 
			
		||||
    'lewis6991/gitsigns.nvim',
 | 
			
		||||
    opts = {
 | 
			
		||||
      -- See `:help gitsigns.txt`
 | 
			
		||||
| 
						 | 
				
			
			@ -111,7 +114,8 @@ require('lazy').setup({
 | 
			
		|||
    },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  { -- Theme inspired by Atom
 | 
			
		||||
  {
 | 
			
		||||
    -- Theme inspired by Atom
 | 
			
		||||
    'navarasu/onedark.nvim',
 | 
			
		||||
    priority = 1000,
 | 
			
		||||
    config = function()
 | 
			
		||||
| 
						 | 
				
			
			@ -119,7 +123,8 @@ require('lazy').setup({
 | 
			
		|||
    end,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  { -- Set lualine as statusline
 | 
			
		||||
  {
 | 
			
		||||
    -- Set lualine as statusline
 | 
			
		||||
    'nvim-lualine/lualine.nvim',
 | 
			
		||||
    -- See `:help lualine.txt`
 | 
			
		||||
    opts = {
 | 
			
		||||
| 
						 | 
				
			
			@ -132,7 +137,8 @@ require('lazy').setup({
 | 
			
		|||
    },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  { -- Add indentation guides even on blank lines
 | 
			
		||||
  {
 | 
			
		||||
    -- Add indentation guides even on blank lines
 | 
			
		||||
    'lukas-reineke/indent-blankline.nvim',
 | 
			
		||||
    -- Enable `lukas-reineke/indent-blankline.nvim`
 | 
			
		||||
    -- See `:help indent_blankline.txt`
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +167,8 @@ require('lazy').setup({
 | 
			
		|||
    end,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  { -- Highlight, edit, and navigate code
 | 
			
		||||
  {
 | 
			
		||||
    -- Highlight, edit, and navigate code
 | 
			
		||||
    'nvim-treesitter/nvim-treesitter',
 | 
			
		||||
    dependencies = {
 | 
			
		||||
      'nvim-treesitter/nvim-treesitter-textobjects',
 | 
			
		||||
| 
						 | 
				
			
			@ -236,6 +243,9 @@ vim.o.number = true
 | 
			
		|||
vim.o.scrolloff = 5
 | 
			
		||||
vim.o.sidescrolloff = 10
 | 
			
		||||
 | 
			
		||||
vim.o.tabstop = 4
 | 
			
		||||
vim.o.softtabstop = 4
 | 
			
		||||
 | 
			
		||||
-- [[ Basic Keymaps ]]
 | 
			
		||||
 | 
			
		||||
-- Keymaps for better default experience
 | 
			
		||||
| 
						 | 
				
			
			@ -482,7 +492,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 {
 | 
			
		||||
| 
						 | 
				
			
			@ -501,8 +511,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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue