1
Fork 0

Fixed some hydra stuff, added formatopt to config and fixed typo in

purs.lua
This commit is contained in:
Matei Adriel 2023-03-16 17:39:46 +01:00
parent afb835493f
commit 9bbe637131
No known key found for this signature in database
5 changed files with 12 additions and 7 deletions

View file

@ -164,7 +164,7 @@ Idris keybinds live in the `<leader>I` namespace.
| Keybind | Description | | Keybind | Description |
| ---------- | ------------------- | | ---------- | ------------------- |
| C-w | Enter [w]indow mode | | C-W | Enter [w]indow mode |
| \<leader>v | Enter [v]enn mode | | \<leader>v | Enter [v]enn mode |
#### Window mode #### Window mode

View file

@ -16,4 +16,4 @@ vim.keymap.set(
vim.opt.expandtab = true -- Use spaces for the tab char vim.opt.expandtab = true -- Use spaces for the tab char
require("my.abbreviations.fp") require("my.abbreviations.fp").setup()

View file

@ -10,6 +10,9 @@ function M.setup()
vim.opt.list = true -- Show some invisible characters vim.opt.list = true -- Show some invisible characters
vim.opt.cmdheight = 0 -- Hide command line when it's not getting used vim.opt.cmdheight = 0 -- Hide command line when it's not getting used
-- tcqj are there by default, and "r" automatically continues comments on enter
vim.opt.formatoptions = "tcqjr"
-- Line numbers -- Line numbers
vim.opt.number = true -- Show line numbers vim.opt.number = true -- Show line numbers
vim.opt.relativenumber = true -- Relative line numbers vim.opt.relativenumber = true -- Relative line numbers
@ -25,12 +28,11 @@ function M.setup()
vim.opt.ignorecase = true -- Ignore case vim.opt.ignorecase = true -- Ignore case
vim.opt.smartcase = true -- Do not ignore case with capitals vim.opt.smartcase = true -- Do not ignore case with capitals
vim.opt.splitbelow = true -- Put new windows below current vim.opt.splitbelow = true -- Put new windows below current
vim.opt.splitright = true -- Put new windows right of current vim.opt.splitright = true -- Put new windows right of current
vim.opt.wrap = false -- Disable line wrap (by default) vim.opt.wrap = false -- Disable line wrap (by default)
vim.opt.wildmode = { 'list', 'longest' } -- Command-line completion mode vim.opt.wildmode = { "list", "longest" } -- Command-line completion mode
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
-- Set leader -- Set leader

View file

@ -55,8 +55,6 @@ function M.config()
}, },
}) })
vim.keymap.set("n", "<C-w>", "<Nop>")
Hydra({ Hydra({
name = "Windows", name = "Windows",
hint = window_hint, hint = window_hint,
@ -68,7 +66,7 @@ function M.config()
}, },
}, },
mode = "n", mode = "n",
body = "<C-w>", body = "<C-S-w>",
heads = { heads = {
{ "h", "<C-w>h" }, { "h", "<C-w>h" },
{ "j", "<C-w>j" }, { "j", "<C-w>j" },

View file

@ -130,6 +130,11 @@ in
"Google".metaData.alias = "@g"; "Google".metaData.alias = "@g";
}; };
settings = {
# Required for figma to be able to export to svg
"dom.events.asyncClipboard.clipboardItem" = true;
};
}; };
apps = { apps = {