Compare commits
No commits in common. "444459e7854d19167555cd06d96468a3e7fdd8d4" and "bd6ccb9798e422a463e010b4abc93f4bea1b1422" have entirely different histories.
444459e785
...
bd6ccb9798
|
@ -4,6 +4,3 @@ require("plugin_manager")
|
||||||
require("interface")
|
require("interface")
|
||||||
require("languages")
|
require("languages")
|
||||||
require("tabbing")
|
require("tabbing")
|
||||||
require("keybinds")
|
|
||||||
|
|
||||||
require("repl_cfg")
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-- Interface settings
|
-- Interface settings
|
||||||
-- Set preferred colour scheme/background colour here; it will be substituted below
|
-- Set preferred colour scheme here; it will be substituted below
|
||||||
local colours = "sourcerer"
|
local colours = "sourcerer"
|
||||||
|
|
||||||
-- Show line numbers
|
-- Show line numbers
|
||||||
|
@ -10,6 +10,6 @@ vim.wo.number = true
|
||||||
-- but true-colour otherwise
|
-- but true-colour otherwise
|
||||||
vim.o.termguicolors = (os.getenv("TERM") ~= "linux")
|
vim.o.termguicolors = (os.getenv("TERM") ~= "linux")
|
||||||
|
|
||||||
vim.o.background = background
|
vim.o.background = "dark"
|
||||||
vim.cmd("syntax on")
|
vim.cmd("syntax on")
|
||||||
vim.cmd(string.gsub("colorscheme ", "$", colours))
|
vim.cmd(string.gsub("colorscheme ", "$", colours))
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
-- Keybinds
|
|
||||||
--
|
|
||||||
local map = vim.api.nvim_set_keymap
|
|
||||||
local noremap = { noremap = true }
|
|
||||||
|
|
||||||
-- Map leader key to <Space>
|
|
||||||
-- map("n", "<Space>", "", {})
|
|
||||||
vim.g.mapleader = "\\" -- double slash because single is escape
|
|
||||||
-- Default leader key is \
|
|
||||||
|
|
||||||
-- Repl.nvim keybinds
|
|
||||||
--
|
|
||||||
map("n", "<leader>r", "<Plug>(ReplSend)", {})
|
|
||||||
map("n", "<leader>rr", "<Plug>(ReplSendLine)", {})
|
|
||||||
map("v", "<leader>r", "<Plug>(ReplSend)", {})
|
|
|
@ -3,11 +3,8 @@
|
||||||
-- ALE settings
|
-- ALE settings
|
||||||
-- Which linters to use
|
-- Which linters to use
|
||||||
vim.g.ale_linters = {
|
vim.g.ale_linters = {
|
||||||
["java"] = {"javac"},
|
["python"] = {"pycodestyle", "pylint"},
|
||||||
["python"] = {"pycodestyle", "pydocstyle", "bandit", "mypy", "vulture"},
|
|
||||||
["lua"] = {"luac", "luacheck"},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- When to run linters
|
-- When to run linters
|
||||||
vim.g.ale_lint_on_text_changed = 1
|
vim.g.ale_lint_on_text_changed = 1
|
||||||
vim.g.ale_lint_on_insert_leave = 0
|
vim.g.ale_lint_on_insert_leave = 0
|
||||||
|
@ -32,4 +29,3 @@ vim.g.ale_completion_max_suggestions = 6
|
||||||
-- zig.vim config
|
-- zig.vim config
|
||||||
-- Do not autoformat code on save
|
-- Do not autoformat code on save
|
||||||
vim.g.zig_fmt_autosave = 0
|
vim.g.zig_fmt_autosave = 0
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ return require("packer").startup(function()
|
||||||
|
|
||||||
-- Language support
|
-- Language support
|
||||||
-- Zig
|
-- Zig
|
||||||
use "ziglang/zig.vim"
|
use {"ziglang/zig.vim", ft={"zig"}}
|
||||||
-- Odin
|
-- Odin
|
||||||
use {"Tetralux/odin.vim", ft={"odin"}}
|
use {"Tetralux/odin.vim", ft={"odin"}}
|
||||||
-- Pony
|
-- Pony
|
||||||
|
@ -20,9 +20,6 @@ return require("packer").startup(function()
|
||||||
-- Pencil, for writing prose
|
-- Pencil, for writing prose
|
||||||
use "reedes/vim-pencil"
|
use "reedes/vim-pencil"
|
||||||
|
|
||||||
-- REPL, for, uh, REPLs
|
|
||||||
use "https://gitlab.com/HiPhish/repl.nvim.git"
|
|
||||||
|
|
||||||
-- Colour schemes
|
-- Colour schemes
|
||||||
use "nightsense/cosmic_latte"
|
use "nightsense/cosmic_latte"
|
||||||
use "scheakur/vim-scheakur"
|
use "scheakur/vim-scheakur"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
-- Configuration for repl.nvim's REPLs
|
|
||||||
|
|
||||||
-- REPL setup
|
|
||||||
vim.g.repl = {
|
|
||||||
["python"] = {["syntax"] = "python"},
|
|
||||||
["racket"] = {["syntax"] = "scheme"},
|
|
||||||
["lua"] = {["syntax"] = "lua"}
|
|
||||||
}
|
|
Loading…
Reference in New Issue