-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.lua
96 lines (87 loc) · 2.2 KB
/
settings.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
local opts = { noremap = true, silent = true }
local map = vim.api.nvim_set_keymap
local set = vim.opt
local config = {
-- Set colorscheme
colorscheme = "nord-light-brighter",
-- Add plugins
plugins = {
{ "andweeb/presence.nvim" },
{
"ray-x/lsp_signature.nvim",
event = "BufRead",
config = function()
require("lsp_signature").setup()
end,
},
{ "farmergreg/vim-lastplace",
"junegunn/limelight.vim",
"junegunn/goyo.vim",
"tyrannicaltoucan/vim-deep-space",
"danilo-augusto/vim-afterglow",
"huytd/vim-nord-light-brighter",
},
{'tzachar/cmp-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-cmp'},
},
overrides = {
treesitter = {
ensure_installed = { "lua","c","cpp","python","json","haskell","javascript","typescript","go","css" },
},
},
-- On/off virtual diagnostics text
virtual_text = true,
-- Disable default plugins
enabled = {
bufferline = true,
nvim_tree = true,
lualine = true,
lspsaga = true,
gitsigns = true,
colorizer = true,
toggle_term = true,
comment = true,
symbols_outline = true,
indent_blankline = true,
dashboard = true,
which_key = true,
neoscroll = true,
ts_rainbow = true,
ts_autotag = true,
},
}
-- Set options
set.relativenumber = true
set.timeoutlen = 100
set.hidden = false
set.smarttab = true
set.expandtab = true
-- language servers
-- "pyright","pylsp","jsonls","html",
-- "kotlin_language_server","cssls","clangd",
-- "remark_ls","rome","sqlls","sumneko_lua",
-- "jdtls","hls","gopls","rust_analyzer"
-- Set key bindings
map("n", "<C-s>", ":w!<CR>", opts)
map("n", "<F9>",":Goyo <bar> <CR>",opts)
map("n", "<F8>", ":Limelight! <bar> <CR>",opts)
map("n", "<F7>", ":Limelight <bar> <CR>",opts)
-- Set autocommands
vim.cmd [[
augroup packer_conf
autocmd!
autocmd bufwritepost plugins.lua source <afile> | PackerSync
augroup end
]]
local tabnine = require('cmp_tabnine.config')
tabnine:setup({
max_lines = 1000;
max_num_results = 20;
sort = true;
run_on_every_keystroke = true;
snippet_placeholder = '..';
ignored_file_types = { -- default is not to ignore
-- uncomment to ignore in lua:
-- lua = true
};
})
return config