-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
51 lines (48 loc) · 1.66 KB
/
init.lua
File metadata and controls
51 lines (48 loc) · 1.66 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'morhetz/gruvbox'
use {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
require'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" },
auto_install = true,
ignore_install = { "javascript" },
highlight = {
enable = true,
disable = function(lang, buf)
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
end,
additional_vim_regex_highlighting = false,
},
}
end,
}
end)
vim.opt.number = true -- Show line numbers
vim.opt.relativenumber = true -- Show relative line numbers
vim.opt.expandtab = true -- Use spaces instead of tabs
vim.opt.shiftwidth = 2 -- Number of spaces to use for auto-indent
vim.opt.smartindent = true -- Auto-indent based on previous line
vim.opt.wrap = false -- Don't wrap lines
-- Make the mouse copy pasting into the Windows Clipt using Win32Yank
vim.opt.mouse= "a"
vim.opt.clipboard= "unnamedplus"
vim.g.clipboard = {
name = 'win32yank',
copy = {
["+"] = "/mnt/c/Windows/System32/win32yank.exe -i --crlf",
["*"] = "/mnt/c/Windows/System32/win32yank.exe -i --crlf",
},
paste = {
["+"] = "/mnt/c/Windows/System32/win32yank.exe -o --lf",
["*"] = "/mnt/c/Windows/System32/win32yank.exe -o --lf",
},
cache_enabled = 0,
}
vim.cmd('colorscheme gruvbox')