tidy up
This commit is contained in:
		
							parent
							
								
									8983e96eae
								
							
						
					
					
						commit
						32b04db8ed
					
				
							
								
								
									
										42
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										42
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -27,7 +27,6 @@ vim.opt.rtp:prepend(lazypath)
 | 
				
			||||||
--    as they will be available in your neovim runtime.
 | 
					--    as they will be available in your neovim runtime.
 | 
				
			||||||
require('lazy').setup({
 | 
					require('lazy').setup({
 | 
				
			||||||
  -- NOTE: First, some plugins that don't require any configuration
 | 
					  -- NOTE: First, some plugins that don't require any configuration
 | 
				
			||||||
 | 
					 | 
				
			||||||
  -- Git related plugins
 | 
					  -- Git related plugins
 | 
				
			||||||
  'tpope/vim-fugitive',
 | 
					  'tpope/vim-fugitive',
 | 
				
			||||||
  'tpope/vim-rhubarb',
 | 
					  'tpope/vim-rhubarb',
 | 
				
			||||||
| 
						 | 
					@ -95,33 +94,33 @@ require('lazy').setup({
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -- NOTE: A couple of colour schemes that I like.
 | 
					  -- NOTE: A couple of colour schemes that I like.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -- {
 | 
					 | 
				
			||||||
  --   -- Theme inspired by Atom
 | 
					 | 
				
			||||||
  -- 'navarasu/onedark.nvim',
 | 
					 | 
				
			||||||
  -- priority = 1000,
 | 
					 | 
				
			||||||
  -- config = function()
 | 
					 | 
				
			||||||
  --   vim.cmd.colorscheme 'onedark'
 | 
					 | 
				
			||||||
  --   end,
 | 
					 | 
				
			||||||
  -- },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    "folke/tokyonight.nvim",
 | 
					    -- Theme inspired by Atom
 | 
				
			||||||
    lazy = false,
 | 
					    'navarasu/onedark.nvim',
 | 
				
			||||||
    priority = 1000,
 | 
					    priority = 1000,
 | 
				
			||||||
    opts = {},
 | 
					 | 
				
			||||||
    config = function()
 | 
					    config = function()
 | 
				
			||||||
      vim.cmd.colorscheme 'tokyonight'
 | 
					      vim.cmd.colorscheme 'onedark'
 | 
				
			||||||
    end,
 | 
					    end,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  -- {
 | 
				
			||||||
 | 
					  --   "folke/tokyonight.nvim",
 | 
				
			||||||
 | 
					  --   lazy = false,
 | 
				
			||||||
 | 
					  --   priority = 1000,
 | 
				
			||||||
 | 
					  --   opts = {},
 | 
				
			||||||
 | 
					  --   config = function()
 | 
				
			||||||
 | 
					  --     vim.cmd.colorscheme 'tokyonight'
 | 
				
			||||||
 | 
					  --   end,
 | 
				
			||||||
 | 
					  -- },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    -- Set lualine as statusline
 | 
					    -- Set lualine as statusline
 | 
				
			||||||
    'nvim-lualine/lualine.nvim',
 | 
					    'nvim-lualine/lualine.nvim',
 | 
				
			||||||
    -- See `:help lualine.txt`
 | 
					    -- See `:help lualine.txt`
 | 
				
			||||||
    opts = {
 | 
					    opts = {
 | 
				
			||||||
      options = {
 | 
					      options = {
 | 
				
			||||||
        icons_enabled = false,
 | 
					        icons_enabled = true,
 | 
				
			||||||
        theme = 'tokyonight',
 | 
					        theme = 'onedark',
 | 
				
			||||||
        component_separators = '|',
 | 
					        component_separators = '|',
 | 
				
			||||||
        section_separators = '',
 | 
					        section_separators = '',
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
| 
						 | 
					@ -363,12 +362,6 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
 | 
				
			||||||
-- [[ Configure LSP ]]
 | 
					-- [[ Configure LSP ]]
 | 
				
			||||||
--  This function gets run when an LSP connects to a particular buffer.
 | 
					--  This function gets run when an LSP connects to a particular buffer.
 | 
				
			||||||
local on_attach = function(_, bufnr)
 | 
					local on_attach = function(_, bufnr)
 | 
				
			||||||
  -- NOTE: Remember that lua is a real programming language, and as such it is possible
 | 
					 | 
				
			||||||
  -- to define small helper and utility functions so you don't have to repeat yourself
 | 
					 | 
				
			||||||
  -- many times.
 | 
					 | 
				
			||||||
  --
 | 
					 | 
				
			||||||
  -- In this case, we create a function that lets us more easily define mappings specific
 | 
					 | 
				
			||||||
  -- for LSP related items. It sets the mode, buffer and description for us each time.
 | 
					 | 
				
			||||||
  local nmap = function(keys, func, desc)
 | 
					  local nmap = function(keys, func, desc)
 | 
				
			||||||
    if desc then
 | 
					    if desc then
 | 
				
			||||||
      desc = 'LSP: ' .. desc
 | 
					      desc = 'LSP: ' .. desc
 | 
				
			||||||
| 
						 | 
					@ -418,8 +411,8 @@ local servers = {
 | 
				
			||||||
  gopls = {},
 | 
					  gopls = {},
 | 
				
			||||||
  -- pyright = {},
 | 
					  -- pyright = {},
 | 
				
			||||||
  -- rust_analyzer = {},
 | 
					  -- rust_analyzer = {},
 | 
				
			||||||
  -- tsserver = {},
 | 
					  tsserver = {},
 | 
				
			||||||
  -- html = { filetypes = { 'html', 'twig', 'hbs'} },
 | 
					  html = { filetypes = { 'html', 'twig', 'hbs' } },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  lua_ls = {
 | 
					  lua_ls = {
 | 
				
			||||||
    Lua = {
 | 
					    Lua = {
 | 
				
			||||||
| 
						 | 
					@ -503,4 +496,5 @@ cmp.setup {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- The line beneath this is called `modeline`. See `:help modeline`
 | 
					-- The line beneath this is called `modeline`. See `:help modeline`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- vim: ts=2 sts=2 sw=2 et
 | 
					-- vim: ts=2 sts=2 sw=2 et
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue