nvim: misc
This commit is contained in:
parent
0e7d94beba
commit
1962cbd3bc
8 changed files with 33 additions and 6 deletions
5
dot_config/nvim/after/ftplugin/java.lua
Normal file
5
dot_config/nvim/after/ftplugin/java.lua
Normal 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)
|
|
@ -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
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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' }
|
||||
|
|
|
@ -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' } },
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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' },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
9
dot_config/nvim/snippets/cs.snippets
Normal file
9
dot_config/nvim/snippets/cs.snippets
Normal 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);
|
||||
}
|
Loading…
Add table
Reference in a new issue