diff --git a/init.lua b/init.lua index 85e0d42..a578bd5 100644 --- a/init.lua +++ b/init.lua @@ -13,7 +13,8 @@ local workman = false -- Set font o.guifont = 'IosevkaTermSlab Nerd Font,IosevkaTerm Nerd Font,Iosevka Term Slab,Iosevka:h10:#e-subpixelantialias' -vim.g.neovide_floating_z_height = 1 +g.neovide_floating_z_height = 1 +g.neovide_cursor_smooth_blink = 1 if fn.hostname() == 'tappy' then g.neovide_refresh_rate = 144 end @@ -547,7 +548,9 @@ require('lazy').setup({ capabilities = lspconfig.util.default_config.capabilities, settings = { - java = {}, + java = { + autobuild = { enabled = false }, + }, }, init_options = { @@ -978,7 +981,7 @@ require('lazy').setup({ {'williamboman/mason-lspconfig.nvim', dependencies = {'williamboman/mason.nvim'}, opts = { automatic_installation = true }}, - {'NeogitOrg/neogit', opts = { + {'NeogitOrg/neogit', lazy = false, opts = { disable_context_highlighting = true, integrations = { diffview = true, @@ -987,6 +990,8 @@ require('lazy').setup({ item = {"", ""}, section = {"", ""}, }, + }, keys = { + {'', 'Neogit', { desc = 'Neogit' }} }}, {'rcarriga/nvim-notify', dependencies = {'nvim-telescope/telescope.nvim'}, opts = { stages = 'fade' @@ -1092,6 +1097,7 @@ require('lazy').setup({ g = {'Telescope live_grep', 'Grep'}, G = {function() vim.ui.input({ completion = 'dir' }, function(input) + if not input then return end telescope.builtin.live_grep { search_dirs = {input} } end) end, 'Grep in subdirectory'}, @@ -1106,6 +1112,7 @@ require('lazy').setup({ m = {'Telescope man_pages sections=ALL', 'Man pages'}, [':'] = {'Telescope commands', 'Commands'}, u = {'Telescope undo', 'Undo'}, + ['.'] = {'Telescope resume', 'Resume'}, } } require'telescope'.load_extension('fzf')