diff --git a/hjalmar-mothership/i3/config b/hjalmar-mothership/i3/config index e4877cd..c69bc9c 100644 --- a/hjalmar-mothership/i3/config +++ b/hjalmar-mothership/i3/config @@ -104,8 +104,10 @@ bindsym $mod+Shift+F6 exec i3-sensible-terminal -e 'ncspot' bindsym $mod+F9 exec --no-startup-id picom -b bindsym $mod+Shift+F9 exec --no-startup-id pkill picom bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" -bindsym $mod+F12 --release exec "xrandr --output DP-0 --mode 5120x1440 --primary" -bindsym $mod+Shift+F12 --release exec "xrandr --output DP-0 --mode 2560x1440 --primary" +bindsym $mod+F11 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option && setxkbmap -layout no -model pc105 -variant nodeadkeys -option caps:escape" +bindsym $mod+Shift+F11 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option && setxkbmap -layout no -model pc105 -variant nodeadkeys -option caps:backspace" +bindsym $mod+F12 exec "xrandr --output DP-0 --mode 5120x1440 --primary" +bindsym $mod+Shift+F12 exec "xrandr --output DP-0 --mode 2560x1440 --primary" bindsym $mod+0 mode "$mode_system" bindsym $mod+z mode "resize" diff --git a/ipython/ipython_config.py b/ipython/ipython_config.py index 0a63669..5a95afc 100644 --- a/ipython/ipython_config.py +++ b/ipython/ipython_config.py @@ -1,13 +1,16 @@ +c.InteractiveShellApp.extensions = ["autoreload"] +c.InteractiveShellApp.exec_lines = ["%autoreload 2"] + ## Use colors for displaying information about objects. Because this information # is passed through a pager (like 'less'), and some pagers get confused with # color codes, this capability can be turned off. # Default: True c.InteractiveShell.color_info = True -c.InteractiveShell.separate_in = '' +c.InteractiveShell.separate_in = "" ## Set the color scheme (NoColor, Neutral, Linux, or LightBG). -c.InteractiveShell.colors = 'Linux' -c.TerminalInteractiveShell.colors = 'Linux' +# c.InteractiveShell.colors = "Linux" +# c.TerminalInteractiveShell.colors = "Linux" ## Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, # Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a @@ -17,7 +20,7 @@ c.TerminalInteractiveShell.confirm_exit = False ## The name or class of a Pygments style to use for syntax highlighting. To see # available styles, run `pygmentize -L styles`. # Default: traitlets.Undefined -c.TerminalInteractiveShell.highlighting_style = 'monokai' +# c.TerminalInteractiveShell.highlighting_style = 'monokai' ## Use 24bit colors instead of 256 colors in prompt highlighting. If your # terminal supports true color, the following command should print 'TRUECOLOR' diff --git a/nvim/init.lua b/nvim/init.lua index cd8df62..f5d5266 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -17,8 +17,8 @@ vim.g.BASH_Ctrl_l = "off" -- looks opt.termguicolors = true opt.cmdheight = 2 -opt.background = "light" -vim.cmd "colorscheme tokyonight" +opt.background = "dark" +vim.cmd "colorscheme embark" opt.listchars = "tab:→ ,trail:·,extends:↷,precedes:↶,nbsp:+,eol:↵" opt.list = true -- Show listchars opt.showtabline = 2 @@ -37,14 +37,14 @@ opt.splitright = true -- Put new windows right of current opt.hidden = true -- Enable background buffers opt.wrap = false -- Disable line wrap opt.number = true -- Show line numbers -opt.relativenumber = false -- Relative line numbers +opt.relativenumber = true -- Relative line numbers opt.cursorline = false -- Highlight current line opt.switchbuf = "useopen" -- Use existing window if buffer is already open opt.colorcolumn = "88" -- tabs opt.expandtab = true -- Use spaces instead of tabs -opt.smartindent = true -- Insert indents automatically +opt.smartindent = false -- Avoid fucking with comment indents opt.shiftround = true -- Round indent opt.tabstop = 2 -- Number of spaces tabs count for opt.shiftwidth = 2 -- Size of an indent @@ -198,8 +198,8 @@ require("packer").startup {function(use) noremap = true, buffer = true, - ["n "] = { expr = true, [[&diff ? "]c" : "lua require("gitsigns.actions").next_hunk()"]]}, - ["n "] = { expr = true, [[&diff ? "[c" : "lua require("gitsigns.actions").prev_hunk()"]]}, + ["n "] = { expr = true, [[&diff ? "]c" : "lua require('gitsigns.actions').next_hunk()"]]}, + ["n "] = { expr = true, [[&diff ? "[c" : "lua require('gitsigns.actions').prev_hunk()"]]}, ["n s"] = [[lua require("gitsigns").stage_hunk()]], ["v s"] = [[lua require("gitsigns").stage_hunk({vim.fn.line("."), vim.fn.line("v")})]], @@ -232,7 +232,7 @@ require("packer").startup {function(use) -- theme use {"folke/tokyonight.nvim", config = function() - vim.g.tokyonight_style = "day" + vim.g.tokyonight_style = "night" end } @@ -335,7 +335,7 @@ require("packer").startup {function(use) requires = {"kyazdani42/nvim-web-devicons"}, config = function() require("lualine").setup { - options = { theme = "tokyonight" }, + options = { theme = "molokai" }, extensions = { "fugitive", }, @@ -534,6 +534,7 @@ require("packer").startup {function(use) -- other if client.resolved_capabilities.goto_definition then bmap(bufnr, "n", "gd", ":Lspsaga preview_definition", opts) + bmap(bufnr, "n", "gD", ":lua vim.lsp.buf.definition()", opts) end if client.resolved_capabilities.find_references then bmap(bufnr, "n", "gh", ":Lspsaga lsp_finder", opts) @@ -547,7 +548,9 @@ require("packer").startup {function(use) if client.resolved_capabilities.document_formatting or client.resolved_capabilities.document_range_formatting then vim.api.nvim_command [[augroup Format]] vim.api.nvim_command [[autocmd! * ]] - vim.api.nvim_command [[autocmd BufWritePost lua vim.lsp.buf.formatting_seq_sync()]] + vim.api.nvim_command [[autocmd BufWritePost python lua vim.lsp.buf.formatting_seq_sync()]] + vim.api.nvim_command [[autocmd BufWritePost markdown lua vim.lsp.buf.formatting_seq_sync()]] + vim.api.nvim_command [[autocmd BufWritePost yaml lua vim.lsp.buf.formatting_seq_sync()]] vim.api.nvim_command [[augroup END]] end end @@ -571,9 +574,6 @@ require("packer").startup {function(use) exec = "" }, } - -- terminal TODO fix and replace with Fterm - -- map("n", "", ":Lspsaga open_floaterm", opts) - -- map("i", "", [[:lua require('lspsaga.floaterm').close_float_terminal()]], opts) local nvim_lsp = require("lspconfig") -- sudo npm install -g yaml-language-server nvim_lsp.yamlls.setup{