-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
61 lines (58 loc) · 1.32 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
return {
options = {
opt = {
colorcolumn = "120",
},
},
lsp = {
formatting = {
format_on_save = {
enabled = false, -- enable or disable format on save globally
},
},
config = {
pylsp = {
settings = {
pylsp = {
plugins = {
flake8 = { enabled = false },
mccabe = { enabled = false },
pycodestyle = { enabled = false },
pyflakes = { enabled = false },
pylint = { enabled = false },
},
},
},
},
}
},
mappings = {
-- first key is the mode
n = {
-- second key is the lefthand side of the map
-- mappings seen under group name "Buffer"
["<leader>r"] = { 'oimport pdb;<Space>pdb.set_trace()<Esc>k', desc = "Insert breakpoint" },
["s"] = { ':nohlsearch<cr>', desc = "Clear search highlights" },
},
t = {
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
},
plugins = {
{
"kylechui/nvim-surround",
event = "VeryLazy",
config = function()
require("nvim-surround").setup({})
end
},
{
"dense-analysis/ale",
event = "BufEnter *.py",
init = function()
vim.g.ale_lint_on_insert_leave = 1
end
},
},
}