dotfiles/nvim/init.lua

55 lines
2.3 KiB
Lua
Raw Normal View History

2022-07-03 19:16:17 +02:00
require('packer').startup(function(use)
2022-07-03 18:00:31 +02:00
use 'ConradIrwin/vim-bracketed-paste'
use 'cappyzawa/trim.nvim'
2022-07-03 19:16:17 +02:00
use "rafamadriz/friendly-snippets"
2022-07-03 18:00:31 +02:00
use 'christoomey/vim-tmux-navigator'
use 'cohama/lexima.vim'
use 'editorconfig/editorconfig-vim'
use 'ervandew/supertab'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-cmdline'
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-path'
2022-07-03 19:16:17 +02:00
use 'hrsh7th/vim-vsnip-integ'
2022-07-03 18:00:31 +02:00
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/nvim-cmp'
use 'hrsh7th/vim-vsnip'
use 'kristijanhusak/vim-hybrid-material'
use 'lervag/vimtex'
use 'neovim/nvim-lspconfig'
use 'octol/vim-cpp-enhanced-highlight'
use 'prabirshrestha/asyncomplete-lsp.vim'
use 'prabirshrestha/vim-lsp'
use 'tmux-plugins/vim-tmux'
use 'tmux-plugins/vim-tmux-focus-events'
use 'tomtom/tcomment_vim'
use 'vim-airline/vim-airline'
use 'vim-airline/vim-airline-themes'
use 'vimwiki/vimwiki'
use 'wbthomason/packer.nvim'
use 'williamboman/nvim-lsp-installer'
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build'}
use {'nvim-telescope/telescope.nvim', requires = {{'nvim-lua/plenary.nvim'}}}
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
2022-07-03 19:16:17 +02:00
use {'glacambre/firenvim', run = function() vim.fn['firenvim#install'](0) end}
2022-07-03 18:00:31 +02:00
end)
require('mappings')
2022-07-03 19:56:25 +02:00
require('settings')
2022-07-03 18:00:31 +02:00
require('lsp_config')
require('telescope-config')
2022-07-03 19:16:17 +02:00
require('trim').setup({
disable = {"markdown", "vimwiki"},
patterns = {
[[%s/\s\+$//e]], -- remove unwanted spaces
[[%s/\($\n\s*\)\+\%$//]], -- trim last line
[[%s/\%^\n\+//]], -- trim first line
},
})
2022-07-03 18:00:31 +02:00
vim.cmd("colorscheme hybrid_material")
vim.api.nvim_create_autocmd("FileType", { pattern = "make", command = [[set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab]] })
vim.api.nvim_create_autocmd("FileType", { pattern = "vimwiki", command = [[setlocal shiftwidth=2 softtabstop=2 expandtab]] })
vim.api.nvim_create_autocmd("FileType", { pattern = "javascript", command = [[setlocal shiftwidth=2 softtabstop=2 expandtab]] })
vim.api.nvim_create_autocmd("FileType", { pattern = "vue", command = [[setlocal shiftwidth=2 softtabstop=2 expandtab]] })