This commit is contained in:
Henrik Bakken
2024-06-26 19:31:00 +02:00
parent 4fba6843ba
commit 0b54d23c06
3 changed files with 38 additions and 9 deletions
-3
View File
@@ -1,6 +1,3 @@
c.ServerApp.port = 9999 c.ServerApp.port = 9999
c.ServerApp.allow_remote_access = True
c.ServerApp.root_dir = '.' c.ServerApp.root_dir = '.'
c.ServerApp.ip = '0.0.0.0' c.ServerApp.ip = '0.0.0.0'
c.ServerApp.certfile = '/home/hjalmarlucius/.jupyter/mycert.pem'
c.ServerApp.keyfile = '/home/hjalmarlucius/.jupyter/mykey.key'
+5 -6
View File
@@ -1,17 +1,14 @@
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = " " vim.g.maplocalleader = " "
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({
"git", "git",
"clone", "clone",
"--filter=blob:none", "--filter=blob:none",
"--branch=stable",
"https://github.com/folke/lazy.nvim.git", "https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath, lazypath,
}) })
end end
@@ -71,6 +68,7 @@ require("lazy").setup({
local map = vim.keymap.set local map = vim.keymap.set
local opts = { silent = true, noremap = true } local opts = { silent = true, noremap = true }
map({ "n", "v" }, "<CR>", "<cmd>HopWord<cr>", opts) map({ "n", "v" }, "<CR>", "<cmd>HopWord<cr>", opts)
map({ "n", "v" }, "<M-CR>", "<cmd>HopWord<cr>", opts)
end, end,
}, },
{ {
@@ -266,7 +264,7 @@ require("lazy").setup({
"tpope/vim-fugitive", "tpope/vim-fugitive",
config = function() config = function()
local map = vim.keymap.set local map = vim.keymap.set
map("", "<C-g>", "<cmd>vertical Git<cr>:vertical resize 60<cr>", {}) map("", "<C-g>", "<cmd>vertical Git<cr>", {})
map("", "<leader>gB", "<cmd>Git blame<cr>", {}) map("", "<leader>gB", "<cmd>Git blame<cr>", {})
map("", "<leader>gp", "<cmd>Git! push<cr>", {}) map("", "<leader>gp", "<cmd>Git! push<cr>", {})
map("", "<leader>gP", "<cmd>Git! push -f<cr>", {}) map("", "<leader>gP", "<cmd>Git! push -f<cr>", {})
@@ -300,6 +298,7 @@ require("lazy").setup({
numhl = true, numhl = true,
linehl = false, linehl = false,
word_diff = false, word_diff = false,
signs_staged_enable = false,
on_attach = function(bufnr) on_attach = function(bufnr)
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns
+33
View File
@@ -6,9 +6,42 @@
config_version: 2 config_version: 2
settings: settings:
bindings.commands:
global:
normal:
<: tab-move -
<Ctrl+Shift+Tab>: tab-prev
<Ctrl+Tab>: tab-next
<Ctrl+h>: history
<Ctrl+l>: cmd-set-text :open {url:pretty}
<Ctrl+r>: restart
<F10>: config-cycle colors.webpage.darkmode.enabled true false ;; restart
<F11>: config-cycle tabs.position top left
<F12>: view-source
'>': tab-move +
D: tab-close
J: tab-prev
K: tab-next
M: null
d: null
gB: null
gb: null
m: cmd-set-text :quickmark-add {url:pretty} "
pw: spawn --userscript qute-bitwarden
q: null
tm: tab-move
to: tab-focus
wB: null
ø: 'cmd-set-text :'
colors.webpage.darkmode.enabled: colors.webpage.darkmode.enabled:
global: false global: false
content.desktop_capture:
https://meet.google.com: true
content.fullscreen.window:
global: true
content.register_protocol_handler: content.register_protocol_handler:
https://calendar.google.com?cid=%25s: true https://calendar.google.com?cid=%25s: true
tabs.mode_on_change:
global: restore
tabs.position: tabs.position:
global: top global: top