Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Mar 3, 2024
1 parent 8ec3d8f commit 3a2c9a3
Show file tree
Hide file tree
Showing 12 changed files with 1,311 additions and 1,414 deletions.
11 changes: 11 additions & 0 deletions lua/config/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ vim.api.nvim_create_autocmd({ "TermOpen" }, {
set_terminal_keymaps()
end,
})

-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})
3 changes: 2 additions & 1 deletion lua/config/experimental.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-- WIP features

local pickers = require("telescope.pickers")
local finders = require("telescope.finders")
local conf = require("telescope.config").values
local actions = require("telescope.actions")
local action_state = require("telescope.actions.state")
local ts_utils = require("nvim-treesitter.ts_utils")


local otter = require("otter")

local function find_identifier_at_pipe_start()
Expand Down
16 changes: 9 additions & 7 deletions lua/config/global.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
-- global options

-- proper colors
vim.opt.termguicolors = true

-- more opinionated
vim.opt.number = true -- show linenumbers
vim.opt.mouse = "a" -- enable mouse
vim.opt.number = true -- show linenumbers
vim.opt.mouse = "a" -- enable mouse
vim.opt.mousefocus = true
vim.opt.clipboard:append("unnamedplus") -- use system clipboard

vim.opt.timeoutlen = 400 -- until which-key pops up
vim.opt.updatetime = 250 -- for autocommands and hovers
vim.opt.timeoutlen = 400 -- until which-key pops up
vim.opt.updatetime = 250 -- for autocommands and hovers

-- don't ask about existing swap files
vim.opt.shortmess:append("A")
Expand Down Expand Up @@ -88,7 +90,7 @@ vim.opt.conceallevel = 0

-- add new filetypes
vim.filetype.add({
extension = {
ojs = "javascript",
},
extension = {
ojs = "javascript",
},
})
Loading

0 comments on commit 3a2c9a3

Please sign in to comment.