From b587626f7f0d15f2ae14e53bc4fd43518ac0b7cc Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 6 Jan 2025 14:36:36 -0600 Subject: [PATCH] nvim updates --- home/private_dot_config/nvim/lua/config/lazy.lua | 3 ++- home/private_dot_config/nvim/lua/config/options.lua | 7 ++++++- home/private_dot_config/nvim/lua/plugins/builtins.lua | 11 +++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/home/private_dot_config/nvim/lua/config/lazy.lua b/home/private_dot_config/nvim/lua/config/lazy.lua index 0e2155f..a3e308b 100644 --- a/home/private_dot_config/nvim/lua/config/lazy.lua +++ b/home/private_dot_config/nvim/lua/config/lazy.lua @@ -32,8 +32,9 @@ require("lazy").setup({ { import = "plugins.language.misc" }, { import = "plugins.language.nim" }, { import = "plugins.language.nix" }, - { import = "plugins.language.nu" }, + require("util").if_exe("nu", { { import = "plugins.language.nu" } }), { import = "plugins.language.python" }, + -- { import = "plugins.language.roc" }, { import = "plugins.language.rust" }, { import = "plugins.language.shell" }, diff --git a/home/private_dot_config/nvim/lua/config/options.lua b/home/private_dot_config/nvim/lua/config/options.lua index 3df1cd3..6270f8e 100644 --- a/home/private_dot_config/nvim/lua/config/options.lua +++ b/home/private_dot_config/nvim/lua/config/options.lua @@ -2,7 +2,8 @@ vim.opt.listchars = { tab = "│→", extends = "⟩", precedes = "⟨", - trail = "·", + -- trail = "·", + trail = "␣", nbsp = "␣", } vim.opt.foldenable = false @@ -20,3 +21,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { vim.g.zig_fmt_autosave = 0 vim.lsp.set_log_level("off") + +vim.api.nvim_create_user_command("Shrug", function() + vim.api.nvim_put({ "¯\\_(ツ)_/¯" }, "", false, true) +end, {}) diff --git a/home/private_dot_config/nvim/lua/plugins/builtins.lua b/home/private_dot_config/nvim/lua/plugins/builtins.lua index cb89945..c2ebeba 100644 --- a/home/private_dot_config/nvim/lua/plugins/builtins.lua +++ b/home/private_dot_config/nvim/lua/plugins/builtins.lua @@ -24,4 +24,15 @@ return { }) end, }, + { + "saghen/blink.cmp", + opts = { + -- 'default' for mappings similar to built-in completion + -- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate) + -- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept + -- see the "default configuration" section below for full documentation on how to define + -- your own keymap. + keymap = { preset = "default" }, + }, + }, }