updated and removed dap
This commit is contained in:
+40
-55
@@ -76,6 +76,8 @@ opt.clipboard = opt.clipboard + {"unnamedplus"}
|
|||||||
opt.foldenable = false
|
opt.foldenable = false
|
||||||
opt.foldmethod = "expr"
|
opt.foldmethod = "expr"
|
||||||
|
|
||||||
|
opt.completeopt = "menu,menuone,noselect"
|
||||||
|
|
||||||
-- ----------------------------------------
|
-- ----------------------------------------
|
||||||
-- AUTOCOMMANDS
|
-- AUTOCOMMANDS
|
||||||
-- ----------------------------------------
|
-- ----------------------------------------
|
||||||
@@ -221,9 +223,11 @@ require("packer").startup {function(use)
|
|||||||
-- folder tree
|
-- folder tree
|
||||||
use {"kyazdani42/nvim-tree.lua",
|
use {"kyazdani42/nvim-tree.lua",
|
||||||
requires = {"kyazdani42/nvim-web-devicons"},
|
requires = {"kyazdani42/nvim-web-devicons"},
|
||||||
|
require("nvim-tree").setup{
|
||||||
|
disable_netrw = false,
|
||||||
|
auto_close=true,
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.nvim_tree_auto_open = 0
|
|
||||||
vim.g.nvim_tree_disable_netrw = 0
|
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
map("n", "<C-p>", ":NvimTreeToggle<cr>", {noremap = true})
|
map("n", "<C-p>", ":NvimTreeToggle<cr>", {noremap = true})
|
||||||
end
|
end
|
||||||
@@ -473,61 +477,42 @@ use {"nvim-treesitter/nvim-treesitter",
|
|||||||
}
|
}
|
||||||
end }
|
end }
|
||||||
|
|
||||||
-- debugging
|
|
||||||
-- use {"mfussenegger/nvim-dap-python",
|
|
||||||
-- requires = {"mfussenegger/nvim-dap"},
|
|
||||||
-- config = function()
|
|
||||||
-- require("dap-python").setup("/usr/bin/python")
|
|
||||||
-- local map = vim.api.nvim_set_keymap
|
|
||||||
-- local opts = { noremap = true, silent = true }
|
|
||||||
-- map("n", "<F5>", [[:lua require("dap").continue()<cr>]], opts)
|
|
||||||
-- map("n", "<F10>", [[:lua require("dap").step_over()<cr>]], opts)
|
|
||||||
-- map("n", "<F11>", [[:lua require("dap").step_into()<cr>]], opts)
|
|
||||||
-- map("n", "<F12>", [[:lua require("dap").step_out()<cr>]], opts)
|
|
||||||
-- map("n", "<F6>", [[:lua require("dap").toggle_breakpoint()<cr>]], opts)
|
|
||||||
-- map("n", "<F7>", [[:lua require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: '))<cr>]], opts)
|
|
||||||
-- map("n", "<S-F7>", [[:lua require("dap").set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<cr>]], opts)
|
|
||||||
-- map("n", "<F4>", [[:lua require("dap").repl.open()<cr>]], opts)
|
|
||||||
-- map("n", "<leader>vl", [[:lua require("dap").repl.run_last()<cr>`]], opts)
|
|
||||||
-- map("n", "<leader>vt", [[:lua require('dap-python').test_method()<cr>]], opts)
|
|
||||||
-- map("v", "<leader>vs", [[<ESC>:lua require('dap-python').debug_selection()<cr>]], opts)
|
|
||||||
-- end
|
|
||||||
-- }
|
|
||||||
|
|
||||||
-- use {"nvim-telescope/telescope-dap.nvim",
|
|
||||||
-- requires = {"mfussenegger/nvim-dap", "nvim-telescope/telescope.nvim"},
|
|
||||||
-- config = function()
|
|
||||||
-- require("telescope").load_extension("dap")
|
|
||||||
-- local map = vim.api.nvim_set_keymap
|
|
||||||
-- local opts = { noremap = true, silent = true }
|
|
||||||
-- map("n", "<M-1>", [[:lua require("telescope").extensions.dap.commands{}<cr>]], opts)
|
|
||||||
-- map("n", "<M-2>", [[:lua require("telescope").extensions.dap.configurations{}<cr>]], opts)
|
|
||||||
-- map("n", "<M-3>", [[:lua require("telescope").extensions.dap.list_breakpoints{}<cr>]], opts)
|
|
||||||
-- map("n", "<M-4>", [[:lua require("telescope").extensions.dap.variables{}<cr>]], opts)
|
|
||||||
-- end
|
|
||||||
-- }
|
|
||||||
|
|
||||||
-- autocompletion
|
-- autocompletion
|
||||||
use {"hrsh7th/nvim-compe",
|
use {"hrsh7th/nvim-cmp",
|
||||||
|
requires = {
|
||||||
|
{ "hrsh7th/cmp-nvim-lsp", after = "nvim-cmp" },
|
||||||
|
{ "hrsh7th/cmp-path", after = "nvim-cmp" },
|
||||||
|
{ "hrsh7th/cmp-buffer", after = "nvim-cmp" },
|
||||||
|
{ "hrsh7th/cmp-calc", after = "nvim-cmp" },
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.opt.completeopt = "menuone,noselect"
|
local cmp = require("cmp")
|
||||||
require("compe").setup {
|
cmp.setup({
|
||||||
source = {
|
mapping = {
|
||||||
nvim_lsp = true,
|
["<C-d>"] = cmp.mapping.scroll_docs(-4),
|
||||||
path = true,
|
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||||
buffer = true,
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
calc = true,
|
["<C-e>"] = cmp.mapping.close(),
|
||||||
nvim_lua = true,
|
["<cr>"] = cmp.mapping.confirm({ select = true }),
|
||||||
},
|
},
|
||||||
}
|
sources = {
|
||||||
local map = vim.api.nvim_set_keymap
|
{ name = "nvim_lsp" },
|
||||||
local opts = { noremap = true, silent = true, expr = true }
|
{ name = "buffer" },
|
||||||
map("i", "<C-space>", [[compe#complete()]], opts)
|
{ name = "path" },
|
||||||
map("i", "<cr>", [[compe#confirm("<cr>")]], opts)
|
-- { name = "nvim_lua" },
|
||||||
map("i", "<C-e>", [[compe#close("<C-e>")]], opts)
|
},
|
||||||
-- TODO don't seem useful?
|
sorting = {
|
||||||
-- map("i", "<C-f>", [[compe#scroll({ "delta": +4 })]], opts)
|
comparators = {
|
||||||
-- map("i", "<C-b>", [[compe#scroll({ "delta": -4 })]], opts)
|
cmp.config.compare.exact,
|
||||||
|
cmp.config.compare.offset,
|
||||||
|
cmp.config.compare.score,
|
||||||
|
cmp.config.compare.sort_text,
|
||||||
|
cmp.config.compare.length,
|
||||||
|
cmp.config.compare.order,
|
||||||
|
cmp.config.compare.kind,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -718,7 +703,7 @@ use {"nvim-treesitter/nvim-treesitter",
|
|||||||
analysis = {
|
analysis = {
|
||||||
diagnosticMode = "workspace",
|
diagnosticMode = "workspace",
|
||||||
logLevel = "Warning",
|
logLevel = "Warning",
|
||||||
typeCheckingMode = "strict",
|
typeCheckingMode = "basic",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user