1
0
Fork 0

nvim: misc

This commit is contained in:
Vladimír Dudr 2023-02-01 17:11:15 +01:00
parent 0e7d94beba
commit 1962cbd3bc
8 changed files with 33 additions and 6 deletions

View file

@ -0,0 +1,5 @@
local config = {
cmd = { 'jdtls' },
root_dir = vim.fs.dirname(vim.fs.find({ '.gradlew', '.git', 'mvnw' }, { upward = true })[1]),
}
require('jdtls').start_or_attach(config)

View file

@ -17,6 +17,11 @@ require('lazy').setup(
{
install = { colorscheme = { 'gruvbox' }, },
-- rtp = { disabled_plugins = { 'netrwPlugin' } },
change_detection = {
-- automatically check for config file changes and reload the ui
enabled = true,
notify = false, -- get a notification when changes are found
},
}
)

View file

@ -5,7 +5,7 @@ local M = {
'b0o/schemastore.nvim',
'SmiteshP/nvim-navic',
{ 'j-hui/fidget.nvim', config = true },
{ 'ray-x/lsp_signature.nvim', opts = { hint_prefix = '', floating_window = false, } },
{ 'ray-x/lsp_signature.nvim', opts = { hint_prefix = '', floating_window = false, hint_scheme = 'Identifier' } },
'hrsh7th/nvim-cmp',
},
keys = {

View file

@ -2,7 +2,7 @@ local M = {
'hoob3rt/lualine.nvim',
event = 'VeryLazy',
dependencies = {
'kyazdani42/nvim-web-devicons'
'nvim-tree/nvim-web-devicons'
},
}
@ -18,7 +18,7 @@ function M.config()
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch' },
lualine_b = { 'vim.fs.basename(vim.fn.getcwd())', 'branch' },
lualine_c = { { 'filename', path = 1 } },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
@ -26,7 +26,7 @@ function M.config()
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_b = { 'vim.fs.basename(vim.fn.getcwd())', 'branch' },
lualine_c = { { 'filename', path = 1 } },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
@ -34,7 +34,9 @@ function M.config()
},
tabline = {},
winbar = {
lualine_b = { { 'filename', path = 1 }, },
lualine_c = { { navic.get_location, cond = navic.is_available } },
lualine_y = { { 'require("lsp_signature").status_line(100).label' }, 'filetype' },
},
inactive_winbar = {},
extensions = { 'neo-tree' }

View file

@ -28,9 +28,14 @@ return {
{ 'fpob/nette.vim', ft = 'nette' },
{ 'ziglang/zig.vim', ft = 'zig' },
{
'mfussenegger/nvim-jdtls',
ft = 'java',
},
{
'folke/trouble.nvim',
dependencies = { 'kyazdani42/nvim-web-devicons' },
dependencies = { 'nvim-tree/nvim-web-devicons' },
lazy = true,
cmd = { 'Trouble', 'TroubleToggle' },
keys = { { '<Space>t', ':TroubleToggle<CR>', desc = 'Trouble' } },

View file

@ -10,7 +10,7 @@ local M = {
cmd = 'Neotree',
dependencies = {
'nvim-lua/plenary.nvim',
'kyazdani42/nvim-web-devicons', -- not strictly required, but recommended
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
}

View file

@ -18,6 +18,7 @@ local M = {
{ '<Space>Tg', [[<Cmd>Telescope grep_string<CR>]], desc = 'Telescope grep string' },
{ '<Space>Td', [[<Cmd>Telescope diagnostics<CR>]], desc = 'Telescope workspace diagnostics' },
{ '<Space>Tj', [[<Cmd>Telescope jumplist<CR>]], desc = 'Telescope jumplist' },
{ '<Space>Tr', [[<Cmd>Telescope resume<CR>]], desc = 'Telescope resume' },
}
}

View file

@ -0,0 +1,9 @@
snippet ctrhandl
[Http${1:Post}]
[OpenApiOperation("${2}", "${3}", "")]
public async Task<${4:${2}Response}> ${5:$2}(
${6:${2}Request} request)
{
return await _vizitPhpRpcProducerService
.SendAsync<${6}Request, ${4}Response>(request);
}