-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
63 lines (53 loc) · 1.68 KB
/
init.lua
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
52
53
54
55
56
57
58
59
60
61
62
63
--[[ init.lua ]]
-- LEADER
-- These keybindings need to be defined before the first /
-- is called; otherwise, it will default to "\"
vim.g.mapleader = ","
vim.g.localleader = "\\"
-- IMPORTS
require('vars') -- Variables
require('opts') -- Options
require('keys') -- Keymaps
require('plug') -- Plugins
-- PLUGINS: Add this section
require('nvim-tree').setup{}
require('lualine').setup {
options = {
theme = 'dracula-nvim'
}
}
require("mason").setup {
log_level = vim.log.levels.DEBUG
}
local lsp = require('lsp-zero')
lsp.preset('recommended')
lsp.setup()
-- init.lua
-- Load custom treesitter grammar for org filetype
require('orgmode').setup_ts_grammar()
-- Treesitter configuration
require('nvim-treesitter.configs').setup {
-- If TS highlights are not enabled at all, or disabled via `disable` prop,
-- highlighting will fallback to default Vim syntax highlighting
highlight = {
enable = true,
-- Required for spellcheck, some LaTex highlights and
-- code block highlights that do not have ts grammar
additional_vim_regex_highlighting = {'org'},
},
ensure_installed = {'org'}, -- Or run :TSUpdate org
}
require('orgmode').setup({
org_agenda_files = {'~/org/*', '~/my-orgs/**/*'},
org_default_notes_file = '~/org/refile.org',
})
-- let s:fontsize = 14
-- function! AdjustFontSize(amount)
-- let s:fontsize = s:fontsize+a:amount
-- :execute "GuiFont! Consolas:h" . s:fontsize
-- endfunction
--
-- noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>,
-- noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
-- inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
-- inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a