in progress

This commit is contained in:
Christian Nieves
2023-05-10 13:31:46 -05:00
parent 44a0a63d0b
commit c014d9ea57
3 changed files with 15 additions and 35 deletions

View File

@ -17,8 +17,6 @@ package.path = package.path .. vim.fn.expand(";$HOME/.vim/lua/?.lua")
vim.g.mapleader = "," -- Make sure to set `mapleader` before lazy so your mappings are correct vim.g.mapleader = "," -- Make sure to set `mapleader` before lazy so your mappings are correct
vim.g.windowswap_map_keys = 0 vim.g.windowswap_map_keys = 0
-- require('lspconfig')
require("lazy").setup({ require("lazy").setup({
"folke/which-key.nvim", "folke/which-key.nvim",
{ "folke/neoconf.nvim", cmd = "Neoconf" }, { "folke/neoconf.nvim", cmd = "Neoconf" },
@ -30,6 +28,7 @@ require("lazy").setup({
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate", build = ":TSUpdate",
config = function() require("config.nvim-treesitter") end config = function() require("config.nvim-treesitter") end
}, },
@ -85,13 +84,14 @@ require("lazy").setup({
'ray-x/cmp-treesitter', 'ray-x/cmp-treesitter',
}, },
event = 'InsertEnter', event = 'InsertEnter',
lazy = false,
config = function() require("config.lsp") end, config = function() require("config.lsp") end,
}, },
{ {
"tzachar/cmp-tabnine", build = "./install.sh", "tzachar/cmp-tabnine", build = "./install.sh",
event = 'InsertEnter', event = 'InsertEnter',
cond = not use_google(), enabled = not use_google(),
}, },
{ 'ErichDonGubler/lsp_lines.nvim', config = function() require("lsp_lines").setup() end }, { 'ErichDonGubler/lsp_lines.nvim', config = function() require("lsp_lines").setup() end },
@ -294,7 +294,7 @@ require("lazy").setup({
-- mine -- mine
{ {
'squk/java-syntax.vim', ft='java' 'squk/java-syntax.vim', ft='java', lazy=false
}, },
{ {
@ -384,10 +384,7 @@ require("lazy").setup({
end, end,
}, },
}, },
{ { defaults = {lazy = false} })
defaults = {
-- lazy = true, -- should plugins be lazy-loaded?
}})
-- CiderLSP -- CiderLSP
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }

View File

@ -7,7 +7,8 @@ let g:signify_skip_filename_pattern = ['\.pipertmp.*']
Glug alert Glug alert
Glug csearch Glug csearch
Glug codefmt ktfmt_executable=`["/google/bin/releases/kotlin-google-eng/ktfmt/ktfmt_deploy.jar", "--google-style"]` " Glug codefmt ktfmt_executable=`["/google/bin/releases/kotlin-google-eng/ktfmt/ktfmt_deploy.jar", "--google-style"]`
Glug codefmt
Glug codefmt-google Glug codefmt-google
Glug languages Glug languages
" applies google coding style settings to files whitelisted as google code. probably also want " applies google coding style settings to files whitelisted as google code. probably also want

View File

@ -5,7 +5,6 @@ filetype off " required
set rtp+=~/.vim set rtp+=~/.vim
set rtp+=~/.vim/after set rtp+=~/.vim/after
set rtp+=~/.config/nvim/after/ set rtp+=~/.config/nvim/after/
set rtp+=~/.vim/lua/
set directory=/tmp set directory=/tmp
set undodir=/tmp set undodir=/tmp
@ -91,16 +90,6 @@ endif
source ~/.vim/prefs/mappings.vim source ~/.vim/prefs/mappings.vim
source ~/.vim/prefs/leader.vim source ~/.vim/prefs/leader.vim
source ~/.vim/prefs/ui.vim source ~/.vim/prefs/ui.vim
" source ~/.vim/prefs/fzf.vim
filetype plugin on " redundant?
filetype plugin indent on
" auto-reload vimrc on save
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,.vimrc.local,vimrc,.gvimrc,_gvimrc,gvimrc,*.vim nested so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
fun! NewInitBex() fun! NewInitBex()
let &bex = '-' . strftime("(%Y%m%d)-{%H%M}") let &bex = '-' . strftime("(%Y%m%d)-{%H%M}")
@ -115,13 +104,6 @@ set t_Co=256
let base16colorspace=256 let base16colorspace=256
set colorcolumn=100 set colorcolumn=100
if has('macunix')
let g:python3_host_prog='/usr/local/bin/python3'
let g:python_host_prog='/usr/local/bin/python3'
else
let g:python3_host_prog='/usr/bin/python3'
let g:python_host_prog='/usr/bin/python'
endif
if (has("termguicolors")) if (has("termguicolors"))
set termguicolors set termguicolors
@ -209,5 +191,5 @@ function! s:AddBufferToTab()
tabfirst tabfirst
endfun endfun
filetype plugin indent on
lua require("plugins") lua require("plugins")