From 96228d6483b1e69195a0d8be2171864e6ed6a1b1 Mon Sep 17 00:00:00 2001 From: Nami Lauckner Date: Thu, 14 May 2026 20:06:00 +0200 Subject: [PATCH] things --- after/plugin/alpha.lua | 29 ----------------------------- after/plugin/lsp.lua | 6 +++--- after/plugin/oil.lua | 5 +++++ lua/nami/lazy.lua | 3 --- lua/nami/remap.lua | 5 ++++- 5 files changed, 12 insertions(+), 36 deletions(-) diff --git a/after/plugin/alpha.lua b/after/plugin/alpha.lua index 99b7558..d6e3f33 100644 --- a/after/plugin/alpha.lua +++ b/after/plugin/alpha.lua @@ -1,8 +1,5 @@ local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") --- local icons = require("user.utils").icons --- local utils = require("user.utils") -local datetime = os.date(" %H:%M. ") local num_plugins_loaded = require("lazy").stats().loaded dashboard.section.header.val = require("nami.utils.headers") @@ -14,21 +11,11 @@ dashboard.section.buttons.val = { " Recent Files", "Telescope oldfiles" ), - dashboard.button( - "f", - " Find", - " pf" - ), dashboard.button( "e", " Explorer", "Oil" ), - dashboard.button( - "c", - " Neovim config", - "e ~/.config/nvim | cd %:p:h" - ), dashboard.button("l", " Lazy", "Lazy"), dashboard.button("q", " Quit NVIM", ":qa"), } @@ -39,22 +26,8 @@ local footer = { opts = { position = "center", hl = "Comment" }, } --- local bottom_section = { --- type = "text", --- val = "Hi " --- .. utils.get_user() --- .. "," --- .. " It's" --- .. datetime --- .. "How are you doing today?", --- opts = { --- position = "center", --- }, --- } - local section = { header = dashboard.section.header, - -- bottom_section = bottom_section, buttons = dashboard.section.buttons, footer = footer, } @@ -66,8 +39,6 @@ local opts = { { type = "padding", val = 2 }, section.buttons, { type = "padding", val = 1 }, - -- section.bottom_section, - -- { type = "padding", val = 1 }, section.footer, }, } diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index dad3624..2545204 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -44,16 +44,16 @@ lsp.set_preferences({ sign_icons = {} }) +local builtin = require('telescope.builtin') +vim.keymap.set("n", "gd", builtin.lsp_definitions, {}) + lsp.on_attach(function(client, bufnr) lsp.default_keymaps({ buffer = bufnr }) local opts = { buffer = bufnr, remap = false } - local builtin = require('telescope.builtin') - vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts) vim.keymap.set("n", "gd", builtin.lsp_definitions, {}) - vim.keymap.set("n", "gd", builtin.lsp_definitions, {}) vim.keymap.set('n', 'cf', builtin.lsp_incoming_calls) vim.keymap.set("n", "vws", function() vim.lsp.buf.workspace_symbol() end, opts) vim.keymap.set("n", "vd", function() vim.diagnostic.open_float() end, opts) diff --git a/after/plugin/oil.lua b/after/plugin/oil.lua index e69de29..d52cb60 100644 --- a/after/plugin/oil.lua +++ b/after/plugin/oil.lua @@ -0,0 +1,5 @@ +require("oil").setup({ + view_options = { + show_hidden = true + } +}) diff --git a/lua/nami/lazy.lua b/lua/nami/lazy.lua index e470e9d..7d0a1fa 100755 --- a/lua/nami/lazy.lua +++ b/lua/nami/lazy.lua @@ -46,9 +46,6 @@ local plugins = { -- "echasnovski/mini.align", { 'stevearc/oil.nvim', - ---@module 'oil' - ---@type oil.SetupOpts - opts = {}, -- Optional dependencies dependencies = { { "nvim-mini/mini.icons", opts = {} } }, -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons diff --git a/lua/nami/remap.lua b/lua/nami/remap.lua index 1cb6dff..f0108f0 100644 --- a/lua/nami/remap.lua +++ b/lua/nami/remap.lua @@ -5,11 +5,15 @@ vim.cmd("command! ON ObsidianNew") -- Macros +vim.keymap.set("t", "", "") +-- tnoremap + vim.keymap.set("n", "c", ":w:!cargorun") -- vim.keymap.set("n", "pv", vim.cmd.Ex) vim.keymap.set("n", "pv", "Oil", { desc = "Open parent directory" }) vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) +vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) vim.keymap.set("v", "J", ":m '>+1gv=gv") vim.keymap.set("v", "K", ":m '<-2gv=gv") @@ -45,7 +49,6 @@ end) -- vim.keymap.set("n", "j", "lprevzz") vim.keymap.set("n", "s", ":%s/\\<\\>//gI") -vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) for _, mode in ipairs({ "n", "v", "i" }) do vim.keymap.set(mode, "", function() end)