visual changes, addet fancy cmd-input and changed some of the notification styles.. Also revamped lsp icons to match notify (except for errors - I like to shit myself with )
This commit is contained in:
parent
a76e973992
commit
8135fbe32f
4 changed files with 62 additions and 2 deletions
|
@ -15,6 +15,9 @@ map("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
|||
map("n", "<S-c>", "gcc", { desc = "comment toggle", remap = true })
|
||||
map("v", "<S-c>", "gc", { desc = "comment toggle", remap = true })
|
||||
|
||||
-- ─< cmd line >────────────────────────────────────────────────────────────────────────
|
||||
vim.api.nvim_set_keymap("n", ":", "<cmd>FineCmdline<CR>", { noremap = true })
|
||||
|
||||
-- ─< Terminal >────────────────────────────────────────────────────────────────────────
|
||||
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
|
||||
|
||||
|
|
41
lua/pika/plugins/cmd-line.lua
Normal file
41
lua/pika/plugins/cmd-line.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
"VonHeikemen/fine-cmdline.nvim",
|
||||
dependencies = {
|
||||
{ "MunifTanjim/nui.nvim" },
|
||||
},
|
||||
config = function()
|
||||
require("fine-cmdline").setup({
|
||||
cmdline = {
|
||||
enable_keymaps = true,
|
||||
smart_history = true,
|
||||
prompt = ": ",
|
||||
},
|
||||
popup = {
|
||||
position = {
|
||||
row = "10%",
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = "60%",
|
||||
},
|
||||
border = {
|
||||
style = "rounded",
|
||||
},
|
||||
win_options = {
|
||||
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
|
||||
},
|
||||
},
|
||||
hooks = {
|
||||
before_mount = function(input)
|
||||
-- code
|
||||
end,
|
||||
after_mount = function(input)
|
||||
-- code
|
||||
end,
|
||||
set_keymaps = function(imap, feedkeys)
|
||||
-- code
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
|
@ -50,7 +50,7 @@ return {
|
|||
|
||||
-- Change the Diagnostic symbols in the sign column (gutter)
|
||||
-- (not in youtube nvim video)
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
|
|
|
@ -4,9 +4,25 @@ return {
|
|||
require("notify").setup({
|
||||
stages = "fade_in_slide_out",
|
||||
background_colour = "FloatShadow",
|
||||
max_width = 60,
|
||||
timeout = 2750,
|
||||
render = "compact",
|
||||
-- opacity = 75,
|
||||
-- Minimum/Maximum width for notification windows
|
||||
minimum_width = 30,
|
||||
maximum_width = 60,
|
||||
|
||||
-- Function called when a new window is opened, use for changing win settings/config
|
||||
on_open = nil,
|
||||
|
||||
-- Function called when a window is closed
|
||||
on_close = nil,
|
||||
icons = {
|
||||
ERROR = "", -- alternate symbol
|
||||
WARN = "",
|
||||
INFO = "",
|
||||
DEBUG = "",
|
||||
TRACE = "",
|
||||
},
|
||||
})
|
||||
vim.notify = require("notify")
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue