Updating Lynx, nvim and newsboat config. - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 07475f784ba3846094d1545852eac46dd79db095
(DIR) parent 0e63ec7fbeafe16c95dbfd032bdb66d139c46f7e
(HTM) Author: Jay Scott <me@jay.scot>
Date: Tue, 30 Jan 2024 19:43:41 +0000
Updating Lynx, nvim and newsboat config.
Diffstat:
M lynx/config | 3 +++
M newsraft/config | 3 +++
M newsraft/feeds | 1 +
M nvim/init.lua | 64 ++++++++++++++++++++++---------
4 files changed, 53 insertions(+), 18 deletions(-)
---
(DIR) diff --git a/lynx/config b/lynx/config
@@ -7,6 +7,9 @@ DEFAULT_BOOKMARK_FILE:./.config/lynx/bookmarks.html
CHARACTER_SET:utf-8
ASSUME_CHARSET:utf-8
+# image handing
+XLOADIMAGE_COMMAND:link_handler.sh %s &
+
NO_PAUSE:TRUE
MINIMAL_COMMENTS:TRUE
DEFAULT_EDITOR:/usr/bin/vim
(DIR) diff --git a/newsraft/config b/newsraft/config
@@ -3,5 +3,8 @@ set open-in-browser-command ~/bin/link_handler.sh "%l"
set send-user-agent-header true
set clean-database-on-startup true
+set menu-feed-sorting unread-desc
+set menu-item-sorting unread-desc
+
# key bindings
bind f exec "~/bin/link_handler.sh %l"
(DIR) diff --git a/newsraft/feeds b/newsraft/feeds
@@ -88,3 +88,4 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCcjx6m03fZwtRBFn1Cf7kKQ "Za
https://www.youtube.com/feeds/videos.xml?channel_id=UCKBUeKsqzKWSxp4pahxljBw "WildBeare"
https://www.youtube.com/feeds/videos.xml?channel_id=UCcKw8Eg0FfRvhIAnC0cPGAA "Planes, Trains and Everything"
https://www.youtube.com/feeds/videos.xml?channel_id=UCBhQuxcHU3aydk_zTXcbdTg "Steve Marsh"
+https://www.youtube.com/feeds/videos.xml?channel_id=UCkf4VIqu3Acnfzuk3kRIFwA "Gotbletu"
(DIR) diff --git a/nvim/init.lua b/nvim/init.lua
@@ -13,7 +13,7 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
---- plug-ins
+--- plugins
require("lazy").setup({
@@ -60,6 +60,14 @@ require("lazy").setup({
end
},
+ -- comments
+ {
+ 'numToStr/Comment.nvim',
+ config = function()
+ require('Comment').setup()
+ end
+ },
+
-- file fuzzy finding
{
"nvim-telescope/telescope.nvim",
@@ -81,29 +89,49 @@ require("lazy").setup({
--- settings
-vim.opt.termguicolors = true
-vim.opt.number = true
-vim.opt.showmatch = true
-vim.opt.swapfile = false
-vim.opt.ignorecase = true
-vim.opt.spelllang = 'en_gb'
-vim.opt.spell = true
-vim.opt.spelloptions = "camel"
+-- appearance
+vim.opt.number = true
+vim.opt.signcolumn = 'yes'
+vim.opt.colorcolumn = '80'
+vim.opt.termguicolors = true
+
+-- behaviour
+vim.opt.backup = false
+vim.opt.swapfile = false
+vim.opt.showmatch = true
+
+-- spelling
+vim.opt.spell = true
+vim.opt.spelllang = 'en_gb'
+vim.opt.spelloptions = 'camel'
+
+-- search
+vim.opt.hlsearch = true
+vim.opt.incsearch = true
+vim.opt.ignorecase = true
-- indent
-vim.opt.expandtab = true
-vim.opt.shiftwidth = 2
-vim.opt.tabstop = 2
-vim.opt.autoindent = true
-vim.opt.wrap = true
+vim.opt.wrap = false
+vim.opt.tabstop = 2
+vim.opt.expandtab = true
+vim.opt.shiftwidth = 2
+vim.opt.smartindent = true
-- show space and tab characters
-vim.o.list = true
-vim.o.listchars = 'tab:› ,trail:⋅,nbsp:␣'
+vim.o.list = true
+vim.o.listchars = 'tab:› ,trail:⋅,nbsp:␣'
-- map leader to <space>
-vim.keymap.set("n", " ", "<Nop>", { silent = true, remap = false })
-vim.g.mapleader = " "
+vim.keymap.set('n', ' ', '<Nop>', { silent = true, remap = false })
+vim.g.mapleader = ' '
+
+-- indenting
+vim.keymap.set('v', '<', '<gv')
+vim.keymap.set('v', '>', '>gv')
+
+-- comments
+vim.keymap.set('n', '<C-/>', 'gcc', { noremap = false })
+vim.keymap.set('v', '<C-/>', 'gcc', { noremap = false })
-- open file_browser with the path of the current buffer
vim.keymap.set('n', '<leader>ff', ':Telescope file_browser path=%:p:h select_buffer=true<CR>', { noremap = true })