-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
28 lines (23 loc) · 859 Bytes
/
init.lua
File metadata and controls
28 lines (23 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
print("advent of neovim configuration")
require("config.lazy")
require('custom_colors')
vim.opt.shiftwidth = 4
vim.opt.clipboard = "unnamedplus"
vim.opt.relativenumber = true
vim.opt.number = true
vim.opt.tabstop = 2
vim.opt.so = 8
-- Use system python3 or detect from PATH
vim.g.python3_host_prog = vim.fn.exepath("python3")
vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
vim.keymap.set('n', '<leader>tt', ':Floaterminal<CR>', { noremap = true, silent = true })
vim.keymap.set("n", "<leader>cs", ":noh<CR>")
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (coping) text',
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})