Set .lua files to 2-space tabs

This commit is contained in:
agryphus 2023-05-23 11:03:53 -04:00
parent 402eddfda2
commit cd3958ca0f
10 changed files with 102 additions and 95 deletions

View file

@ -1,81 +1,81 @@
vim.cmd.packadd("packer.nvim")
return require("packer").startup(function(use)
use "wbthomason/packer.nvim"
use "wbthomason/packer.nvim"
-- Find files and strings
use {
"nvim-telescope/telescope.nvim", tag = "0.1.0",
requires = { {"nvim-lua/plenary.nvim"} }
}
-- Find files and strings
use {
"nvim-telescope/telescope.nvim", tag = "0.1.0",
requires = { {"nvim-lua/plenary.nvim"} }
}
-- Treesittep
use({"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"})
-- Treesittep
use({"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"})
-- Themes
use "aktersnurra/no-clown-fiesta.nvim"
-- Themes
use "aktersnurra/no-clown-fiesta.nvim"
-- Referencing a hex code highlights it in that color
use "lilydjwg/colorizer"
-- Referencing a hex code highlights it in that color
use "lilydjwg/colorizer"
-- Relative line numbers disappear when not actively in buffer
use "jeffkreeftmeijer/vim-numbertoggle"
-- Relative line numbers disappear when not actively in buffer
use "jeffkreeftmeijer/vim-numbertoggle"
-- Left-side file tree dispaly
use {
"nvim-tree/nvim-tree.lua",
requires = {
"nvim-tree/nvim-web-devicons", -- for file icons
},
tag = "nightly" -- optional, updated every week
-- Left-side file tree dispaly
use {
"nvim-tree/nvim-tree.lua",
requires = {
"nvim-tree/nvim-web-devicons", -- for file icons
},
tag = "nightly" -- optional, updated every week
}
-- Shows current mode on bottom of screen
use "itchyny/lightline.vim"
-- LSP
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v1.x',
requires = {
-- LSP Support
{'neovim/nvim-lspconfig'}, -- Required
{'williamboman/mason.nvim'}, -- Optional
{'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required
{'hrsh7th/cmp-buffer'}, -- Optional
{'hrsh7th/cmp-path'}, -- Optional
{'saadparwaiz1/cmp_luasnip'}, -- Optional
{'hrsh7th/cmp-nvim-lua'}, -- Optional
-- Snippets
{'L3MON4D3/LuaSnip'}, -- Required
{'rafamadriz/friendly-snippets'}, -- Optional
}
}
-- Shows current mode on bottom of screen
use "itchyny/lightline.vim"
-- Linting
use "jose-elias-alvarez/null-ls.nvim"
-- LSP
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v1.x',
requires = {
-- LSP Support
{'neovim/nvim-lspconfig'}, -- Required
{'williamboman/mason.nvim'}, -- Optional
{'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Git wrapper
use("tpope/vim-fugitive")
-- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required
{'hrsh7th/cmp-buffer'}, -- Optional
{'hrsh7th/cmp-path'}, -- Optional
{'saadparwaiz1/cmp_luasnip'}, -- Optional
{'hrsh7th/cmp-nvim-lua'}, -- Optional
-- Latex editing in vim
use "lervag/vimtex"
-- Snippets
{'L3MON4D3/LuaSnip'}, -- Required
{'rafamadriz/friendly-snippets'}, -- Optional
}
}
-- Vim Games :D
use "ThePrimeagen/vim-be-good"
-- Linting
use "jose-elias-alvarez/null-ls.nvim"
-- Auto comment
use "numToStr/Comment.nvim"
-- Git wrapper
use("tpope/vim-fugitive")
-- Latex editing in vim
use "lervag/vimtex"
-- Vim Games :D
use "ThePrimeagen/vim-be-good"
-- Auto comment
use "numToStr/Comment.nvim"
-- Jupyter notebook integration
use {
"glacambre/firenvim",
run = function() vim.fn["firenvim#install"](0) end
}
-- Jupyter notebook integration
use {
"glacambre/firenvim",
run = function() vim.fn["firenvim#install"](0) end
}
end)

View file

@ -21,8 +21,8 @@ vim.o.shell = "/usr/bin/zsh"
-- I don't believe this functionality has been ported to lua.
vim.cmd([[
function! TerminalSettings()
setlocal nonumber norelativenumber
setlocal scrolloff=0
setlocal nonumber norelativenumber
setlocal scrolloff=0
endfunction
autocmd TermOpen * call TerminalSettings()
]])