Change nvim config (pyright)
This commit is contained in:
+41
-1
@@ -26,7 +26,7 @@ require'nvim-treesitter'.setup {
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "tex", "scilab" },
|
||||
pattern = { "tex", "scilab", "html", "js", "javascript" },
|
||||
callback = function()
|
||||
vim.bo.tabstop = 4
|
||||
vim.bo.shiftwidth = 4
|
||||
@@ -41,3 +41,43 @@ require("snacks").setup()
|
||||
-- require("noice").setup()
|
||||
|
||||
-- require("heirline")
|
||||
|
||||
|
||||
|
||||
-- nvim-dap config
|
||||
local dap = require('dap')
|
||||
|
||||
dap.adapters.python = {
|
||||
type = 'executable',
|
||||
command = 'python',
|
||||
args = { '-m', 'debugpy.adapter' },
|
||||
}
|
||||
|
||||
dap.configurations.python = {
|
||||
{
|
||||
type = 'python',
|
||||
request = 'launch',
|
||||
name = 'Launch file',
|
||||
program = '${file}',
|
||||
pythonPath = function()
|
||||
return vim.fn.exepath('python')
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
-- nvim-dap-ui
|
||||
local dapui = require('dapui')
|
||||
dapui.setup()
|
||||
|
||||
dap.listeners.after.event_initialized['dapui_config'] = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated['dapui_config'] = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited['dapui_config'] = function()
|
||||
dapui.close()
|
||||
end
|
||||
|
||||
-- nvim-dap virtual text
|
||||
require('nvim-dap-virtual-text').setup()
|
||||
|
||||
Reference in New Issue
Block a user