Skip to content

Commit

Permalink
add formatting stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pcranaway committed Oct 17, 2021
1 parent 536f874 commit 0d36758
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .config/nvim/lua/bindings.lua
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
local utils = require('utils')

vim.g.mapleader = ' '

-- convert to lua
-- map : to ;, makes it so much better
utils.map('n', ';', ':')

-- easier indentation with <, >
utils.map('n', '<', '<gv')
utils.map('n', '>', '>gv')
4 changes: 4 additions & 0 deletions .config/nvim/lua/formatting.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vim.opt.sw = 4
vim.opt.ts = 4
vim.opt.sts = 4
vim.opt.expandtab = true
1 change: 1 addition & 0 deletions .config/nvim/lua/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('utils')
require('plugins')
require('bindings')
require('formatting')
require('lsp')
require('telescope')
require('treesitter')
Expand Down
7 changes: 6 additions & 1 deletion .config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
Plug 'hrsh7th/vim-vsnip-integ'

-- telescope
-- file management
Plug 'nvim-telescope/telescope.nvim'
Plug 'kevinhwang91/rnvimr'

-- color scheme
-- Plug 'wadackel/vim-dogrun'
Expand All @@ -30,5 +31,9 @@ Plug 'itchyny/lightline.vim'
-- neovim lua development
Plug 'tjdevries/nlua.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'MunifTanjim/nui.nvim'

-- attention
Plug 'andweeb/presence.nvim'

vim.call('plug#end')

0 comments on commit 0d36758

Please sign in to comment.