diff --git a/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc b/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc index a4aa0c7..55a8192 100644 --- a/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc +++ b/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc @@ -1,6 +1,6 @@ # vim: filetype=neomuttrc # muttrc file for account david.julien@centrale-marseille.fr -set realname = "David JULIEN" +set realname = "Smecta" set from = "david.julien@centrale-marseille.fr" set sendmail = "msmtp -a david.julien@centrale-marseille.fr" alias me david.julien diff --git a/.config/nvim/lua/plugin/cmp.lua b/.config/nvim/lua/plugin/cmp.lua index 92e29b2..c12ce81 100644 --- a/.config/nvim/lua/plugin/cmp.lua +++ b/.config/nvim/lua/plugin/cmp.lua @@ -17,6 +17,35 @@ end -- If you want insert `(` after select function or method item cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } })) +-- Custom item icons +local icons = { + Class = "", + Color = "", + Constant = "µ", + Constructor = "", + Enum = "", + EnumMember = "", + Event = "", + Field = "", + File = "", + Folder = "", + Function = "", + Keyword = "", + Interface = "", + Method = "", + Module = "", + Operator = "", + Property = "", + Reference = "", + Snippet = "", + Struct = "", + Text = "", + TypeParameter = "", + Unit = "", + Value = "", + Variable = "", +} + cmp.setup { completion = { autocomplete = false @@ -33,6 +62,8 @@ cmp.setup { }, formatting = { format = function(entry, vim_item) + vim_item.kind = string.format("%s %s", icons[vim_item.kind], + vim_item.kind) vim_item.menu = ({ nvim_lsp = "[lsp]", nvim_lua = "[nvim]", @@ -79,5 +110,8 @@ cmp.setup { fallback() end end, { "i", "s" }), - } + }, + view = { + entries = {name = 'custom', selection_order = 'near_cursor' } + }, } diff --git a/.config/nvim/lua/plugin/lsp_config.lua b/.config/nvim/lua/plugin/lsp_config.lua index fb00539..e593c90 100644 --- a/.config/nvim/lua/plugin/lsp_config.lua +++ b/.config/nvim/lua/plugin/lsp_config.lua @@ -3,8 +3,6 @@ -- License : GPLv3 -- Description : neovim lsp config file -local M = {} - vim.fn.sign_define( "DiagnosticSignError", { @@ -37,41 +35,3 @@ vim.fn.sign_define( numhl = "DiagnosticSignInfo" } ) - -M.icons = { - Class = "  ", - Color = "  ", - Constant = " µ ", - Constructor = "  ", - Enum = "  ", - EnumMember = "  ", - Event = "  ", - Field = "  ", - File = "  ", - Folder = "  ", - Function = "  ", - Keyword = "  ", - Interface = "  ", - Method = "  ", - Module = "  ", - Operator = "  ", - Property = "  ", - Reference = "  ", - Snippet = "  ", - Struct = "  ", - Text = "  ", - TypeParameter = "  ", - Unit = "  ", - Value = "  ", - Variable = "  ", -} - - -function M.setup() - local kinds = vim.lsp.protocol.CompletionItemKind - for i, kind in ipairs(kinds) do - kinds[i] = M.icons[kind] or kind - end -end - -return M diff --git a/.config/nvim/lua/plugin/luasnip.lua b/.config/nvim/lua/plugin/luasnip.lua index c5415c1..9fb6719 100644 --- a/.config/nvim/lua/plugin/luasnip.lua +++ b/.config/nvim/lua/plugin/luasnip.lua @@ -74,10 +74,12 @@ end -- Returns a snippet_node wrapped around an insert_node whose initial -- text value is set to the current date in the desired format. local function date_input(fmt) - local fmt = fmt or "%Y-%m-%d" - return sn(nil, i(1, os.date(fmt))) + local format = fmt or "%Y-%m-%d" + return sn(nil, i(1, os.date(format))) end +local copy = utils.copy + -- snippets are added via ls.add_snippets(filetype, snippets[, opts]), where -- opts may specify the `type` of the snippets ("snippets" or "autosnippets", -- for snippets that should expand directly after the trigger is typed). diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua index dddeee8..9ab4a3b 100644 --- a/.config/nvim/lua/plugin/packer.lua +++ b/.config/nvim/lua/plugin/packer.lua @@ -58,7 +58,7 @@ return require("packer").startup(function() requires = { "neovim/nvim-lspconfig", config = function() - require("plugin.lsp_config").setup() end + require("plugin.lsp_config") end }, config = function() require("plugin.lsp_installer") end } diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 53e59bf..f4a3d82 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -48,6 +48,9 @@ super + shift + Return super + d dmenu_run -p "run:" +super + p + screenshot + super + shift + {w,z} $BROWSER diff --git a/.local/bin/screenshot b/.local/bin/screenshot new file mode 100755 index 0000000..8c4c684 --- /dev/null +++ b/.local/bin/screenshot @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +if [ "-w" = "$1" ]; then + scrot -e 'xclip -selection clipboard -t image/png -i $f && rm $f' +else + if [ ! "" = "$1" ]; then + dunstify -u "normal" " Wrong parameter. No screenshot taken" && exit 1 + else + scrot -s -e 'xclip -selection clipboard -t image/png -i $f && rm $f' + fi +fi diff --git a/.local/src/astronomy.nvim b/.local/src/astronomy.nvim index 9b46e0f..41edd2a 160000 --- a/.local/src/astronomy.nvim +++ b/.local/src/astronomy.nvim @@ -1 +1 @@ -Subproject commit 9b46e0fa3d2bfca3b376961d822eb5d965da48ed +Subproject commit 41edd2a8502cc6d3be9ad18387e8b3c67d2dd4c3