diff --git a/nvim/lua/enrique/plugins/osc52.lua b/nvim/lua/enrique/plugins/osc52.lua new file mode 100644 index 0000000..1def210 --- /dev/null +++ b/nvim/lua/enrique/plugins/osc52.lua @@ -0,0 +1,16 @@ +return { + "ojroques/nvim-osc52", + config = function() + require('osc52').setup { + max_length = 0, -- Maximum length of selection (0 for no limit) + silent = false, -- Show message when copied + trim = false, -- Trim surrounding whitespaces before copy + } + + -- Key mappings + vim.keymap.set('n', 'y', require('osc52').copy_operator, {expr = true}) +vim.keymap.set('n', 'yy', 'y_', {remap = true}) +vim.keymap.set('v', 'y', require('osc52').copy_visual) + end, +} + diff --git a/nvim/lua/enrique/plugins/telescope.lua b/nvim/lua/enrique/plugins/telescope.lua index 2ba9fb1..2767010 100644 --- a/nvim/lua/enrique/plugins/telescope.lua +++ b/nvim/lua/enrique/plugins/telescope.lua @@ -35,3 +35,4 @@ return { telescope.load_extension("fzf") end, } + diff --git a/starship.toml b/starship.toml index 4cbf347..79937bb 100644 --- a/starship.toml +++ b/starship.toml @@ -56,12 +56,12 @@ disabled = false # ❯ #  [character] -# success_symbol = "[ 󰊠 ](bold )[  ](bold green)" -# error_symbol = "[ 󰊠 ](bold)[  ](bold red)" -# vimcmd_symbol = "[ 󰊠 ](bold)[  ](bold green)" -success_symbol = "[  ](bold )[  ](bold green)" -error_symbol = "[  ](bold)[  ](bold red)" -vimcmd_symbol = "[  ](bold)[  ](bold green)" +success_symbol = "[ 󰊠 ](bold )[  ](bold green)" +error_symbol = "[ 󰊠 ](bold)[  ](bold red)" +vimcmd_symbol = "[ 󰊠 ](bold)[  ](bold green)" +# success_symbol = "[  ](bold )[  ](bold green)" +# error_symbol = "[  ](bold)[  ](bold red)" +# vimcmd_symbol = "[  ](bold)[  ](bold green)" [git_commit] tag_symbol = " tag "