Finish lazy.nvim migration
This commit is contained in:
@ -46,7 +46,7 @@
|
|||||||
"mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
|
"mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
|
||||||
"neo-tree.nvim": { "branch": "v2.x", "commit": "d883632bf8f92f1d5abea4a9c28fb2f90aa795aa" },
|
"neo-tree.nvim": { "branch": "v2.x", "commit": "d883632bf8f92f1d5abea4a9c28fb2f90aa795aa" },
|
||||||
"nerdcommenter": { "branch": "master", "commit": "b0b09ea46c9f0509556257bd8b838b40f493d6a0" },
|
"nerdcommenter": { "branch": "master", "commit": "b0b09ea46c9f0509556257bd8b838b40f493d6a0" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "bd2fefb2efac70231fee497137295333dd4ada30" },
|
"nui.nvim": { "branch": "main", "commit": "062e366afcdf2bc1e9d28313a1df4ff14f05cb4e" },
|
||||||
"null-ls.nvim": { "branch": "main", "commit": "a138b14099e9623832027ea12b4631ddd2a49256" },
|
"null-ls.nvim": { "branch": "main", "commit": "a138b14099e9623832027ea12b4631ddd2a49256" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "b5a636d46c69bb371995c22d7a10ee1544004879" },
|
"nvim-cmp": { "branch": "main", "commit": "b5a636d46c69bb371995c22d7a10ee1544004879" },
|
||||||
"nvim-lightbulb": { "branch": "master", "commit": "ca5b44a8efffb5fec1963ccd21f25ec04cc778b7" },
|
"nvim-lightbulb": { "branch": "master", "commit": "ca5b44a8efffb5fec1963ccd21f25ec04cc778b7" },
|
||||||
|
@ -12,6 +12,7 @@ require("mason-lspconfig").setup({
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
local configs = require("lspconfig.configs")
|
local configs = require("lspconfig.configs")
|
||||||
|
|
||||||
if use_google() then
|
if use_google() then
|
||||||
configs.ciderlsp = {
|
configs.ciderlsp = {
|
||||||
default_config = {
|
default_config = {
|
||||||
|
@ -12,17 +12,17 @@ sync_install = false,
|
|||||||
indent = {
|
indent = {
|
||||||
enable = true
|
enable = true
|
||||||
},
|
},
|
||||||
disable = {"java"},
|
-- disable = {"java"},
|
||||||
--
|
--
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||||
-- Instead of true it can also be a list of languages
|
-- Instead of true it can also be a list of languages
|
||||||
-- additional_vim_regex_highlighting = true,
|
-- additional_vim_regex_highlighting = true,
|
||||||
-- additional_vim_regex_highlighting = {"java"},
|
additional_vim_regex_highlighting = {"java"},
|
||||||
},
|
},
|
||||||
rainbow = {
|
-- rainbow = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
extended_mode = true,
|
-- extended_mode = true,
|
||||||
}
|
-- }
|
||||||
}
|
}
|
||||||
|
@ -4,13 +4,6 @@ vim.diagnostic.config({
|
|||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set(
|
|
||||||
"",
|
|
||||||
"<Leader>l",
|
|
||||||
require("lsp_lines").toggle,
|
|
||||||
{ desc = "Toggle lsp_lines" }
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
require("trouble").setup({
|
require("trouble").setup({
|
||||||
signs = {
|
signs = {
|
||||||
|
@ -14,6 +14,8 @@ if not vim.loop.fs_stat(lazypath) then
|
|||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
package.path = package.path .. ';' .. vim.env.HOME .. "/.vim/lua/?.lua"
|
||||||
|
|
||||||
require("lazy").setup("plugins")
|
require("lazy").setup("plugins")
|
||||||
|
|
||||||
-- CiderLSP
|
-- CiderLSP
|
||||||
@ -23,5 +25,3 @@ vim.opt.shortmess:append("c")
|
|||||||
|
|
||||||
vim.opt.spell = true
|
vim.opt.spell = true
|
||||||
vim.opt.spelllang = { 'en_us' }
|
vim.opt.spelllang = { 'en_us' }
|
||||||
|
|
||||||
require("config.imp")
|
|
||||||
|
@ -5,7 +5,6 @@ return
|
|||||||
-- Pretty symbols
|
-- Pretty symbols
|
||||||
'kyazdani42/nvim-web-devicons',
|
'kyazdani42/nvim-web-devicons',
|
||||||
|
|
||||||
'nvim-lua/lsp-status.nvim',
|
|
||||||
'jghauser/mkdir.nvim',
|
'jghauser/mkdir.nvim',
|
||||||
'lewis6991/impatient.nvim',
|
'lewis6991/impatient.nvim',
|
||||||
'dstein64/vim-startuptime',
|
'dstein64/vim-startuptime',
|
||||||
@ -15,11 +14,6 @@ return
|
|||||||
'apalmer1377/factorus',
|
'apalmer1377/factorus',
|
||||||
'hrsh7th/vim-vsnip',
|
'hrsh7th/vim-vsnip',
|
||||||
'kosayoda/nvim-lightbulb',
|
'kosayoda/nvim-lightbulb',
|
||||||
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
|
||||||
|
|
||||||
'tpope/vim-surround',
|
'tpope/vim-surround',
|
||||||
'scrooloose/nerdcommenter',
|
'scrooloose/nerdcommenter',
|
||||||
'ntpeters/vim-better-whitespace',
|
'ntpeters/vim-better-whitespace',
|
||||||
@ -29,7 +23,6 @@ return
|
|||||||
'jremmen/vim-ripgrep',
|
'jremmen/vim-ripgrep',
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
@ -75,14 +68,19 @@ return
|
|||||||
{ 'ray-x/go.nvim',ft='go' },
|
{ 'ray-x/go.nvim',ft='go' },
|
||||||
{ 'ray-x/guihua.lua',ft='go' },
|
{ 'ray-x/guihua.lua',ft='go' },
|
||||||
|
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
'nvim-lua/lsp-status.nvim',
|
||||||
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
|
|
||||||
-- Completion and linting
|
-- Completion and linting
|
||||||
'neovim/nvim-lspconfig',
|
|
||||||
{
|
{
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
event = "InsertEnter",
|
event = "VimEnter",
|
||||||
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'onsails/lspkind.nvim',
|
'onsails/lspkind.nvim',
|
||||||
|
'neovim/nvim-lspconfig',
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'lukas-reineke/cmp-under-comparator',
|
'lukas-reineke/cmp-under-comparator',
|
||||||
@ -106,14 +104,14 @@ return
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'ErichDonGubler/lsp_lines.nvim',
|
'ErichDonGubler/lsp_lines.nvim',
|
||||||
event = "InsertEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
keys = {
|
||||||
require("lsp_lines").setup()
|
{ "<leader>l", function() require("lsp_lines").toggle() end, desc = "Toggle LSP Lines" },
|
||||||
end
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'jose-elias-alvarez/null-ls.nvim',
|
'jose-elias-alvarez/null-ls.nvim',
|
||||||
event = "InsertEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.null-ls")
|
require("config.null-ls")
|
||||||
end
|
end
|
||||||
@ -143,9 +141,10 @@ return
|
|||||||
|
|
||||||
{
|
{
|
||||||
'folke/trouble.nvim',
|
'folke/trouble.nvim',
|
||||||
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.trouble")
|
require("config.trouble")
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -160,16 +159,18 @@ return
|
|||||||
},
|
},
|
||||||
{'andymass/vim-matchup', event = 'VimEnter'},
|
{'andymass/vim-matchup', event = 'VimEnter'},
|
||||||
|
|
||||||
{ 'simrat39/symbols-outline.nvim', config = function()
|
{ 'simrat39/symbols-outline.nvim',
|
||||||
require("config.symbols-outline")
|
config = function()
|
||||||
end
|
require("config.symbols-outline")
|
||||||
},
|
end
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'petertriho/nvim-scrollbar', config = function()
|
'petertriho/nvim-scrollbar',
|
||||||
require("scrollbar").setup()
|
config = function()
|
||||||
|
require("scrollbar").setup()
|
||||||
end,
|
end,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'rmagatti/auto-session',
|
'rmagatti/auto-session',
|
||||||
@ -181,7 +182,6 @@ return
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"ipod825/libp.nvim",
|
"ipod825/libp.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
@ -203,23 +203,6 @@ return
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Git
|
|
||||||
{
|
|
||||||
{
|
|
||||||
'lewis6991/gitsigns.nvim',
|
|
||||||
dependencies = 'nvim-lua/plenary.nvim',
|
|
||||||
event = 'User ActuallyEditing',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'akinsho/git-conflict.nvim',
|
|
||||||
version = '*',
|
|
||||||
config = function()
|
|
||||||
require('git-conflict').setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{ 'rhysd/conflict-marker.vim' }
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
@ -238,7 +221,8 @@ return
|
|||||||
|
|
||||||
-- mine
|
-- mine
|
||||||
{
|
{
|
||||||
'squk/java-syntax.vim', ft='java'
|
'squk/java-syntax.vim',
|
||||||
|
lazy = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
16
vim/.vim/lua/plugins/git.lua
Normal file
16
vim/.vim/lua/plugins/git.lua
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
return {
|
||||||
|
-- Git
|
||||||
|
{
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
dependencies = 'nvim-lua/plenary.nvim',
|
||||||
|
event = 'User ActuallyEditing',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'akinsho/git-conflict.nvim',
|
||||||
|
version = '*',
|
||||||
|
config = function()
|
||||||
|
require('git-conflict').setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ 'rhysd/conflict-marker.vim' }
|
||||||
|
}
|
@ -8,10 +8,18 @@ return {
|
|||||||
{
|
{
|
||||||
name = "cmp_nvim_ciderlsp",
|
name = "cmp_nvim_ciderlsp",
|
||||||
url = 'sso://googler@user/piloto/cmp-nvim-ciderlsp',
|
url = 'sso://googler@user/piloto/cmp-nvim-ciderlsp',
|
||||||
|
lazy = false;
|
||||||
|
dependencies = {
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "ciderlsp_nvim",
|
name = "ciderlsp_nvim",
|
||||||
url = 'sso://googler@user/kdark/ciderlsp-nvim',
|
url = 'sso://googler@user/kdark/ciderlsp-nvim',
|
||||||
|
lazy = false;
|
||||||
|
dependencies = {
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "nvim_figtree",
|
name = "nvim_figtree",
|
||||||
@ -80,4 +88,3 @@ return {
|
|||||||
-- 'google/vim-glaive',
|
-- 'google/vim-glaive',
|
||||||
-- }
|
-- }
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
|
@ -7,8 +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
|
||||||
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
|
||||||
@ -179,4 +179,3 @@ nmap <leader>yb :let @+ = join(blaze#GetTargets(), ' ')<cr>
|
|||||||
|
|
||||||
Glug corpweb
|
Glug corpweb
|
||||||
nnoremap <leader>csw :CorpWebCsFile<cr>
|
nnoremap <leader>csw :CorpWebCsFile<cr>
|
||||||
|
|
||||||
|
17
vim/.vimrc
17
vim/.vimrc
@ -5,7 +5,6 @@ filetype off " required
|
|||||||
set runtimepath+=,~/.vim
|
set runtimepath+=,~/.vim
|
||||||
set runtimepath+=,~/.vim/after
|
set runtimepath+=,~/.vim/after
|
||||||
set runtimepath+=,~/.vim/lua/
|
set runtimepath+=,~/.vim/lua/
|
||||||
set runtimepath+=,~/.vim/lua/plugins
|
|
||||||
set runtimepath+=,~/.config/nvim/after/
|
set runtimepath+=,~/.config/nvim/after/
|
||||||
let &runtimepath = &runtimepath
|
let &runtimepath = &runtimepath
|
||||||
|
|
||||||
@ -22,7 +21,6 @@ let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|||||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
let &t_AB="\e[48;5;%dm"
|
let &t_AB="\e[48;5;%dm"
|
||||||
let &t_AF="\e[38;5;%dm"
|
let &t_AF="\e[38;5;%dm"
|
||||||
syntax on
|
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set cmdheight=1
|
set cmdheight=1
|
||||||
@ -82,13 +80,7 @@ set omnifunc= completeopt=menuone,noinsert,noselect
|
|||||||
|
|
||||||
set updatetime=100
|
set updatetime=100
|
||||||
|
|
||||||
if filereadable(expand("~/.vimrc.local"))
|
lua require('plugin_init')
|
||||||
source ~/.vimrc.local
|
|
||||||
endif
|
|
||||||
|
|
||||||
if filereadable(expand("~/use_google"))
|
|
||||||
source ~/.vim/prefs/google.vim
|
|
||||||
endif
|
|
||||||
|
|
||||||
source ~/.vim/prefs/mappings.vim
|
source ~/.vim/prefs/mappings.vim
|
||||||
source ~/.vim/prefs/leader.vim
|
source ~/.vim/prefs/leader.vim
|
||||||
@ -194,7 +186,12 @@ function! s:AddBufferToTab()
|
|||||||
tabfirst
|
tabfirst
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
lua require('plugin_init')
|
|
||||||
|
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
if filereadable(expand("~/use_google"))
|
||||||
|
source ~/.vim/prefs/google.vim
|
||||||
|
endif
|
||||||
|
lua require("config.imp")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user