Skip to content

Commit

Permalink
Update dots
Browse files Browse the repository at this point in the history
  • Loading branch information
h0rv committed Apr 19, 2023
1 parent 338b79d commit f75965a
Show file tree
Hide file tree
Showing 14 changed files with 313 additions and 112 deletions.
2 changes: 2 additions & 0 deletions .newsboat/urls
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ https://nealstephenson.com/index.php?id=353
https://geohot.github.io/blog/feed.xml
# podcasts
https://lexfridman.com/feed/podcast/
# AI
http://blog.samaltman.com/posts.atom # open AI founder
9 changes: 5 additions & 4 deletions i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ for_window [class="PulseAudio Volume Control"] floating enable
for_window [title="Volume Control"] floating enable
for_window [class="pavucontrol"] floating enable
for_window [class="NetworkManager"] floating enable
for_window [class="xpad"] floating enable
for_window [class="nm-applet"] floating enable
for_window [class="zoom"] floating enable
for_window [class="feh"] floating enable
Expand Down Expand Up @@ -156,12 +157,13 @@ mode "$mode_gaps_outer" {
bindsym $mod+Return exec kitty

# start new terminal instance
bindsym $mod+Shift+Return exec alacritty --working-directory $PWD &
# bindsym $mod+Shift+Return exec alacritty --working-directory $PWD &

# Start app picker
exec --no-startup-id ulauncher &

# sticky note
exec --no-startup-id sleek &
# Toggle open sticker notes (xpad)
# bindsym $mod+s exec xpad -t

# kill focused window
bindsym $mod+Shift+q kill
Expand Down Expand Up @@ -238,7 +240,6 @@ bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
## App shortcuts
# bindsym $mod+w exec /usr/bin/firefox
bindsym $mod+n exec nautilus
bindsym $mod+s exec spotify


##########################################
Expand Down
7 changes: 7 additions & 0 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ disable_ligatures cursor

window_padding_width 0 16

allow_remote_control yes

remember_window_size no
initial_window_width 1080
initial_window_height 720

shell fish

map Alt+h neighboring_window left
map Alt+j neighboring_window down
map Alt+k neighboring_window up
map Alt+l neighboring_window right

88 changes: 47 additions & 41 deletions nvim/after/plugin/bufferline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,77 +43,83 @@ set('n', '<A-p>', '<Cmd>BufferPick<CR>', opts)
-- :BarbarDisable - very bad command, should never be used

-- Set barbar's options
require('bufferline').setup {
-- -- Set barbar's options
require 'bufferline'.setup {
-- Enable/disable animations
animation = true,

-- Enable/disable auto-hiding the tab bar when there is a single buffer
auto_hide = true,

-- Enable/disable current/total tabpages indicator (top right corner)
tabpages = true,

-- Enable/disable close button
closable = false,
tabpages = false,

-- Enables/disable clickable tabs
-- - left-click: go to buffer
-- - middle-click: delete buffer
clickable = false,

-- Enables / disables diagnostic symbols
diagnostics = {
-- you can use a list
{ enabled = false, icon = '' }, -- ERROR
{ enabled = false }, -- WARN
{ enabled = false }, -- INFO
{ enabled = false }, -- HINT

-- OR `vim.diagnostic.severity`
[vim.diagnostic.severity.ERROR] = { enabled = false, icon = '' },
[vim.diagnostic.severity.WARN] = { enabled = false },
[vim.diagnostic.severity.INFO] = { enabled = false },
[vim.diagnostic.severity.HINT] = { enabled = false },
},
clickable = true,

-- Excludes buffers from the tabline
-- exclude_ft = { 'javascript' },
-- exclude_name = { 'package.json' },

-- A buffer to this direction will be focused (if it exists) when closing the current buffer.
-- Valid options are 'left' (the default) and 'right'
focus_on_close = 'left',

-- Hide inactive buffers and file extensions. Other options are `alternate`, `current`, and `visible`.
hide = { extensions = false, inactive = false },
hide = { extensions = true, inactive = false },

-- Disable highlighting alternate buffers
highlight_alternate = true,
highlight_alternate = false,

-- Disable highlighting file icons in inactive buffers
highlight_inactive_file_icons = false,

-- Enable highlighting visible buffers
highlight_visible = true,

-- Enable/disable icons
-- if set to 'numbers', will show buffer index in the tabline
-- if set to 'both', will show buffer index and icons in the tabline
icons = false,

-- If set, the icon color will follow its corresponding buffer
-- highlight group. By default, the Buffer*Icon group is linked to the
-- Buffer* group (see Highlighting below). Otherwise, it will take its
-- default value as defined by devicons.
icon_custom_colors = false,

-- Configure icons on the bufferline.
icon_separator_active = '',
icon_separator_inactive = '',
icon_close_tab = '',
icon_close_tab_modified = '',
icon_pinned = '',
icons = {
-- Configure the base icons on the bufferline.
buffer_index = false,
buffer_number = false,
-- button = '',
button = '',
-- Enables / disables diagnostic symbols
diagnostics = {
[vim.diagnostic.severity.ERROR] = { enabled = false, icon = '' },
[vim.diagnostic.severity.WARN] = { enabled = false },
[vim.diagnostic.severity.INFO] = { enabled = false },
[vim.diagnostic.severity.HINT] = { enabled = false },
},
filetype = {
-- Sets the icon's highlight group.
-- If false, will use nvim-web-devicons colors
custom_colors = false,
-- Requires `nvim-web-devicons` if `true`
enabled = false,
},
separator = { left = '', right = '' },
-- Configure the icons on the bufferline when modified or pinned.
-- Supports all the base icon options.
modified = { button = '' },
pinned = { button = '' },
-- Configure the icons on the bufferline based on the visibility of a buffer.
-- Supports all the base icon options, plus `modified` and `pinned`.
alternate = { filetype = { enabled = false } },
current = { buffer_index = false },
inactive = { button = '' },
-- inactive = { button = '×' },
visible = { modified = { buffer_number = false } },
},

-- If true, new buffers will be inserted at the start/end of the list.
-- Default is to insert after current buffer.
insert_at_end = true,
insert_at_start = false,

-- Sets the maximum padding width with which to surround each tab
maximum_padding = 1,
maximum_padding = 2,

-- Sets the minimum padding width with which to surround each tab
minimum_padding = 1,
Expand Down
42 changes: 42 additions & 0 deletions nvim/after/plugin/catppuccin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
require('catppuccin').setup({
flavour = 'mocha', -- latte, frappe, macchiato, mocha
background = { -- :h background
light = 'latte',
dark = 'mocha',
},
transparent_background = false,
show_end_of_buffer = false, -- show the '~' characters after the end of buffers
term_colors = false,
dim_inactive = {
enabled = false,
shade = 'dark',
percentage = 0.15,
},
no_italic = true, -- Force no italic
no_bold = false, -- Force no bold
styles = {
comments = { 'italic' },
conditionals = { 'italic' },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
},
color_overrides = {},
custom_highlights = {},
integrations = {
cmp = true,
nvimtree = true,
telescope = true,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})

-- setup must be called before loading
vim.cmd.colorscheme 'catppuccin'
4 changes: 2 additions & 2 deletions nvim/after/plugin/nvim_tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require("nvim-tree").setup {
debounce_delay = 15,
width = 30,
hide_root_folder = false,
side = "left",
side = "right",
preserve_window_proportions = false,
number = false,
relativenumber = false,
Expand All @@ -44,7 +44,7 @@ require("nvim-tree").setup {
},
},
float = {
enable = true,
enable = false,
quit_on_focus_loss = true,
open_win_config = {
relative = "editor",
Expand Down
21 changes: 11 additions & 10 deletions nvim/after/plugin/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ pcall(require('telescope').load_extension, 'fzf')
local builtin = require('telescope.builtin')
local set = vim.keymap.set

set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
set('n', '<leader><space>', require('telescope.builtin').buffers, { desc = '[ ] Find existing buffers' })
set('n', '<leader>/', function()
-- You can pass additional configuration to telescope to change theme, layout, etc.
require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
winblend = 10,
previewer = false,
})
end, { desc = '[/] Fuzzily search in current buffer]' })
set('n', '<leader>?', builtin.oldfiles, { desc = '[?] Find recently opened files' })
set('n', '<leader><space>', builtin.buffers, { desc = '[ ] Find existing buffers' })

set('n', '<leader>sf', builtin.find_files, { desc = '[S]earch [F]iles' })
set('n', '<leader>sf',
function()
builtin.find_files({
hidden = true,
no_ignore = true,
no_ignore_parent = true
})
end, { desc = '[S]earch [F]iles' })
set('n', '<leader>sgf', builtin.git_files, { desc = '[S]earch [G]it [F]iles' })
set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [H]elp' })
set('n', '<leader>sw', builtin.grep_string, { desc = '[S]earch current [W]ord' })
Expand Down
114 changes: 114 additions & 0 deletions nvim/after/plugin/whichkey.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
local wk = require("which-key")

wk.setup {
plugins = {
marks = true, -- shows a list of your marks on ' and `
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
-- the presets plugin, adds help for a bunch of default keybindings in Neovim
-- No actual key bindings are created
spelling = {
enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
suggestions = 20, -- how many suggestions should be shown in the list?
},
presets = {
operators = true, -- adds help for operators like d, y, ...
motions = true, -- adds help for motions
text_objects = true, -- help for text objects triggered after entering an operator
windows = true, -- default bindings on <c-w>
nav = true, -- misc bindings to work with windows
z = true, -- bindings for folds, spelling and others prefixed with z
g = true, -- bindings for prefixed with g
},
},
-- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above
operators = { gc = "Comments" },
key_labels = {
-- override the label used to display some keys. It doesn't effect WK in any other way.
-- For example:
-- ["<space>"] = "SPC",
-- ["<cr>"] = "RET",
-- ["<tab>"] = "TAB",
},
motions = {
count = true,
},
icons = {
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
separator = "", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group
},
popup_mappings = {
scroll_down = "<c-d>", -- binding to scroll down inside the popup
scroll_up = "<c-u>", -- binding to scroll up inside the popup
},
window = {
border = "none", -- none, single, double, shadow
position = "bottom", -- bottom, top
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]
padding = { 1, 2, 1, 2 }, -- extra window padding [top, right, bottom, left]
winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent
},
layout = {
height = { min = 4, max = 25 }, -- min and max height of the columns
width = { min = 20, max = 50 }, -- min and max width of the columns
spacing = 3, -- spacing between columns
align = "left", -- align columns left, center or right
},
ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "^:", "^ ", "^call ", "^lua " }, -- hide mapping boilerplate
show_help = true, -- show a help message in the command line for using WhichKey
show_keys = true, -- show the currently pressed key and its label as a message in the command line
triggers = "auto", -- automatically setup triggers
-- triggers = {"<leader>"} -- or specifiy a list manually
-- list of triggers, where WhichKey should not wait for timeoutlen and show immediately
triggers_nowait = {
-- marks
"`",
"'",
"g`",
"g'",
-- registers
'"',
"<c-r>",
-- spelling
"z=",
},
triggers_blacklist = {
-- list of mode / prefixes that should never be hooked by WhichKey
-- this is mostly relevant for keymaps that start with a native binding
i = { "j", "k" },
v = { "j", "k" },
},
-- disable the WhichKey popup for certain buf types and file types.
-- Disabled by deafult for Telescope
disable = {
buftypes = {},
filetypes = {},
},
}

wk.register(
{ -- mappings
-- f = {
-- name = "file", -- optional group name
-- f = { "<cmd>Telescope find_files<cr>", "Find File" }, -- create a binding with label
-- r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File", noremap = false, buffer = 123 }, -- additional options for creating the keymap
-- n = { "New File" }, -- just a label. don't create any mapping
-- e = "Edit File", -- same as above
-- ["1"] = "which_key_ignore", -- special label to hide it in the popup
-- b = { function() print("bar") end, "Foobar" } -- you can also pass functions!
-- },
},
{
-- options
mode = "n", -- NORMAL mode
-- prefix: use "<leader>f" for example for mapping everything related to finding files
-- the prefix is prepended to every mapping part of `mappings`
prefix = "<leader>",
buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
silent = true, -- use `silent` when creating keymaps
noremap = true, -- use `noremap` when creating keymaps
nowait = false, -- use `nowait` when creating keymaps
}
)
2 changes: 1 addition & 1 deletion nvim/after/plugin/zen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ zen_mode.setup {
-- * an absolute number of cells when > 1
-- * a percentage of the width / height of the editor when <= 1
-- * a function that returns the width or the height
width = 120, -- width of the Zen window
width = .8, -- width of the Zen window
height = 0.8, -- height of the Zen window
-- by default, no options are changed for the Zen window
-- uncomment any of the options below, or add other vim.wo options you want to apply
Expand Down
Loading

0 comments on commit f75965a

Please sign in to comment.