Run formatter on all lua files
This commit is contained in:
parent
2eca6c0d56
commit
56f0d00f96
|
@ -1,5 +1,6 @@
|
||||||
vim.filetype.add({
|
vim.filetype.add({
|
||||||
extension = {
|
extension = {
|
||||||
|
['vtt'] = 'vtt',
|
||||||
},
|
},
|
||||||
filename = {
|
filename = {
|
||||||
['.scalafmt.conf'] = 'hocon',
|
['.scalafmt.conf'] = 'hocon',
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
return { 'ryicoh/deepl.vim',
|
return {
|
||||||
|
'ryicoh/deepl.vim',
|
||||||
keys = {
|
keys = {
|
||||||
|
|
||||||
{ '<leader><C-e>', function() vim.fn['deepl#v']("EN") end, mode = 'v' },
|
{ '<leader><C-e>', function() vim.fn['deepl#v']("EN") end, mode = 'v' },
|
||||||
{ '<leader><C-d>', function() vim.fn['deepl#v']("DE") end, mode = 'v' },
|
{ '<leader><C-d>', function() vim.fn['deepl#v']("DE") end, mode = 'v' },
|
||||||
},
|
},
|
||||||
dependencies = {{ 'tsuyoshicho/vim-pass',
|
dependencies = { {
|
||||||
|
'tsuyoshicho/vim-pass',
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.pass_use_agent = 1
|
vim.g.pass_use_agent = 1
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
return {
|
return {
|
||||||
'mfussenegger/nvim-lint',
|
'mfussenegger/nvim-lint',
|
||||||
|
|
||||||
{
|
{
|
||||||
'mhartington/formatter.nvim',
|
'mhartington/formatter.nvim',
|
||||||
opts = function()
|
opts = function()
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
return {
|
return { 'tpope/vim-fugitive' }
|
||||||
'tpope/vim-fugitive'
|
|
||||||
}
|
|
||||||
|
|
7
lua/plugins/gen.lua
Normal file
7
lua/plugins/gen.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
return {
|
||||||
|
"David-Kunz/gen.nvim",
|
||||||
|
opts = {
|
||||||
|
model = "mistral", -- The default model to use.
|
||||||
|
init = false,
|
||||||
|
}
|
||||||
|
}
|
14
lua/plugins/git.lua
Normal file
14
lua/plugins/git.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
'lambdalisue/gina.vim',
|
||||||
|
'gisphm/vim-gitignore',
|
||||||
|
'sjl/splice.vim',
|
||||||
|
{
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
config = {
|
||||||
|
signs = {
|
||||||
|
add = { text = '▌' },
|
||||||
|
change = { text = '▐' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
|
@ -11,18 +11,21 @@ return {
|
||||||
{ "chrisgrieser/nvim-genghis", dependencies = "stevearc/dressing.nvim" },
|
{ "chrisgrieser/nvim-genghis", dependencies = "stevearc/dressing.nvim" },
|
||||||
|
|
||||||
-- ic / ac
|
-- ic / ac
|
||||||
{'glts/vim-textobj-comment',
|
{
|
||||||
|
'glts/vim-textobj-comment',
|
||||||
dependencies = { 'kana/vim-textobj-user' }
|
dependencies = { 'kana/vim-textobj-user' }
|
||||||
},
|
},
|
||||||
-- ii / ai
|
-- ii / ai
|
||||||
'michaeljsmith/vim-indent-object',
|
'michaeljsmith/vim-indent-object',
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
|
|
||||||
{ 'nvim-telescope/telescope.nvim',
|
{
|
||||||
|
'nvim-telescope/telescope.nvim',
|
||||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||||
},
|
},
|
||||||
|
|
||||||
{ 'ray-x/lsp_signature.nvim',
|
{
|
||||||
|
'ray-x/lsp_signature.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('lsp_signature').setup({})
|
require('lsp_signature').setup({})
|
||||||
end
|
end
|
||||||
|
@ -36,7 +39,8 @@ return {
|
||||||
'lambdalisue/suda.vim',
|
'lambdalisue/suda.vim',
|
||||||
'jamessan/vim-gnupg',
|
'jamessan/vim-gnupg',
|
||||||
|
|
||||||
{'lervag/vimtex',
|
{
|
||||||
|
'lervag/vimtex',
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.tex_conceal = "agm"
|
vim.g.tex_conceal = "agm"
|
||||||
vim.g.vimtex_quickfix_ignorefilters = { 'overfull', 'underfull' }
|
vim.g.vimtex_quickfix_ignorefilters = { 'overfull', 'underfull' }
|
||||||
|
|
|
@ -12,7 +12,8 @@ return {
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
},
|
},
|
||||||
---@class PluginLspOpts
|
---@class PluginLspOpts
|
||||||
opts = function() return {
|
opts = function()
|
||||||
|
return {
|
||||||
-- options for vim.diagnostic.config()
|
-- options for vim.diagnostic.config()
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
underline = true,
|
underline = true,
|
||||||
|
@ -67,7 +68,8 @@ return {
|
||||||
-- Specify * to use this function as a fallback for any server
|
-- Specify * to use this function as a fallback for any server
|
||||||
-- ["*"] = function(server, opts) end,
|
-- ["*"] = function(server, opts) end,
|
||||||
},
|
},
|
||||||
} end,
|
}
|
||||||
|
end,
|
||||||
---@param opts PluginLspOpts
|
---@param opts PluginLspOpts
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- diagnostics
|
-- diagnostics
|
||||||
|
@ -173,11 +175,11 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
'mfussenegger/nvim-jdtls',
|
'mfussenegger/nvim-jdtls',
|
||||||
{'nvim-lua/lsp-status.nvim',
|
{
|
||||||
|
'nvim-lua/lsp-status.nvim',
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local lsp_status = require('lsp-status')
|
local lsp_status = require('lsp-status')
|
||||||
lsp_status.register_progress()
|
lsp_status.register_progress()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@ return {
|
||||||
'crater2150/vim-theme-chroma',
|
'crater2150/vim-theme-chroma',
|
||||||
},
|
},
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = function(_, opts) return {
|
opts = function(_, opts)
|
||||||
|
return {
|
||||||
options = {
|
options = {
|
||||||
theme = require('chroma-theme.lualine')
|
theme = require('chroma-theme.lualine')
|
||||||
},
|
},
|
||||||
|
@ -17,7 +18,8 @@ return {
|
||||||
lualine_x = {},
|
lualine_x = {},
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
{'tabs',
|
{
|
||||||
|
'tabs',
|
||||||
mode = 1,
|
mode = 1,
|
||||||
fmt = function(name, context)
|
fmt = function(name, context)
|
||||||
local buflist = vim.fn.tabpagebuflist(context.tabnr)
|
local buflist = vim.fn.tabpagebuflist(context.tabnr)
|
||||||
|
|
|
@ -85,7 +85,8 @@ return {
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'nvim-treesitter/playground',
|
{
|
||||||
|
'nvim-treesitter/playground',
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
cmd = {
|
cmd = {
|
||||||
'TSPlaygroundToggle',
|
'TSPlaygroundToggle',
|
||||||
|
@ -93,7 +94,8 @@ return {
|
||||||
'TSNodeUnderCursor',
|
'TSNodeUnderCursor',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ "nvim-treesitter/nvim-treesitter-context",
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
cmd = { 'TSContextEnable', 'TSContextDisable', 'TSContextToggle' },
|
cmd = { 'TSContextEnable', 'TSContextDisable', 'TSContextToggle' },
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
local sbtToScalaCLI = function()
|
local sbtToScalaCLI = function()
|
||||||
vim.cmd [[s/\s*libraryDependencies\s*+=\s*/\/\/> using dep /]]
|
vim.cmd [[s/\s*libraryDependencies\s*+=\s*/\/\/> using dep /]]
|
||||||
vim.cmd [[s/" \(%\+\) "/\=repeat(":", strlen(submatch(1)))/g]]
|
vim.cmd [[s/" \(%\+\) "/\=repeat(":", strlen(submatch(1)))/g]]
|
||||||
|
|
Loading…
Reference in a new issue